A powerful earthquake struck Thursday off the coast of California, sparking a tsunami warning, US seismologists said.

The 7.0 magnitude quake was recorded at a depth of just 10 kilometers (six miles) almost 100 kilometers west-southwest of Ferndale, according to the United States Geological Survey.