The epicentre of the earthquake was off the coast of Miyagi prefecture at a depth of 50km, the Japan Meteorological Agency said.