The quake hit around 12:23 a.m. local time (10:23 p.m. PST), on the nation’s western coast just north of La Esperanza at a depth of 6.2 miles (10 kilometers).
There were no immediate reports of damage or injuries from the quake in the Central American nation.