Viewers said they felt shaking in nearby areas, including South Los Angeles, Carson, Lynwood, Gardena and Bellflower.
There were no reports of injuries or damage.
There also was a much smaller 1.3-magnitude quake centered near Tarzana a few minutes later at about 12:13 a.m.