A 3-magnitude earthquake hit Azerbaijan, 20 km south-west of Sumgait town at the depth of 58 km, Republican Seismic Service centre under Azerbaijan National Academy of Sciences (ANAS) reports.