The epicentre of the quake was in Ojai, between Santa Barbara and Ventura, USGS data showed.
Shaking was felt throughout Los Angeles and surrounding communities, according to a USGS tool that allows residents to self-report their experience.
Deadly floodwaters sweep streets as massive storm hits
At least two aftershocks — measuring 3.1 and 3.6 — followed the initial quake.
USGS seismic reports are preliminary and are sometimes adjusted.
Read Related Also: Unusually warm winter makes for dour start to Aussie ski season
Tropical Storm Hilary is unleashing vicious wind gusts and heavy rain across California, where officials have warned of catastrophic and potentially deadly floods.
Hilary’s centre is just a few hours from Southern California, but the state has been feeling the storm’s effects since early Sunday and the rainfall totals are starting to add up.
One California official has warned Hilary could be among the most devastating storms to hit the state in recent years.
In Arizona, authorities issued evacuation orders in parts of Lake Mead National Park urging residents to seek higher ground ahead of potential floods.
And Clark County, Nevada – home to Las Vegas – declared a state of emergency as the storm drew closer.