An earthquake of magnitude 3.1 and depth of 8.80 kilometers occurred 0.33 miles from El Centro, CA in Imperial County at 12:40 AM.