A 3.0-magnitude earthquake struck Contra Costa County early Monday morning, according to the U.S. Geological Survey.