An earthquake of magnitude 3.8 struck 30 km southeast of Baharampur here on Wednesday, informed the European-Mediterranean Seismological Centre.