The quake struck east of the city of Mancora at a depth of 18 kilometers, the Peruvian Geophysical Institute said.
"Two people have been reported injured and a home has been damaged" in the northern Tumbes region, the National Civil Defense Institute said on Twitter.
Peru sits on the so-called Ring of Fire, an earthquake- prone zone spanning the Pacific.
Its last major quake was in 2007, when a 7.9-magnitude quake killed 595 people.
Disclaimer: No Business Standard Journalist was involved in creation of this content