<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.22.0.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>708</ContextCount>
  <ElementCount>723</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>109</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>13</UnitCount>
  <MyReports>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>000010001 - Document - COVER PAGE</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/COVERPAGE</Role>
      <ShortName>COVER PAGE</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>000020002 - Document - Audit Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/AuditInformation</Role>
      <ShortName>Audit Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>100010003 - Statement - Consolidated Statements of Financial Condition</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/ConsolidatedStatementsofFinancialCondition</Role>
      <ShortName>Consolidated Statements of Financial Condition</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>100020004 - Statement - Consolidated Statements of Financial Condition (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/ConsolidatedStatementsofFinancialConditionParenthetical</Role>
      <ShortName>Consolidated Statements of Financial Condition (Parenthetical)</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>100030005 - Statement - Consolidated Statements of Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/ConsolidatedStatementsofIncome</Role>
      <ShortName>Consolidated Statements of Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>100040006 - Statement - Consolidated Statements of Comprehensive Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/ConsolidatedStatementsofComprehensiveIncome</Role>
      <ShortName>Consolidated Statements of Comprehensive Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>100050007 - Statement - Consolidated Statements of Comprehensive Income (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/ConsolidatedStatementsofComprehensiveIncomeParenthetical</Role>
      <ShortName>Consolidated Statements of Comprehensive Income (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>100060008 - Statement - Consolidated Statement of Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/ConsolidatedStatementofStockholdersEquity</Role>
      <ShortName>Consolidated Statement of Stockholders' Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>100070009 - Statement - Consolidated Statement of Stockholders' Equity (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/ConsolidatedStatementofStockholdersEquityParenthetical</Role>
      <ShortName>Consolidated Statement of Stockholders' Equity (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>100080010 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/ConsolidatedStatementsofCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>210011001 - Disclosure - Description of Business, Basis of Presentation and Significant Accounting Policies and Recently Issued Accounting Pronouncements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/DescriptionofBusinessBasisofPresentationandSignificantAccountingPoliciesandRecentlyIssuedAccountingPronouncements</Role>
      <ShortName>Description of Business, Basis of Presentation and Significant Accounting Policies and Recently Issued Accounting Pronouncements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>210051002 - Disclosure - Investment Securities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/InvestmentSecurities</Role>
      <ShortName>Investment Securities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>210131003 - Disclosure - Loans Receivable</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/LoansReceivable</Role>
      <ShortName>Loans Receivable</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>210261004 - Disclosure - Allowance for Credit Losses on Loans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/AllowanceforCreditLossesonLoans</Role>
      <ShortName>Allowance for Credit Losses on Loans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>210311005 - Disclosure - Other Real Estate Owned</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/OtherRealEstateOwned</Role>
      <ShortName>Other Real Estate Owned</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>210351006 - Disclosure - Premises and Equipment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/PremisesandEquipment</Role>
      <ShortName>Premises and Equipment</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>210381007 - Disclosure - Goodwill and Other Intangible Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/GoodwillandOtherIntangibleAssets</Role>
      <ShortName>Goodwill and Other Intangible Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>210421008 - Disclosure - Derivative Financial Instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/DerivativeFinancialInstruments</Role>
      <ShortName>Derivative Financial Instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>210451009 - Disclosure - Deposits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/Deposits</Role>
      <ShortName>Deposits</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>210511010 - Disclosure - Junior Subordinated Debentures</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/JuniorSubordinatedDebentures</Role>
      <ShortName>Junior Subordinated Debentures</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>210531011 - Disclosure - Securities Sold Under Agreements to Repurchase</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/SecuritiesSoldUnderAgreementstoRepurchase</Role>
      <ShortName>Securities Sold Under Agreements to Repurchase</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>210561012 - Disclosure - Other Borrowings</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/OtherBorrowings</Role>
      <ShortName>Other Borrowings</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>210581013 - Disclosure - Leases Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/LeasesLeases</Role>
      <ShortName>Leases Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>210631014 - Disclosure - Employee Benefit Plans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/EmployeeBenefitPlans</Role>
      <ShortName>Employee Benefit Plans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>210681015 - Disclosure - Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/StockholdersEquity</Role>
      <ShortName>Stockholders' Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>210731016 - Disclosure - Fair Value Measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/FairValueMeasurements</Role>
      <ShortName>Fair Value Measurements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>210791017 - Disclosure - Stock-Based Compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/StockBasedCompensation</Role>
      <ShortName>Stock-Based Compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>210861018 - Disclosure - Cash Restriction</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/CashRestriction</Role>
      <ShortName>Cash Restriction</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>210881019 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/IncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>210941020 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/CommitmentsandContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>210991021 - Disclosure - Regulatory Capital Requirements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/RegulatoryCapitalRequirements</Role>
      <ShortName>Regulatory Capital Requirements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>211021022 - Disclosure - Heritage Financial Corporation (Parent Company Only)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/HeritageFinancialCorporationParentCompanyOnly</Role>
      <ShortName>Heritage Financial Corporation (Parent Company Only)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>220022001 - Disclosure - Description of Business, Basis of Presentation and Significant Accounting Policies and Recently Issued Accounting Pronouncements (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/DescriptionofBusinessBasisofPresentationandSignificantAccountingPoliciesandRecentlyIssuedAccountingPronouncementsPolicies</Role>
      <ShortName>Description of Business, Basis of Presentation and Significant Accounting Policies and Recently Issued Accounting Pronouncements (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.hf-wa.com/role/DescriptionofBusinessBasisofPresentationandSignificantAccountingPoliciesandRecentlyIssuedAccountingPronouncements</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>230063001 - Disclosure - Investment Securities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/InvestmentSecuritiesTables</Role>
      <ShortName>Investment Securities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hf-wa.com/role/InvestmentSecurities</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>230143002 - Disclosure - Loans Receivable (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/LoansReceivableTables</Role>
      <ShortName>Loans Receivable (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hf-wa.com/role/LoansReceivable</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>230273003 - Disclosure - Allowance for Credit Losses on Loans (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/AllowanceforCreditLossesonLoansTables</Role>
      <ShortName>Allowance for Credit Losses on Loans (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hf-wa.com/role/AllowanceforCreditLossesonLoans</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>230323004 - Disclosure - Other Real Estate Owned (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/OtherRealEstateOwnedTables</Role>
      <ShortName>Other Real Estate Owned (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hf-wa.com/role/OtherRealEstateOwned</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>230363005 - Disclosure - Premises and Equipment (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/PremisesandEquipmentTables</Role>
      <ShortName>Premises and Equipment (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hf-wa.com/role/PremisesandEquipment</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>230393006 - Disclosure - Goodwill and Other Intangible Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/GoodwillandOtherIntangibleAssetsTables</Role>
      <ShortName>Goodwill and Other Intangible Assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hf-wa.com/role/GoodwillandOtherIntangibleAssets</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>230433007 - Disclosure - Derivative Financial Instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/DerivativeFinancialInstrumentsTables</Role>
      <ShortName>Derivative Financial Instruments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hf-wa.com/role/DerivativeFinancialInstruments</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>230463008 - Disclosure - Deposits (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/DepositsTables</Role>
      <ShortName>Deposits (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hf-wa.com/role/Deposits</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>230543009 - Disclosure - Securities Sold Under Agreements to Repurchase (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/SecuritiesSoldUnderAgreementstoRepurchaseTables</Role>
      <ShortName>Securities Sold Under Agreements to Repurchase (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hf-wa.com/role/SecuritiesSoldUnderAgreementstoRepurchase</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>230593010 - Disclosure - Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/LeasesTables</Role>
      <ShortName>Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hf-wa.com/role/LeasesLeases</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>230643011 - Disclosure - Employee Benefit Plans Employee Benefit Plans (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/EmployeeBenefitPlansEmployeeBenefitPlansTables</Role>
      <ShortName>Employee Benefit Plans Employee Benefit Plans (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>230693012 - Disclosure - Stockholders' Equity (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/StockholdersEquityTables</Role>
      <ShortName>Stockholders' Equity (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hf-wa.com/role/StockholdersEquity</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>230743013 - Disclosure - Fair Value Measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/FairValueMeasurementsTables</Role>
      <ShortName>Fair Value Measurements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hf-wa.com/role/FairValueMeasurements</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>230803014 - Disclosure - Stock-Based Compensation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/StockBasedCompensationTables</Role>
      <ShortName>Stock-Based Compensation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hf-wa.com/role/StockBasedCompensation</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>230893015 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/IncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hf-wa.com/role/IncomeTaxes</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>230953016 - Disclosure - Commitments and Contingencies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/CommitmentsandContingenciesTables</Role>
      <ShortName>Commitments and Contingencies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hf-wa.com/role/CommitmentsandContingencies</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>231003017 - Disclosure - Regulatory Capital Requirements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/RegulatoryCapitalRequirementsTables</Role>
      <ShortName>Regulatory Capital Requirements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hf-wa.com/role/RegulatoryCapitalRequirements</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>231033018 - Disclosure - Heritage Financial Corporation (Parent Company Only) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/HeritageFinancialCorporationParentCompanyOnlyTables</Role>
      <ShortName>Heritage Financial Corporation (Parent Company Only) (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hf-wa.com/role/HeritageFinancialCorporationParentCompanyOnly</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>240034001 - Disclosure - Description of Business, Basis of Presentation and Significant Accounting Policies and Recently Issued Accounting Pronouncements - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/DescriptionofBusinessBasisofPresentationandSignificantAccountingPoliciesandRecentlyIssuedAccountingPronouncementsAdditionalInformationDetails</Role>
      <ShortName>Description of Business, Basis of Presentation and Significant Accounting Policies and Recently Issued Accounting Pronouncements - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.hf-wa.com/role/DescriptionofBusinessBasisofPresentationandSignificantAccountingPoliciesandRecentlyIssuedAccountingPronouncementsPolicies</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>240044002 - Disclosure - Description of Business, Basis of Presentation and Significant Accounting Policies and Recently Issued Accounting Pronouncements - Recently Issued or Adopted Accounting Pronouncements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/DescriptionofBusinessBasisofPresentationandSignificantAccountingPoliciesandRecentlyIssuedAccountingPronouncementsRecentlyIssuedorAdoptedAccountingPronouncementsDetails</Role>
      <ShortName>Description of Business, Basis of Presentation and Significant Accounting Policies and Recently Issued Accounting Pronouncements - Recently Issued or Adopted Accounting Pronouncements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>240074003 - Disclosure - Investment Securities - Textuals (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/InvestmentSecuritiesTextualsDetails</Role>
      <ShortName>Investment Securities - Textuals (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>240084004 - Disclosure - Investment Securities - Investment Securities by Classification Type and Maturity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/InvestmentSecuritiesInvestmentSecuritiesbyClassificationTypeandMaturityDetails</Role>
      <ShortName>Investment Securities - Investment Securities by Classification Type and Maturity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>240094005 - Disclosure - Investment Securities - Contractual Maturities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/InvestmentSecuritiesContractualMaturitiesDetails</Role>
      <ShortName>Investment Securities - Contractual Maturities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>240104006 - Disclosure - Investment Securities - Unrealized Losses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/InvestmentSecuritiesUnrealizedLossesDetails</Role>
      <ShortName>Investment Securities - Unrealized Losses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>240114007 - Disclosure - Investment Securities - Realized Gains and Losses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/InvestmentSecuritiesRealizedGainsandLossesDetails</Role>
      <ShortName>Investment Securities - Realized Gains and Losses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>240124008 - Disclosure - Investment Securities - Amortized Cost and Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/InvestmentSecuritiesAmortizedCostandFairValueDetails</Role>
      <ShortName>Investment Securities - Amortized Cost and Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>240154009 - Disclosure - Loans Receivable - Textuals (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/LoansReceivableTextualsDetails</Role>
      <ShortName>Loans Receivable - Textuals (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>240164010 - Disclosure - Loans Receivable - Amortized Cost of Loans Receivable (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/LoansReceivableAmortizedCostofLoansReceivableDetails</Role>
      <ShortName>Loans Receivable - Amortized Cost of Loans Receivable (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>240174011 - Disclosure - Loans Receivable - Amortized Cost of Loans Receivable by Risk Grade (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/LoansReceivableAmortizedCostofLoansReceivablebyRiskGradeDetails</Role>
      <ShortName>Loans Receivable - Amortized Cost of Loans Receivable by Risk Grade (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>240184012 - Disclosure - Loans Receivable - Nonaccrual Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/LoansReceivableNonaccrualLoansDetails</Role>
      <ShortName>Loans Receivable - Nonaccrual Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>240194013 - Disclosure - Loans Receivable - Past Due Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/LoansReceivablePastDueLoansDetails</Role>
      <ShortName>Loans Receivable - Past Due Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>240204014 - Disclosure - Loans Receivable - Collateral-Dependent Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/LoansReceivableCollateralDependentLoansDetails</Role>
      <ShortName>Loans Receivable - Collateral-Dependent Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>240214015 - Disclosure - Loans Receivable - Troubled Debt Restructured TDRs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/LoansReceivableTroubledDebtRestructuredTDRsDetails</Role>
      <ShortName>Loans Receivable - Troubled Debt Restructured TDRs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>240224016 - Disclosure - Loans Receivable - TDRs Subsequently Defaulted (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/LoansReceivableTDRsSubsequentlyDefaultedDetails</Role>
      <ShortName>Loans Receivable - TDRs Subsequently Defaulted (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>240234017 - Disclosure - Loans Receivable - Related Party Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/LoansReceivableRelatedPartyLoansDetails</Role>
      <ShortName>Loans Receivable - Related Party Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>240244018 - Disclosure - Loans Receivable - Mortgage Banking Activities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/LoansReceivableMortgageBankingActivitiesDetails</Role>
      <ShortName>Loans Receivable - Mortgage Banking Activities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>240254019 - Disclosure - Loans Receivable - SBA Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/LoansReceivableSBALoansDetails</Role>
      <ShortName>Loans Receivable - SBA Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>240284020 - Disclosure - Allowance for Credit Losses on Loans - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/AllowanceforCreditLossesonLoansNarrativeDetails</Role>
      <ShortName>Allowance for Credit Losses on Loans - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>240294021 - Disclosure - Allowance for Credit Losses on Loans - Summary of Changes in Loan Allowance (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/AllowanceforCreditLossesonLoansSummaryofChangesinLoanAllowanceDetails</Role>
      <ShortName>Allowance for Credit Losses on Loans - Summary of Changes in Loan Allowance (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>240304022 - Disclosure - Allowance for Credit Losses on Loans - Activity in Allowance for Losses Disaggregated on Basis of Impairment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/AllowanceforCreditLossesonLoansActivityinAllowanceforLossesDisaggregatedonBasisofImpairmentDetails</Role>
      <ShortName>Allowance for Credit Losses on Loans - Activity in Allowance for Losses Disaggregated on Basis of Impairment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>240334023 - Disclosure - Other Real Estate Owned - Changes in Other Real Estate Owned (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/OtherRealEstateOwnedChangesinOtherRealEstateOwnedDetails</Role>
      <ShortName>Other Real Estate Owned - Changes in Other Real Estate Owned (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>240344024 - Disclosure - Other Real Estate Owned - Textuals (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/OtherRealEstateOwnedTextualsDetails</Role>
      <ShortName>Other Real Estate Owned - Textuals (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>240374025 - Disclosure - Premises and Equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/PremisesandEquipmentDetails</Role>
      <ShortName>Premises and Equipment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.hf-wa.com/role/PremisesandEquipmentTables</ParentRole>
      <Position>76</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>240404026 - Disclosure - Goodwill and Other Intangible Assets - Textuals (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/GoodwillandOtherIntangibleAssetsTextualsDetails</Role>
      <ShortName>Goodwill and Other Intangible Assets - Textuals (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>240414027 - Disclosure - Goodwill and Other Intangible Assets - Future Amortization Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/GoodwillandOtherIntangibleAssetsFutureAmortizationExpenseDetails</Role>
      <ShortName>Goodwill and Other Intangible Assets - Future Amortization Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>240444028 - Disclosure - Derivative Financial Instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/DerivativeFinancialInstrumentsDetails</Role>
      <ShortName>Derivative Financial Instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.hf-wa.com/role/DerivativeFinancialInstrumentsTables</ParentRole>
      <Position>79</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>240474029 - Disclosure - Deposits - Components of Deposits (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/DepositsComponentsofDepositsDetails</Role>
      <ShortName>Deposits - Components of Deposits (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>240484030 - Disclosure - Deposits - Textuals (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/DepositsTextualsDetails</Role>
      <ShortName>Deposits - Textuals (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>240494031 - Disclosure - Deposits - Schedule of Interest Expense, by Category (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/DepositsScheduleofInterestExpensebyCategoryDetails</Role>
      <ShortName>Deposits - Schedule of Interest Expense, by Category (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>240504032 - Disclosure - Deposits - Schedule of Maturities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/DepositsScheduleofMaturitiesDetails</Role>
      <ShortName>Deposits - Schedule of Maturities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>240524033 - Disclosure - Junior Subordinated Debentures (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/JuniorSubordinatedDebenturesDetails</Role>
      <ShortName>Junior Subordinated Debentures (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.hf-wa.com/role/JuniorSubordinatedDebentures</ParentRole>
      <Position>84</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>240554034 - Disclosure - Repurchase Agreements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/RepurchaseAgreementsDetails</Role>
      <ShortName>Repurchase Agreements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>85</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>240574035 - Disclosure - Other Borrowings (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/OtherBorrowingsDetails</Role>
      <ShortName>Other Borrowings (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.hf-wa.com/role/OtherBorrowings</ParentRole>
      <Position>86</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>240604036 - Disclosure - Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/LeasesDetails</Role>
      <ShortName>Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.hf-wa.com/role/LeasesTables</ParentRole>
      <Position>87</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>240614037 - Disclosure - Leases - Lease Cost (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/LeasesLeaseCostDetails</Role>
      <ShortName>Leases - Lease Cost (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>88</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>240624038 - Disclosure - Leases - Lease Payment Obligations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/LeasesLeasePaymentObligationsDetails</Role>
      <ShortName>Leases - Lease Payment Obligations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>89</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>240654039 - Disclosure - Employee Benefit Plans - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/EmployeeBenefitPlansNarrativeDetails</Role>
      <ShortName>Employee Benefit Plans - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>90</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R91.htm</HtmlFileName>
      <LongName>240664040 - Disclosure - Employee Benefit Plans - Changes in Deferred Compensation Plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/EmployeeBenefitPlansChangesinDeferredCompensationPlanDetails</Role>
      <ShortName>Employee Benefit Plans - Changes in Deferred Compensation Plan (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>91</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R92.htm</HtmlFileName>
      <LongName>240674041 - Disclosure - Employee Benefit Plans - Salary Continuation Plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/EmployeeBenefitPlansSalaryContinuationPlanDetails</Role>
      <ShortName>Employee Benefit Plans - Salary Continuation Plan (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>92</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R93.htm</HtmlFileName>
      <LongName>240704042 - Disclosure - Stockholders' Equity - Reconciliation of Weighted Average Shares (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/StockholdersEquityReconciliationofWeightedAverageSharesDetails</Role>
      <ShortName>Stockholders' Equity - Reconciliation of Weighted Average Shares (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>93</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R94.htm</HtmlFileName>
      <LongName>240714043 - Disclosure - Stockholders' Equity - Dividends (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/StockholdersEquityDividendsDetails</Role>
      <ShortName>Stockholders' Equity - Dividends (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>94</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R95.htm</HtmlFileName>
      <LongName>240724044 - Disclosure - Stockholders' Equity - Stock Repurchase Program (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/StockholdersEquityStockRepurchaseProgramDetails</Role>
      <ShortName>Stockholders' Equity - Stock Repurchase Program (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>95</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R96.htm</HtmlFileName>
      <LongName>240754045 - Disclosure - Fair Value Measurements - Fair Value Measurement on Recurring Basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/FairValueMeasurementsFairValueMeasurementonRecurringBasisDetails</Role>
      <ShortName>Fair Value Measurements - Fair Value Measurement on Recurring Basis (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>96</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R97.htm</HtmlFileName>
      <LongName>240764046 - Disclosure - Fair Value Measurements - Fair Value Measurement on Nonrecurring Basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/FairValueMeasurementsFairValueMeasurementonNonrecurringBasisDetails</Role>
      <ShortName>Fair Value Measurements - Fair Value Measurement on Nonrecurring Basis (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>97</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R98.htm</HtmlFileName>
      <LongName>240774047 - Disclosure - Fair Value Measurements - Quantitative Information, Level 3 (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/FairValueMeasurementsQuantitativeInformationLevel3Details</Role>
      <ShortName>Fair Value Measurements - Quantitative Information, Level 3 (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>98</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R99.htm</HtmlFileName>
      <LongName>240784048 - Disclosure - Fair Value Measurements - Carrying Value and Fair Value of Financial Instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/FairValueMeasurementsCarryingValueandFairValueofFinancialInstrumentsDetails</Role>
      <ShortName>Fair Value Measurements - Carrying Value and Fair Value of Financial Instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>99</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R100.htm</HtmlFileName>
      <LongName>240814049 - Disclosure - Stock-Based Compensation - Textuals (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/StockBasedCompensationTextualsDetails</Role>
      <ShortName>Stock-Based Compensation - Textuals (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>100</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R101.htm</HtmlFileName>
      <LongName>240824050 - Disclosure - Stock-Based Compensation - Stock Option Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/StockBasedCompensationStockOptionActivityDetails</Role>
      <ShortName>Stock-Based Compensation - Stock Option Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>101</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R102.htm</HtmlFileName>
      <LongName>240834051 - Disclosure - Stock-Based Compensation - Restricted Stock Award Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/StockBasedCompensationRestrictedStockAwardActivityDetails</Role>
      <ShortName>Stock-Based Compensation - Restricted Stock Award Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>102</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R103.htm</HtmlFileName>
      <LongName>240844052 - Disclosure - Stock-Based Compensation - Fair Value Assumptions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/StockBasedCompensationFairValueAssumptionsDetails</Role>
      <ShortName>Stock-Based Compensation - Fair Value Assumptions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>103</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R104.htm</HtmlFileName>
      <LongName>240854053 - Disclosure - Stock-Based Compensation - RSU Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/StockBasedCompensationRSUActivityDetails</Role>
      <ShortName>Stock-Based Compensation - RSU Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>104</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R105.htm</HtmlFileName>
      <LongName>240874054 - Disclosure - Cash Restriction (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/CashRestrictionDetails</Role>
      <ShortName>Cash Restriction (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.hf-wa.com/role/CashRestriction</ParentRole>
      <Position>105</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R106.htm</HtmlFileName>
      <LongName>240904055 - Disclosure - Income Taxes - Components of Income Tax Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/IncomeTaxesComponentsofIncomeTaxExpenseDetails</Role>
      <ShortName>Income Taxes - Components of Income Tax Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>106</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R107.htm</HtmlFileName>
      <LongName>240914056 - Disclosure - Income Taxes - Reconciliation of Effective Income Tax (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/IncomeTaxesReconciliationofEffectiveIncomeTaxDetails</Role>
      <ShortName>Income Taxes - Reconciliation of Effective Income Tax (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>107</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R108.htm</HtmlFileName>
      <LongName>240924057 - Disclosure - Income Taxes - Deferred Income Tax Asset (Liability) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/IncomeTaxesDeferredIncomeTaxAssetLiabilityDetails</Role>
      <ShortName>Income Taxes - Deferred Income Tax Asset (Liability) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>108</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R109.htm</HtmlFileName>
      <LongName>240934058 - Disclosure - Income Taxes - Textuals (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/IncomeTaxesTextualsDetails</Role>
      <ShortName>Income Taxes - Textuals (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>109</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R110.htm</HtmlFileName>
      <LongName>240964059 - Disclosure - Commitments and Contingencies - Outstanding Commitments to Extend Credit (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/CommitmentsandContingenciesOutstandingCommitmentstoExtendCreditDetails</Role>
      <ShortName>Commitments and Contingencies - Outstanding Commitments to Extend Credit (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>110</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R111.htm</HtmlFileName>
      <LongName>240974060 - Disclosure - Commitments and Contingencies - ACL on Unfunded Commitments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/CommitmentsandContingenciesACLonUnfundedCommitmentsDetails</Role>
      <ShortName>Commitments and Contingencies - ACL on Unfunded Commitments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>111</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R112.htm</HtmlFileName>
      <LongName>240984061 - Disclosure - Commitments and Contingencies - Textuals (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/CommitmentsandContingenciesTextualsDetails</Role>
      <ShortName>Commitments and Contingencies - Textuals (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>112</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R113.htm</HtmlFileName>
      <LongName>241014062 - Disclosure - Regulatory Capital Requirements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/RegulatoryCapitalRequirementsDetails</Role>
      <ShortName>Regulatory Capital Requirements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.hf-wa.com/role/RegulatoryCapitalRequirementsTables</ParentRole>
      <Position>113</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R114.htm</HtmlFileName>
      <LongName>241044063 - Disclosure - Heritage Financial Corporation (Parent Company Only) - Condensed Statements of Financial Condition (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/HeritageFinancialCorporationParentCompanyOnlyCondensedStatementsofFinancialConditionDetails</Role>
      <ShortName>Heritage Financial Corporation (Parent Company Only) - Condensed Statements of Financial Condition (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.hf-wa.com/role/HeritageFinancialCorporationParentCompanyOnlyTables</ParentRole>
      <Position>114</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R115.htm</HtmlFileName>
      <LongName>241054064 - Disclosure - Heritage Financial Corporation (Parent Company Only) - Condensed Statements of Income (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/HeritageFinancialCorporationParentCompanyOnlyCondensedStatementsofIncomeDetails</Role>
      <ShortName>Heritage Financial Corporation (Parent Company Only) - Condensed Statements of Income (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.hf-wa.com/role/HeritageFinancialCorporationParentCompanyOnlyTables</ParentRole>
      <Position>115</Position>
    </Report>
    <Report instance="hfwa-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R116.htm</HtmlFileName>
      <LongName>241064065 - Disclosure - Heritage Financial Corporation (Parent Company Only) - Condensed Statements of Cash Flows (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hf-wa.com/role/HeritageFinancialCorporationParentCompanyOnlyCondensedStatementsofCashFlowsDetails</Role>
      <ShortName>Heritage Financial Corporation (Parent Company Only) - Condensed Statements of Cash Flows (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.hf-wa.com/role/HeritageFinancialCorporationParentCompanyOnlyTables</ParentRole>
      <Position>116</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-K" original="hfwa-20211231.htm">hfwa-20211231.htm</File>
    <File>ex-21010k123121.htm</File>
    <File>ex-23010k123121.htm</File>
    <File>ex-24010k123121.htm</File>
    <File>ex-31110k123121.htm</File>
    <File>ex-31210k123121.htm</File>
    <File>ex-32110k123121.htm</File>
    <File>ex-4210k123121.htm</File>
    <File>hfwa-20211231.xsd</File>
    <File>hfwa-20211231_cal.xml</File>
    <File>hfwa-20211231_def.xml</File>
    <File>hfwa-20211231_lab.xml</File>
    <File>hfwa-20211231_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>hfwa-20211231_g1.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="3">http://fasb.org/srt/2021-01-31</BaseTaxonomy>
    <BaseTaxonomy items="2778">http://fasb.org/us-gaap/2021-01-31</BaseTaxonomy>
    <BaseTaxonomy items="37">http://xbrl.sec.gov/dei/2021q4</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
