An earthquake of magnitude 2.0 and depth of 8.40 kilometers occurred 0.22 miles from Oakley, CA in Contra Costa County at 10:17 PM.