The tremor occurred Thursday evening at 10:12 p.m., at a depth of 3.7 miles, the seismic monitoring agency stated.
The earthquake's epicenter was 4 miles from Alum Rock, 8 miles from San Jose and 84 miles from Sacramento.
In the last 10 days, there has been one other earthquake with a magnitude greater than 3 centered nearby, the Los Angeles Times said.
Gal Gadot cast as Wonder Woman for 'Batman vs. Superman'
Couple mistakenly served bag of cash at McDonald's drive-thru