An earthquake of magnitude 3.1 and depth of 1.30 kilometers occurred 4.72 miles from Niland, CA in Imperial County at 12:32 AM.