Exhibit 23.1
CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM

We consent to the incorporation by reference in this Current Report on Form 8-K/A of Heritage Financial Corporation of our report dated February 27, 2026 relating to the consolidated financial statements and effectiveness of internal control over financial reporting appearing in the Annual Report on Form 10-K of Heritage Financial Corporation for the year ended December 31, 2025.

/s/ Crowe LLP

Sacramento, California
April 10, 2026