The quake struck under the Cook Strait that separates the North and South Islands at a depth of 74 kilometers (50 miles), USGS reported.
Wellington is on the southern end of the North Island, which is responding to a cyclone this week that caused widespread flooding and landslides that left four people dead.