An earthquake with a magnitude of 5.1 jolted Hawaii with a depth of 1.9 km on Tuesday, according to the U.S. Geological Survey.