An earthquake of magnitude 1.2 and depth of 7.40 kilometers occurred 2.96 miles from San Ramon, CA in Contra Costa County at 01:41 AM.