QuickLinks -- Click here to rapidly navigate through this document
CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM
We hereby consent to the incorporation by reference in this Registration Statement on Form S-3 of our report dated March 10, 2011, relating to the consolidated financial statements of Heritage Oaks Bancorp appearing in the Company's Annual Report on Form 10-K for the year ended December 31, 2010. We also consent to the reference to us under the caption "Experts" in such Registration Statement.
/s/ Vavrinek, Trine, Day & Co., LLP VAVRINEK, TRINE, DAY & CO., LLP |
Rancho Cucamonga, California
March 15, 2011
CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM