A preliminary 3.8 magnitude earthquake struck off the Northern California coast Wednesday afternoon, according to the United States Geological Survey.