An earthquake of magnitude 4.0 and depth of 5.30 kilometers occurred 4.17 miles from Ocotillo, CA in Imperial County at 12:11 AM.