A magnitude 5.1 earthquake shook off California's northern coast Wednesday morning, according to the U.S. Geological Survey.