An earthquake measuring 6.1 magnitude hit the Pacific coast of Costa Rica on Monday night, the USGS said, Xinhua reported.