A magnitude 5.7 earthquake struck off the coast of Northern California on Wednesday, according to the U.S. Geological Survey.