SAN FRANCISCO — Hewlett-Packard has been hit with an age bias class action claiming that the tens of thousands of job cuts it has made since 2012 were designed to get rid of older workers, and that the company has since blatantly favored younger people in filling out its ranks.

In a complaint filed Thursday in the Northern District of California, lawyers at San Francisco-based Andrus Anderson and O’Neil, Cannon, Hollman, DeJong & Laing in Milwaukee say HP violated federal and California anti-discrimination laws in carrying out its “Workforce Reduction Plan” and by taking other steps to purge older workers.