A major earthquake of 7.4 magnitude hit in the Pacific Ocean about 78 miles off the coast of El Salvador late Sunday night, the U.S. Geological Survey said.