<?xml version="1.0" encoding="UTF-8"?>

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2022 Workiva-->
<!--r:c2eef7d9-8343-4ddf-89c2-93589aa113b7,g:89cb498e-f5af-472a-b0d6-a92645c9758f-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member"/>
  <link:roleRef roleURI="http://www.hf-wa.com/role/ConsolidatedStatementsofComprehensiveIncome" xlink:type="simple" xlink:href="hfwa-20211231.xsd#ConsolidatedStatementsofComprehensiveIncome"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/ConsolidatedStatementsofComprehensiveIncome" xlink:type="extended" id="if1c271afbc87435fa2e3ada0e86be728_ConsolidatedStatementsofComprehensiveIncome">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_46a1504a-454b-4a25-8152-d8c22664f2e8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_cf8e5971-7df0-4d34-969e-4961812b4ede" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_46a1504a-454b-4a25-8152-d8c22664f2e8" xlink:to="loc_us-gaap_NetIncomeLoss_cf8e5971-7df0-4d34-969e-4961812b4ede" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_78dc1d98-885d-4a3e-b636-840ff9afe255" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_46a1504a-454b-4a25-8152-d8c22664f2e8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_78dc1d98-885d-4a3e-b636-840ff9afe255" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax_eac6f746-bba3-4eda-afbe-e04ca8cfe9dc" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_46a1504a-454b-4a25-8152-d8c22664f2e8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax_eac6f746-bba3-4eda-afbe-e04ca8cfe9dc" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciDebtSecuritiesAvailableForSaleTransferToHeldToMaturityAdjustmentFromAociForAmortizationOfGainLossAfterTax_c0316fb9-0bea-4d1d-90fa-bf74dbcadee6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OciDebtSecuritiesAvailableForSaleTransferToHeldToMaturityAdjustmentFromAociForAmortizationOfGainLossAfterTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_46a1504a-454b-4a25-8152-d8c22664f2e8" xlink:to="loc_us-gaap_OciDebtSecuritiesAvailableForSaleTransferToHeldToMaturityAdjustmentFromAociForAmortizationOfGainLossAfterTax_c0316fb9-0bea-4d1d-90fa-bf74dbcadee6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_02156cb2-d1a4-45cf-a838-7bfaf5ed4304" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_46a1504a-454b-4a25-8152-d8c22664f2e8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_02156cb2-d1a4-45cf-a838-7bfaf5ed4304" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_3da3591d-1c34-42ea-8b95-53ee21c01074" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_46a1504a-454b-4a25-8152-d8c22664f2e8" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTax_3da3591d-1c34-42ea-8b95-53ee21c01074" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_b99e5c3c-854d-4228-b728-4c1b2ad3b6ea" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_46a1504a-454b-4a25-8152-d8c22664f2e8" xlink:to="loc_us-gaap_StatementTable_b99e5c3c-854d-4228-b728-4c1b2ad3b6ea" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_db6a3a9d-0f0c-40a0-aed8-1e6662fbec3b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_b99e5c3c-854d-4228-b728-4c1b2ad3b6ea" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_db6a3a9d-0f0c-40a0-aed8-1e6662fbec3b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_db6a3a9d-0f0c-40a0-aed8-1e6662fbec3b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_db6a3a9d-0f0c-40a0-aed8-1e6662fbec3b" xlink:to="loc_us-gaap_EquityComponentDomain_db6a3a9d-0f0c-40a0-aed8-1e6662fbec3b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_fb7d0468-816a-48eb-ba36-8fdf8f87d3e6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_db6a3a9d-0f0c-40a0-aed8-1e6662fbec3b" xlink:to="loc_us-gaap_EquityComponentDomain_fb7d0468-816a-48eb-ba36-8fdf8f87d3e6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_93f8b40f-c6a1-4fd7-bb11-6a40e40e94a5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_fb7d0468-816a-48eb-ba36-8fdf8f87d3e6" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_93f8b40f-c6a1-4fd7-bb11-6a40e40e94a5" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/ConsolidatedStatementofStockholdersEquity" xlink:type="simple" xlink:href="hfwa-20211231.xsd#ConsolidatedStatementofStockholdersEquity"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/ConsolidatedStatementofStockholdersEquity" xlink:type="extended" id="i849ca212a01e4913a165e0f1e97a865c_ConsolidatedStatementofStockholdersEquity">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_4c8a6365-a567-4f2d-966a-76be8f66c040" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_1a5e804f-f785-4446-b00d-84f6169e64f7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_4c8a6365-a567-4f2d-966a-76be8f66c040" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_1a5e804f-f785-4446-b00d-84f6169e64f7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharesOutstanding_dcbb6a7c-845e-459d-9fda-a52ae733da25" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_1a5e804f-f785-4446-b00d-84f6169e64f7" xlink:to="loc_us-gaap_SharesOutstanding_dcbb6a7c-845e-459d-9fda-a52ae733da25" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_6b388d3d-7f88-452e-ab3a-c126d1e81102" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_1a5e804f-f785-4446-b00d-84f6169e64f7" xlink:to="loc_us-gaap_StockholdersEquity_6b388d3d-7f88-452e-ab3a-c126d1e81102" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardForfeited_07c11907-234a-4c5a-894b-0dcdeb54e568" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardForfeited"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_1a5e804f-f785-4446-b00d-84f6169e64f7" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardForfeited_07c11907-234a-4c5a-894b-0dcdeb54e568" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardForfeitures_326fd102-833d-4721-8d21-539e5304d804" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardForfeitures"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_1a5e804f-f785-4446-b00d-84f6169e64f7" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardForfeitures_326fd102-833d-4721-8d21-539e5304d804" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_19020875-e352-4963-982a-5f0ed98283cb" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_1a5e804f-f785-4446-b00d-84f6169e64f7" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_19020875-e352-4963-982a-5f0ed98283cb" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_a03c75a0-cc71-46cc-9f32-b16de4ccc16f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_1a5e804f-f785-4446-b00d-84f6169e64f7" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_a03c75a0-cc71-46cc-9f32-b16de4ccc16f" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationRestrictedStockUnitsRequisiteServicePeriodRecognition_3fb03c68-ae34-4f65-b139-e3c270035185" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationRestrictedStockUnitsRequisiteServicePeriodRecognition"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_1a5e804f-f785-4446-b00d-84f6169e64f7" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationRestrictedStockUnitsRequisiteServicePeriodRecognition_3fb03c68-ae34-4f65-b139-e3c270035185" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_adf965ac-8f8c-4f10-823a-61bd1344ac5d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockRepurchasedAndRetiredDuringPeriodShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_1a5e804f-f785-4446-b00d-84f6169e64f7" xlink:to="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_adf965ac-8f8c-4f10-823a-61bd1344ac5d" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodValue_b48af61b-8d11-4814-abbd-f285f55723a3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockRepurchasedAndRetiredDuringPeriodValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_1a5e804f-f785-4446-b00d-84f6169e64f7" xlink:to="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodValue_b48af61b-8d11-4814-abbd-f285f55723a3" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_bab0aca6-2986-43cb-971a-c0ecdc0ebcac" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_1a5e804f-f785-4446-b00d-84f6169e64f7" xlink:to="loc_us-gaap_NetIncomeLoss_bab0aca6-2986-43cb-971a-c0ecdc0ebcac" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_3ffdc111-1189-4aef-8368-a86eaaa74171" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_1a5e804f-f785-4446-b00d-84f6169e64f7" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_3ffdc111-1189-4aef-8368-a86eaaa74171" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsCommonStockCash_097387cd-6cf3-4316-a2cb-a3f32b9d1030" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DividendsCommonStockCash"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_1a5e804f-f785-4446-b00d-84f6169e64f7" xlink:to="loc_us-gaap_DividendsCommonStockCash_097387cd-6cf3-4316-a2cb-a3f32b9d1030" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharesOutstanding_0b364035-f6ca-4965-aa17-e652a41628b1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_f6b45e54-5df8-4e28-961c-79e95c3c0858" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_ed35b678-4df5-4aa2-9e7b-d868638352c3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_4c8a6365-a567-4f2d-966a-76be8f66c040" xlink:to="loc_us-gaap_StatementTable_ed35b678-4df5-4aa2-9e7b-d868638352c3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_15cb6b83-ee27-451b-95a8-0531eb0f5c89" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_ed35b678-4df5-4aa2-9e7b-d868638352c3" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_15cb6b83-ee27-451b-95a8-0531eb0f5c89" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_15cb6b83-ee27-451b-95a8-0531eb0f5c89_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_15cb6b83-ee27-451b-95a8-0531eb0f5c89" xlink:to="loc_us-gaap_EquityComponentDomain_15cb6b83-ee27-451b-95a8-0531eb0f5c89_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_f4e1f3f6-f0ae-4038-9eaf-a4868eeae286" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_15cb6b83-ee27-451b-95a8-0531eb0f5c89" xlink:to="loc_us-gaap_EquityComponentDomain_f4e1f3f6-f0ae-4038-9eaf-a4868eeae286" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_14139f12-de8b-4ea9-9f98-a891b1c8ba2c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_f4e1f3f6-f0ae-4038-9eaf-a4868eeae286" xlink:to="loc_us-gaap_CommonStockMember_14139f12-de8b-4ea9-9f98-a891b1c8ba2c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_887c724e-de47-4c55-90c9-142b5f05a164" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_f4e1f3f6-f0ae-4038-9eaf-a4868eeae286" xlink:to="loc_us-gaap_RetainedEarningsMember_887c724e-de47-4c55-90c9-142b5f05a164" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_9c7f82aa-3afa-4666-9457-b59f342afdc2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_f4e1f3f6-f0ae-4038-9eaf-a4868eeae286" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_9c7f82aa-3afa-4666-9457-b59f342afdc2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_26dd1e8f-4638-4f13-8996-cb1f4bb1863c" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_ed35b678-4df5-4aa2-9e7b-d868638352c3" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_26dd1e8f-4638-4f13-8996-cb1f4bb1863c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_26dd1e8f-4638-4f13-8996-cb1f4bb1863c_default" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_26dd1e8f-4638-4f13-8996-cb1f4bb1863c" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_26dd1e8f-4638-4f13-8996-cb1f4bb1863c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_0122757e-2777-4b0a-b6c5-1c0f003c8713" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_26dd1e8f-4638-4f13-8996-cb1f4bb1863c" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_0122757e-2777-4b0a-b6c5-1c0f003c8713" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_b8f49cf7-01d3-43df-a8e1-afa559d36706" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_0122757e-2777-4b0a-b6c5-1c0f003c8713" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_b8f49cf7-01d3-43df-a8e1-afa559d36706" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/DescriptionofBusinessBasisofPresentationandSignificantAccountingPoliciesandRecentlyIssuedAccountingPronouncementsAdditionalInformationDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#DescriptionofBusinessBasisofPresentationandSignificantAccountingPoliciesandRecentlyIssuedAccountingPronouncementsAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/DescriptionofBusinessBasisofPresentationandSignificantAccountingPoliciesandRecentlyIssuedAccountingPronouncementsAdditionalInformationDetails" xlink:type="extended" id="ifa8f503e30ae41e289fb7b64d010587c_DescriptionofBusinessBasisofPresentationandSignificantAccountingPoliciesandRecentlyIssuedAccountingPronouncementsAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_BusinessDescriptionAndBasisOfPresentationLineItems_ba5277a5-3a12-415a-81de-0d02cd6fd840" xlink:href="hfwa-20211231.xsd#hfwa_BusinessDescriptionAndBasisOfPresentationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_NumberOfBranchesOperating_956c1faf-6507-413e-a6c8-5b746893393d" xlink:href="hfwa-20211231.xsd#hfwa_NumberOfBranchesOperating"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_hfwa_BusinessDescriptionAndBasisOfPresentationLineItems_ba5277a5-3a12-415a-81de-0d02cd6fd840" xlink:to="loc_hfwa_NumberOfBranchesOperating_956c1faf-6507-413e-a6c8-5b746893393d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_bce35390-6742-45ae-bebc-e4c0c5cbec53" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentUsefulLife"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_hfwa_BusinessDescriptionAndBasisOfPresentationLineItems_ba5277a5-3a12-415a-81de-0d02cd6fd840" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_bce35390-6742-45ae-bebc-e4c0c5cbec53" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_CapitalizationThresholdPolicyContractualLeasePayments_7f36541b-e918-4700-b04c-b9a04c5c4918" xlink:href="hfwa-20211231.xsd#hfwa_CapitalizationThresholdPolicyContractualLeasePayments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_hfwa_BusinessDescriptionAndBasisOfPresentationLineItems_ba5277a5-3a12-415a-81de-0d02cd6fd840" xlink:to="loc_hfwa_CapitalizationThresholdPolicyContractualLeasePayments_7f36541b-e918-4700-b04c-b9a04c5c4918" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_VariableInterestEntityNumberofInvestments_93d9e0da-2848-47e6-a61f-25fc6447679d" xlink:href="hfwa-20211231.xsd#hfwa_VariableInterestEntityNumberofInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_hfwa_BusinessDescriptionAndBasisOfPresentationLineItems_ba5277a5-3a12-415a-81de-0d02cd6fd840" xlink:to="loc_hfwa_VariableInterestEntityNumberofInvestments_93d9e0da-2848-47e6-a61f-25fc6447679d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_QualifiedEquityInvestments_514410e6-70dd-4182-bc3d-639b987b57cc" xlink:href="hfwa-20211231.xsd#hfwa_QualifiedEquityInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_hfwa_BusinessDescriptionAndBasisOfPresentationLineItems_ba5277a5-3a12-415a-81de-0d02cd6fd840" xlink:to="loc_hfwa_QualifiedEquityInvestments_514410e6-70dd-4182-bc3d-639b987b57cc" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_NumberOfCertifiedDevelopmentEntities_7be2ebba-72dc-4978-8d72-ac824ff41342" xlink:href="hfwa-20211231.xsd#hfwa_NumberOfCertifiedDevelopmentEntities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_hfwa_BusinessDescriptionAndBasisOfPresentationLineItems_ba5277a5-3a12-415a-81de-0d02cd6fd840" xlink:to="loc_hfwa_NumberOfCertifiedDevelopmentEntities_7be2ebba-72dc-4978-8d72-ac824ff41342" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_TaxCreditCarryforwardRequiredFundingPercentage_b9e94aca-3abf-4518-8a3d-1ab3f94ea30d" xlink:href="hfwa-20211231.xsd#hfwa_TaxCreditCarryforwardRequiredFundingPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_hfwa_BusinessDescriptionAndBasisOfPresentationLineItems_ba5277a5-3a12-415a-81de-0d02cd6fd840" xlink:to="loc_hfwa_TaxCreditCarryforwardRequiredFundingPercentage_b9e94aca-3abf-4518-8a3d-1ab3f94ea30d" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NumberOfOperatingSegments_bdc656f8-5ae4-4269-b3ec-33e94fc4d967" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NumberOfOperatingSegments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_hfwa_BusinessDescriptionAndBasisOfPresentationLineItems_ba5277a5-3a12-415a-81de-0d02cd6fd840" xlink:to="loc_us-gaap_NumberOfOperatingSegments_bdc656f8-5ae4-4269-b3ec-33e94fc4d967" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_BusinessDescriptionAndBasisOfPresentationTable_efcf5f2c-707d-4378-95e0-43aa70f8a9c8" xlink:href="hfwa-20211231.xsd#hfwa_BusinessDescriptionAndBasisOfPresentationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_hfwa_BusinessDescriptionAndBasisOfPresentationLineItems_ba5277a5-3a12-415a-81de-0d02cd6fd840" xlink:to="loc_hfwa_BusinessDescriptionAndBasisOfPresentationTable_efcf5f2c-707d-4378-95e0-43aa70f8a9c8" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxCreditCarryforwardAxis_b397724c-2177-409c-a220-78ac4f7df579" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TaxCreditCarryforwardAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_hfwa_BusinessDescriptionAndBasisOfPresentationTable_efcf5f2c-707d-4378-95e0-43aa70f8a9c8" xlink:to="loc_us-gaap_TaxCreditCarryforwardAxis_b397724c-2177-409c-a220-78ac4f7df579" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxCreditCarryforwardNameDomain_b397724c-2177-409c-a220-78ac4f7df579_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TaxCreditCarryforwardNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TaxCreditCarryforwardAxis_b397724c-2177-409c-a220-78ac4f7df579" xlink:to="loc_us-gaap_TaxCreditCarryforwardNameDomain_b397724c-2177-409c-a220-78ac4f7df579_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxCreditCarryforwardNameDomain_4f9381ce-a02a-43d3-998b-797cb6e28f80" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TaxCreditCarryforwardNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TaxCreditCarryforwardAxis_b397724c-2177-409c-a220-78ac4f7df579" xlink:to="loc_us-gaap_TaxCreditCarryforwardNameDomain_4f9381ce-a02a-43d3-998b-797cb6e28f80" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCreditMember_14237367-1e67-4f4d-b03c-649539fc5399" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InvestmentCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardNameDomain_4f9381ce-a02a-43d3-998b-797cb6e28f80" xlink:to="loc_us-gaap_InvestmentCreditMember_14237367-1e67-4f4d-b03c-649539fc5399" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesAxis_393fb4ae-a076-4d6b-b13c-698573cdc90b" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_hfwa_BusinessDescriptionAndBasisOfPresentationTable_efcf5f2c-707d-4378-95e0-43aa70f8a9c8" xlink:to="loc_srt_ConsolidatedEntitiesAxis_393fb4ae-a076-4d6b-b13c-698573cdc90b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_393fb4ae-a076-4d6b-b13c-698573cdc90b_default" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_393fb4ae-a076-4d6b-b13c-698573cdc90b" xlink:to="loc_srt_ConsolidatedEntitiesDomain_393fb4ae-a076-4d6b-b13c-698573cdc90b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_600aa9f7-dc18-4410-8054-e725816ea507" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_393fb4ae-a076-4d6b-b13c-698573cdc90b" xlink:to="loc_srt_ConsolidatedEntitiesDomain_600aa9f7-dc18-4410-8054-e725816ea507" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SubsidiariesMember_774e3b0e-1c15-4f52-8f17-d08c10c6c871" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_SubsidiariesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_600aa9f7-dc18-4410-8054-e725816ea507" xlink:to="loc_srt_SubsidiariesMember_774e3b0e-1c15-4f52-8f17-d08c10c6c871" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_fe7d793e-a745-411f-86ee-1ff5b52f5850" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_hfwa_BusinessDescriptionAndBasisOfPresentationTable_efcf5f2c-707d-4378-95e0-43aa70f8a9c8" xlink:to="loc_dei_LegalEntityAxis_fe7d793e-a745-411f-86ee-1ff5b52f5850" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_fe7d793e-a745-411f-86ee-1ff5b52f5850_default" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_fe7d793e-a745-411f-86ee-1ff5b52f5850" xlink:to="loc_dei_EntityDomain_fe7d793e-a745-411f-86ee-1ff5b52f5850_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_32c2f8c6-0716-4e9b-bf56-40bc66bad48c" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_fe7d793e-a745-411f-86ee-1ff5b52f5850" xlink:to="loc_dei_EntityDomain_32c2f8c6-0716-4e9b-bf56-40bc66bad48c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_HeritageBankMember_b601c860-801d-410e-b69b-610530bf0b79" xlink:href="hfwa-20211231.xsd#hfwa_HeritageBankMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_32c2f8c6-0716-4e9b-bf56-40bc66bad48c" xlink:to="loc_hfwa_HeritageBankMember_b601c860-801d-410e-b69b-610530bf0b79" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_15bbe8fd-9e85-4b5c-97a9-96eb94882dd5" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_hfwa_BusinessDescriptionAndBasisOfPresentationTable_efcf5f2c-707d-4378-95e0-43aa70f8a9c8" xlink:to="loc_srt_RangeAxis_15bbe8fd-9e85-4b5c-97a9-96eb94882dd5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_15bbe8fd-9e85-4b5c-97a9-96eb94882dd5_default" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_15bbe8fd-9e85-4b5c-97a9-96eb94882dd5" xlink:to="loc_srt_RangeMember_15bbe8fd-9e85-4b5c-97a9-96eb94882dd5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_cc41db06-0853-4553-bec1-3927b745fc1f" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_15bbe8fd-9e85-4b5c-97a9-96eb94882dd5" xlink:to="loc_srt_RangeMember_cc41db06-0853-4553-bec1-3927b745fc1f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_5dfc4f4a-09ef-4b99-8d11-6b8a06ec6783" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_cc41db06-0853-4553-bec1-3927b745fc1f" xlink:to="loc_srt_MinimumMember_5dfc4f4a-09ef-4b99-8d11-6b8a06ec6783" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_b8a37a74-bb5f-4879-bf81-de168b4a7ba5" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_cc41db06-0853-4553-bec1-3927b745fc1f" xlink:to="loc_srt_MaximumMember_b8a37a74-bb5f-4879-bf81-de168b4a7ba5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_301e4a77-ae3f-40af-ad50-e13ab379f910" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_hfwa_BusinessDescriptionAndBasisOfPresentationTable_efcf5f2c-707d-4378-95e0-43aa70f8a9c8" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_301e4a77-ae3f-40af-ad50-e13ab379f910" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_301e4a77-ae3f-40af-ad50-e13ab379f910_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_301e4a77-ae3f-40af-ad50-e13ab379f910" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_301e4a77-ae3f-40af-ad50-e13ab379f910_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_01072eed-4cb0-424d-94a5-5d84282ccae6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_301e4a77-ae3f-40af-ad50-e13ab379f910" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_01072eed-4cb0-424d-94a5-5d84282ccae6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BuildingAndBuildingImprovementsMember_442b5b76-f846-4610-a6d9-9392e49179e7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BuildingAndBuildingImprovementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_01072eed-4cb0-424d-94a5-5d84282ccae6" xlink:to="loc_us-gaap_BuildingAndBuildingImprovementsMember_442b5b76-f846-4610-a6d9-9392e49179e7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FurnitureAndFixturesMember_bb97c047-c69d-46e2-8a09-f18314a3d907" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FurnitureAndFixturesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_01072eed-4cb0-424d-94a5-5d84282ccae6" xlink:to="loc_us-gaap_FurnitureAndFixturesMember_bb97c047-c69d-46e2-8a09-f18314a3d907" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/DescriptionofBusinessBasisofPresentationandSignificantAccountingPoliciesandRecentlyIssuedAccountingPronouncementsRecentlyIssuedorAdoptedAccountingPronouncementsDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#DescriptionofBusinessBasisofPresentationandSignificantAccountingPoliciesandRecentlyIssuedAccountingPronouncementsRecentlyIssuedorAdoptedAccountingPronouncementsDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/DescriptionofBusinessBasisofPresentationandSignificantAccountingPoliciesandRecentlyIssuedAccountingPronouncementsRecentlyIssuedorAdoptedAccountingPronouncementsDetails" xlink:type="extended" id="i5c336299619148019bd0546e40654caf_DescriptionofBusinessBasisofPresentationandSignificantAccountingPoliciesandRecentlyIssuedAccountingPronouncementsRecentlyIssuedorAdoptedAccountingPronouncementsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_8cd846af-f5bb-436d-8b49-09d040561764" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_946fb974-be5f-429c-9e68-ae641cb4b36f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_8cd846af-f5bb-436d-8b49-09d040561764" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_946fb974-be5f-429c-9e68-ae641cb4b36f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_40fca487-bfa8-4788-9440-f05264a0bcbf" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_8cd846af-f5bb-436d-8b49-09d040561764" xlink:to="loc_us-gaap_OperatingLeaseLiability_40fca487-bfa8-4788-9440-f05264a0bcbf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_db9031a9-455f-4fc5-bbb0-6428ac4756a8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_8cd846af-f5bb-436d-8b49-09d040561764" xlink:to="loc_us-gaap_StockholdersEquity_db9031a9-455f-4fc5-bbb0-6428ac4756a8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_DebtSecuritiesAvailableForSaleIssuancePercent_0311e16d-e611-4545-ab38-30792264f56d" xlink:href="hfwa-20211231.xsd#hfwa_DebtSecuritiesAvailableForSaleIssuancePercent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_8cd846af-f5bb-436d-8b49-09d040561764" xlink:to="loc_hfwa_DebtSecuritiesAvailableForSaleIssuancePercent_0311e16d-e611-4545-ab38-30792264f56d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAllowanceForCreditLoss_67ccc32d-890c-4dcd-b417-d29c6aa0fac7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_8cd846af-f5bb-436d-8b49-09d040561764" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleAllowanceForCreditLoss_67ccc32d-890c-4dcd-b417-d29c6aa0fac7" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLosses_0a1025eb-9560-426d-9d16-520793bb7ac9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLosses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_8cd846af-f5bb-436d-8b49-09d040561764" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLosses_0a1025eb-9560-426d-9d16-520793bb7ac9" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_CumulativeEffectsOfNewAccountingPrincipleInPeriodOfAdoption_0d75a9c2-b9e5-4e1d-a8bc-b7140e974465" xlink:href="hfwa-20211231.xsd#hfwa_CumulativeEffectsOfNewAccountingPrincipleInPeriodOfAdoption"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_8cd846af-f5bb-436d-8b49-09d040561764" xlink:to="loc_hfwa_CumulativeEffectsOfNewAccountingPrincipleInPeriodOfAdoption_0d75a9c2-b9e5-4e1d-a8bc-b7140e974465" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_AccumulatedCreditLossesToLoansReceivableRatio_1af04673-6df8-4b10-a3ae-de9e6b9370bf" xlink:href="hfwa-20211231.xsd#hfwa_AccumulatedCreditLossesToLoansReceivableRatio"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_8cd846af-f5bb-436d-8b49-09d040561764" xlink:to="loc_hfwa_AccumulatedCreditLossesToLoansReceivableRatio_1af04673-6df8-4b10-a3ae-de9e6b9370bf" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_FinancingReceivablePurchaseDiscountPremiumCECLDay1Balance_e05e9c9f-1afc-4585-a991-f7242e67dfd3" xlink:href="hfwa-20211231.xsd#hfwa_FinancingReceivablePurchaseDiscountPremiumCECLDay1Balance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_8cd846af-f5bb-436d-8b49-09d040561764" xlink:to="loc_hfwa_FinancingReceivablePurchaseDiscountPremiumCECLDay1Balance_e05e9c9f-1afc-4585-a991-f7242e67dfd3" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_FinancingReceivablePurchaseDiscountPremiumCECLDay1Change_80254cbc-56f5-4517-8d3d-955e44c57536" xlink:href="hfwa-20211231.xsd#hfwa_FinancingReceivablePurchaseDiscountPremiumCECLDay1Change"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_8cd846af-f5bb-436d-8b49-09d040561764" xlink:to="loc_hfwa_FinancingReceivablePurchaseDiscountPremiumCECLDay1Change_80254cbc-56f5-4517-8d3d-955e44c57536" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_FinancingReceivablePurchaseDiscountPremium_78f99870-ea41-49b5-9485-c96863b1832d" xlink:href="hfwa-20211231.xsd#hfwa_FinancingReceivablePurchaseDiscountPremium"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_8cd846af-f5bb-436d-8b49-09d040561764" xlink:to="loc_hfwa_FinancingReceivablePurchaseDiscountPremium_78f99870-ea41-49b5-9485-c96863b1832d" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoptionPreTax_a03cbadc-2a00-40dd-bdcd-61f228bb0686" xlink:href="hfwa-20211231.xsd#hfwa_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoptionPreTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_8cd846af-f5bb-436d-8b49-09d040561764" xlink:to="loc_hfwa_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoptionPreTax_a03cbadc-2a00-40dd-bdcd-61f228bb0686" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_21e42fc5-abd8-4531-a7cb-ede7613c3962" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_8cd846af-f5bb-436d-8b49-09d040561764" xlink:to="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_21e42fc5-abd8-4531-a7cb-ede7613c3962" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_481386d6-77b8-45da-a307-e52afad302a1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AdjustmentsForNewAccountingPronouncementsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_21e42fc5-abd8-4531-a7cb-ede7613c3962" xlink:to="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_481386d6-77b8-45da-a307-e52afad302a1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfAdoptionMember_481386d6-77b8-45da-a307-e52afad302a1_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TypeOfAdoptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_481386d6-77b8-45da-a307-e52afad302a1" xlink:to="loc_us-gaap_TypeOfAdoptionMember_481386d6-77b8-45da-a307-e52afad302a1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfAdoptionMember_10914af6-f9ac-40ae-9f31-87c36c0d4e08" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TypeOfAdoptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_481386d6-77b8-45da-a307-e52afad302a1" xlink:to="loc_us-gaap_TypeOfAdoptionMember_10914af6-f9ac-40ae-9f31-87c36c0d4e08" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountingStandardsUpdate201602Member_bb5bda6e-b7d3-4094-a13d-ebb7da93f1f8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccountingStandardsUpdate201602Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfAdoptionMember_10914af6-f9ac-40ae-9f31-87c36c0d4e08" xlink:to="loc_us-gaap_AccountingStandardsUpdate201602Member_bb5bda6e-b7d3-4094-a13d-ebb7da93f1f8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountingStandardsUpdate201613Member_4d3d0854-1f64-4483-a95d-8a65263a0b6e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccountingStandardsUpdate201613Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfAdoptionMember_10914af6-f9ac-40ae-9f31-87c36c0d4e08" xlink:to="loc_us-gaap_AccountingStandardsUpdate201613Member_4d3d0854-1f64-4483-a95d-8a65263a0b6e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountingStandardsUpdate201813Member_edc0215a-9bca-44fa-8a4e-e1008ff09247" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccountingStandardsUpdate201813Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfAdoptionMember_10914af6-f9ac-40ae-9f31-87c36c0d4e08" xlink:to="loc_us-gaap_AccountingStandardsUpdate201813Member_edc0215a-9bca-44fa-8a4e-e1008ff09247" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_07e78885-af14-4505-8002-63ebb9f5d18d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_21e42fc5-abd8-4531-a7cb-ede7613c3962" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_07e78885-af14-4505-8002-63ebb9f5d18d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_07e78885-af14-4505-8002-63ebb9f5d18d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_07e78885-af14-4505-8002-63ebb9f5d18d" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_07e78885-af14-4505-8002-63ebb9f5d18d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_87bf60ed-c601-425b-833e-807f01887e52" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_07e78885-af14-4505-8002-63ebb9f5d18d" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_87bf60ed-c601-425b-833e-807f01887e52" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_PurchaseCreditImpairedLoansMember_9e0d0505-f9ec-456e-8869-57e30d82c45a" xlink:href="hfwa-20211231.xsd#hfwa_PurchaseCreditImpairedLoansMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_87bf60ed-c601-425b-833e-807f01887e52" xlink:to="loc_hfwa_PurchaseCreditImpairedLoansMember_9e0d0505-f9ec-456e-8869-57e30d82c45a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentsAxis_8be18550-588a-429b-a144-e1200aecc70d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherCommitmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_21e42fc5-abd8-4531-a7cb-ede7613c3962" xlink:to="loc_us-gaap_OtherCommitmentsAxis_8be18550-588a-429b-a144-e1200aecc70d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentsDomain_8be18550-588a-429b-a144-e1200aecc70d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherCommitmentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_OtherCommitmentsAxis_8be18550-588a-429b-a144-e1200aecc70d" xlink:to="loc_us-gaap_OtherCommitmentsDomain_8be18550-588a-429b-a144-e1200aecc70d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentsDomain_658da040-2002-4738-b72e-67fd59991edd" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherCommitmentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_OtherCommitmentsAxis_8be18550-588a-429b-a144-e1200aecc70d" xlink:to="loc_us-gaap_OtherCommitmentsDomain_658da040-2002-4738-b72e-67fd59991edd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_TotalAllowanceForCreditLossesMember_951b1f3f-6e80-414e-a5c7-28eae127cdff" xlink:href="hfwa-20211231.xsd#hfwa_TotalAllowanceForCreditLossesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsDomain_658da040-2002-4738-b72e-67fd59991edd" xlink:to="loc_hfwa_TotalAllowanceForCreditLossesMember_951b1f3f-6e80-414e-a5c7-28eae127cdff" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_UnusedCommitmentstoExtendCreditMember_6160f8a6-7a1f-4a95-8d4e-df38e98ba416" xlink:href="hfwa-20211231.xsd#hfwa_UnusedCommitmentstoExtendCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsDomain_658da040-2002-4738-b72e-67fd59991edd" xlink:to="loc_hfwa_UnusedCommitmentstoExtendCreditMember_6160f8a6-7a1f-4a95-8d4e-df38e98ba416" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeographicDistributionAxis_4eab76c5-b676-47f7-965b-d56d86740538" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GeographicDistributionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_21e42fc5-abd8-4531-a7cb-ede7613c3962" xlink:to="loc_us-gaap_GeographicDistributionAxis_4eab76c5-b676-47f7-965b-d56d86740538" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeographicDistributionDomain_4eab76c5-b676-47f7-965b-d56d86740538_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GeographicDistributionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_GeographicDistributionAxis_4eab76c5-b676-47f7-965b-d56d86740538" xlink:to="loc_us-gaap_GeographicDistributionDomain_4eab76c5-b676-47f7-965b-d56d86740538_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeographicDistributionDomain_4065790a-f1ea-4321-b19f-5b3a52793bf1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GeographicDistributionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_GeographicDistributionAxis_4eab76c5-b676-47f7-965b-d56d86740538" xlink:to="loc_us-gaap_GeographicDistributionDomain_4065790a-f1ea-4321-b19f-5b3a52793bf1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_US_b1c0dfa0-0c06-4c84-9c04-5bc6851a34e2" xlink:href="https://xbrl.sec.gov/country/2021/country-2021.xsd#country_US"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GeographicDistributionDomain_4065790a-f1ea-4321-b19f-5b3a52793bf1" xlink:to="loc_country_US_b1c0dfa0-0c06-4c84-9c04-5bc6851a34e2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StateAndLocalJurisdictionMember_bcfff862-5807-4137-bca7-cbe315c313c8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StateAndLocalJurisdictionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GeographicDistributionDomain_4065790a-f1ea-4321-b19f-5b3a52793bf1" xlink:to="loc_us-gaap_StateAndLocalJurisdictionMember_bcfff862-5807-4137-bca7-cbe315c313c8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_09104b84-b838-452f-b7de-b0275efabf30" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_21e42fc5-abd8-4531-a7cb-ede7613c3962" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_09104b84-b838-452f-b7de-b0275efabf30" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_09104b84-b838-452f-b7de-b0275efabf30_default" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_09104b84-b838-452f-b7de-b0275efabf30" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_09104b84-b838-452f-b7de-b0275efabf30_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_4ded9b7d-17a4-4978-aeb0-7f6fc5a027a7" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_09104b84-b838-452f-b7de-b0275efabf30" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_4ded9b7d-17a4-4978-aeb0-7f6fc5a027a7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_d90670f9-1a51-49ca-9b85-05a97a3935f8" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_4ded9b7d-17a4-4978-aeb0-7f6fc5a027a7" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_d90670f9-1a51-49ca-9b85-05a97a3935f8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_ab02326a-eb7a-4a2b-8677-02282e26277c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_21e42fc5-abd8-4531-a7cb-ede7613c3962" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_ab02326a-eb7a-4a2b-8677-02282e26277c" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_ab02326a-eb7a-4a2b-8677-02282e26277c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_ab02326a-eb7a-4a2b-8677-02282e26277c" xlink:to="loc_us-gaap_EquityComponentDomain_ab02326a-eb7a-4a2b-8677-02282e26277c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_c2bea88c-9c34-428c-bbf3-2625334db683" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_ab02326a-eb7a-4a2b-8677-02282e26277c" xlink:to="loc_us-gaap_EquityComponentDomain_c2bea88c-9c34-428c-bbf3-2625334db683" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_0fa6561e-e9e0-4ba5-84e2-73c1625bb9b3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_c2bea88c-9c34-428c-bbf3-2625334db683" xlink:to="loc_us-gaap_RetainedEarningsMember_0fa6561e-e9e0-4ba5-84e2-73c1625bb9b3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsForChangeInAccountingPrincipleAxis_8b3ae7ff-2f5f-4d9e-bc5f-0c8486d20097" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AdjustmentsForChangeInAccountingPrincipleAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_21e42fc5-abd8-4531-a7cb-ede7613c3962" xlink:to="loc_us-gaap_AdjustmentsForChangeInAccountingPrincipleAxis_8b3ae7ff-2f5f-4d9e-bc5f-0c8486d20097" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ChangeInAccountingPrincipleMember_8b3ae7ff-2f5f-4d9e-bc5f-0c8486d20097_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ChangeInAccountingPrincipleMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AdjustmentsForChangeInAccountingPrincipleAxis_8b3ae7ff-2f5f-4d9e-bc5f-0c8486d20097" xlink:to="loc_us-gaap_ChangeInAccountingPrincipleMember_8b3ae7ff-2f5f-4d9e-bc5f-0c8486d20097_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ChangeInAccountingPrincipleMember_31c33321-95c4-493e-b040-d6b391c293c3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ChangeInAccountingPrincipleMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AdjustmentsForChangeInAccountingPrincipleAxis_8b3ae7ff-2f5f-4d9e-bc5f-0c8486d20097" xlink:to="loc_us-gaap_ChangeInAccountingPrincipleMember_31c33321-95c4-493e-b040-d6b391c293c3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountingStandardsUpdate201613Member_2dcbef23-3f54-41c3-a10c-6bbd4b162660" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccountingStandardsUpdate201613Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ChangeInAccountingPrincipleMember_31c33321-95c4-493e-b040-d6b391c293c3" xlink:to="loc_us-gaap_AccountingStandardsUpdate201613Member_2dcbef23-3f54-41c3-a10c-6bbd4b162660" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/InvestmentSecuritiesTextualsDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#InvestmentSecuritiesTextualsDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/InvestmentSecuritiesTextualsDetails" xlink:type="extended" id="i28c4ef1cc5ad43b8b77b33b9e55a5c64_InvestmentSecuritiesTextualsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_ae9a7b22-4e0a-438b-ace8-2edfa3678b79" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SummaryOfInvestmentHoldingsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_TransferOfInvestmentSecuritiesAvailableForSaleToHeldToMaturity_5ef06ef0-1c71-4e73-af3e-43773f0b7df0" xlink:href="hfwa-20211231.xsd#hfwa_TransferOfInvestmentSecuritiesAvailableForSaleToHeldToMaturity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_ae9a7b22-4e0a-438b-ace8-2edfa3678b79" xlink:to="loc_hfwa_TransferOfInvestmentSecuritiesAvailableForSaleToHeldToMaturity_5ef06ef0-1c71-4e73-af3e-43773f0b7df0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_GainLossTransferOfInvestmentSecuritiesAvailableForSaleToHeldToMaturity_28cc0b75-0513-4a13-b668-563e0079271e" xlink:href="hfwa-20211231.xsd#hfwa_GainLossTransferOfInvestmentSecuritiesAvailableForSaleToHeldToMaturity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_ae9a7b22-4e0a-438b-ace8-2edfa3678b79" xlink:to="loc_hfwa_GainLossTransferOfInvestmentSecuritiesAvailableForSaleToHeldToMaturity_28cc0b75-0513-4a13-b668-563e0079271e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TradingSecurities_da42c98f-666a-47f2-bb7e-c6240b2f6ed0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TradingSecurities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_ae9a7b22-4e0a-438b-ace8-2edfa3678b79" xlink:to="loc_us-gaap_TradingSecurities_da42c98f-666a-47f2-bb7e-c6240b2f6ed0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostAfterAllowanceForCreditLoss_43fdefaa-2662-40bc-a895-f26774a66c91" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostAfterAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_ae9a7b22-4e0a-438b-ace8-2edfa3678b79" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostAfterAllowanceForCreditLoss_43fdefaa-2662-40bc-a895-f26774a66c91" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAllowanceForCreditLoss_cf494c5b-c3a3-4631-9c64-7c1b4e0efaf5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_ae9a7b22-4e0a-438b-ace8-2edfa3678b79" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleAllowanceForCreditLoss_cf494c5b-c3a3-4631-9c64-7c1b4e0efaf5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturity90DaysOrMorePastDueStillAccruing_a9a6d390-6c51-406b-bc73-1cbc97edb59f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtSecuritiesHeldToMaturity90DaysOrMorePastDueStillAccruing"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_ae9a7b22-4e0a-438b-ace8-2edfa3678b79" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturity90DaysOrMorePastDueStillAccruing_a9a6d390-6c51-406b-bc73-1cbc97edb59f" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityNonaccrual_d15c5405-58d1-42c1-94fd-6c6d79ff74e6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtSecuritiesHeldToMaturityNonaccrual"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_ae9a7b22-4e0a-438b-ace8-2edfa3678b79" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityNonaccrual_d15c5405-58d1-42c1-94fd-6c6d79ff74e6" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityAllowanceForCreditLoss_5e9f2129-a836-4cc1-b266-0bc694838d04" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtSecuritiesHeldToMaturityAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_ae9a7b22-4e0a-438b-ace8-2edfa3678b79" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityAllowanceForCreditLoss_5e9f2129-a836-4cc1-b266-0bc694838d04" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedInvestmentIncomeReceivable_fa6b58d7-0e8a-4029-858f-bb24f4b46de6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccruedInvestmentIncomeReceivable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_ae9a7b22-4e0a-438b-ace8-2edfa3678b79" xlink:to="loc_us-gaap_AccruedInvestmentIncomeReceivable_fa6b58d7-0e8a-4029-858f-bb24f4b46de6" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAccruedInterestWriteoff_479421fe-f3da-426a-9f61-a18de92dbd5c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleAccruedInterestWriteoff"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_ae9a7b22-4e0a-438b-ace8-2edfa3678b79" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleAccruedInterestWriteoff_479421fe-f3da-426a-9f61-a18de92dbd5c" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityAccruedInterestWriteoff_054f1238-a613-43db-99cb-34fe9505a71d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtSecuritiesHeldToMaturityAccruedInterestWriteoff"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_ae9a7b22-4e0a-438b-ace8-2edfa3678b79" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityAccruedInterestWriteoff_054f1238-a613-43db-99cb-34fe9505a71d" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentHoldingsTable_078a85af-9310-4190-8476-05a81a06578d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InvestmentHoldingsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_ae9a7b22-4e0a-438b-ace8-2edfa3678b79" xlink:to="loc_us-gaap_InvestmentHoldingsTable_078a85af-9310-4190-8476-05a81a06578d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_aa27c464-c49a-4d4b-8f71-3148817ad139" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_InvestmentHoldingsTable_078a85af-9310-4190-8476-05a81a06578d" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_aa27c464-c49a-4d4b-8f71-3148817ad139" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_aa27c464-c49a-4d4b-8f71-3148817ad139_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_aa27c464-c49a-4d4b-8f71-3148817ad139" xlink:to="loc_us-gaap_EquityComponentDomain_aa27c464-c49a-4d4b-8f71-3148817ad139_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_1136072a-b528-42ba-947d-059a30f27c87" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_aa27c464-c49a-4d4b-8f71-3148817ad139" xlink:to="loc_us-gaap_EquityComponentDomain_1136072a-b528-42ba-947d-059a30f27c87" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_3225e892-f570-4219-8709-5699eb2a4b22" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_1136072a-b528-42ba-947d-059a30f27c87" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_3225e892-f570-4219-8709-5699eb2a4b22" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_51c99154-95d3-4970-9853-097d910b7a67" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_InvestmentHoldingsTable_078a85af-9310-4190-8476-05a81a06578d" xlink:to="loc_us-gaap_FinancialInstrumentAxis_51c99154-95d3-4970-9853-097d910b7a67" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_51c99154-95d3-4970-9853-097d910b7a67_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_51c99154-95d3-4970-9853-097d910b7a67" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_51c99154-95d3-4970-9853-097d910b7a67_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_d0f75a37-8518-4934-aea6-53f17cd0b61a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_51c99154-95d3-4970-9853-097d910b7a67" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_d0f75a37-8518-4934-aea6-53f17cd0b61a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldtomaturitySecuritiesMember_8380801a-0299-47fb-af4c-bef93d20aba6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_HeldtomaturitySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_d0f75a37-8518-4934-aea6-53f17cd0b61a" xlink:to="loc_us-gaap_HeldtomaturitySecuritiesMember_8380801a-0299-47fb-af4c-bef93d20aba6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableforsaleSecuritiesMember_5bd71afd-a453-4abf-b6d2-c992b183896d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AvailableforsaleSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_d0f75a37-8518-4934-aea6-53f17cd0b61a" xlink:to="loc_us-gaap_AvailableforsaleSecuritiesMember_5bd71afd-a453-4abf-b6d2-c992b183896d" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/InvestmentSecuritiesInvestmentSecuritiesbyClassificationTypeandMaturityDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#InvestmentSecuritiesInvestmentSecuritiesbyClassificationTypeandMaturityDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/InvestmentSecuritiesInvestmentSecuritiesbyClassificationTypeandMaturityDetails" xlink:type="extended" id="i7f442ed8f6b3401c98c7934932c03788_InvestmentSecuritiesInvestmentSecuritiesbyClassificationTypeandMaturityDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_f31051f6-3f7f-4846-b494-5ba980321b29" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_5ace0d02-9416-4989-9eb5-cb5d35ea03e7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_f31051f6-3f7f-4846-b494-5ba980321b29" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_5ace0d02-9416-4989-9eb5-cb5d35ea03e7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_7d10db2e-d713-4038-bc93-799309b69d16" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_f31051f6-3f7f-4846-b494-5ba980321b29" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_7d10db2e-d713-4038-bc93-799309b69d16" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_84637d68-cee3-4101-852c-f08fc26db39d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_f31051f6-3f7f-4846-b494-5ba980321b29" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_84637d68-cee3-4101-852c-f08fc26db39d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_6f49d791-e583-492b-b5a8-ba0da607c474" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_f31051f6-3f7f-4846-b494-5ba980321b29" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_6f49d791-e583-492b-b5a8-ba0da607c474" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostAfterAllowanceForCreditLoss_dea24f29-c418-49f4-881e-c5c38c80c11d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostAfterAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_f31051f6-3f7f-4846-b494-5ba980321b29" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostAfterAllowanceForCreditLoss_dea24f29-c418-49f4-881e-c5c38c80c11d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain_1a271c03-f996-4030-b4a5-d3c71c53dad1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_f31051f6-3f7f-4846-b494-5ba980321b29" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain_1a271c03-f996-4030-b4a5-d3c71c53dad1" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss_f45cc358-233f-4bb3-a3d8-8f2b86d03c3c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_f31051f6-3f7f-4846-b494-5ba980321b29" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss_f45cc358-233f-4bb3-a3d8-8f2b86d03c3c" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesFairValue_98845a87-5ff6-4936-9219-f2502efab84e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_HeldToMaturitySecuritiesFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_f31051f6-3f7f-4846-b494-5ba980321b29" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesFairValue_98845a87-5ff6-4936-9219-f2502efab84e" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_96d2e751-3438-4736-ba7e-bbe1cc430df8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_f31051f6-3f7f-4846-b494-5ba980321b29" xlink:to="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_96d2e751-3438-4736-ba7e-bbe1cc430df8" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_5a0b2899-7182-4e4d-b992-c3c13a7cf3b7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_96d2e751-3438-4736-ba7e-bbe1cc430df8" xlink:to="loc_us-gaap_FinancialInstrumentAxis_5a0b2899-7182-4e4d-b992-c3c13a7cf3b7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5a0b2899-7182-4e4d-b992-c3c13a7cf3b7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_5a0b2899-7182-4e4d-b992-c3c13a7cf3b7" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5a0b2899-7182-4e4d-b992-c3c13a7cf3b7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_6cb22854-c359-480d-9b3c-f370b742dbaa" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_5a0b2899-7182-4e4d-b992-c3c13a7cf3b7" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_6cb22854-c359-480d-9b3c-f370b742dbaa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USTreasuryAndGovernmentMember_3587da60-049d-46b7-94bb-a6aa6ae6dfe1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_USTreasuryAndGovernmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_6cb22854-c359-480d-9b3c-f370b742dbaa" xlink:to="loc_us-gaap_USTreasuryAndGovernmentMember_3587da60-049d-46b7-94bb-a6aa6ae6dfe1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MunicipalBondsMember_6719b134-99b5-4942-a4f9-ce364e6d57ce" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_MunicipalBondsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_6cb22854-c359-480d-9b3c-f370b742dbaa" xlink:to="loc_us-gaap_MunicipalBondsMember_6719b134-99b5-4942-a4f9-ce364e6d57ce" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResidentialMortgageBackedSecuritiesMember_63d92ed0-f682-40f2-84eb-17a197892ace" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ResidentialMortgageBackedSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_6cb22854-c359-480d-9b3c-f370b742dbaa" xlink:to="loc_us-gaap_ResidentialMortgageBackedSecuritiesMember_63d92ed0-f682-40f2-84eb-17a197892ace" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialMortgageBackedSecuritiesMember_400c395a-e355-47ad-94ee-6d08aeb8540e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommercialMortgageBackedSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_6cb22854-c359-480d-9b3c-f370b742dbaa" xlink:to="loc_us-gaap_CommercialMortgageBackedSecuritiesMember_400c395a-e355-47ad-94ee-6d08aeb8540e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_69c6f256-d278-483c-83d9-a854ca8f314e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CorporateDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_6cb22854-c359-480d-9b3c-f370b742dbaa" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_69c6f256-d278-483c-83d9-a854ca8f314e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAggregatedInvestmentsMember_1a71865c-27b8-45d7-8e18-915ef49da00d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherAggregatedInvestmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_6cb22854-c359-480d-9b3c-f370b742dbaa" xlink:to="loc_us-gaap_OtherAggregatedInvestmentsMember_1a71865c-27b8-45d7-8e18-915ef49da00d" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/InvestmentSecuritiesUnrealizedLossesDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#InvestmentSecuritiesUnrealizedLossesDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/InvestmentSecuritiesUnrealizedLossesDetails" xlink:type="extended" id="i2a932a28780c4d25af39f5cdb854e66e_InvestmentSecuritiesUnrealizedLossesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentHoldingsLineItems_d48406e0-3943-4299-b1bc-96bb59ec94d1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InvestmentHoldingsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_b405bb27-46a1-4e20-aa42-795aa6a134da" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentHoldingsLineItems_d48406e0-3943-4299-b1bc-96bb59ec94d1" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_b405bb27-46a1-4e20-aa42-795aa6a134da" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_30272a2b-ff98-4dcf-8f00-5f74293c9b96" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentHoldingsLineItems_d48406e0-3943-4299-b1bc-96bb59ec94d1" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_30272a2b-ff98-4dcf-8f00-5f74293c9b96" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_64637c2f-8cef-4c9e-a7e5-b930a663976d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentHoldingsLineItems_d48406e0-3943-4299-b1bc-96bb59ec94d1" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_64637c2f-8cef-4c9e-a7e5-b930a663976d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_17cf3879-9b89-48cc-a02b-239580123a85" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentHoldingsLineItems_d48406e0-3943-4299-b1bc-96bb59ec94d1" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_17cf3879-9b89-48cc-a02b-239580123a85" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_cb165668-90ed-42f0-92c4-4d38db234da8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentHoldingsLineItems_d48406e0-3943-4299-b1bc-96bb59ec94d1" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_cb165668-90ed-42f0-92c4-4d38db234da8" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_58b9081a-40d8-489f-b3cd-281428dabce0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentHoldingsLineItems_d48406e0-3943-4299-b1bc-96bb59ec94d1" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_58b9081a-40d8-489f-b3cd-281428dabce0" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentHoldingsTable_f29fc54f-96eb-4998-959f-352fbb25aa88" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InvestmentHoldingsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_InvestmentHoldingsLineItems_d48406e0-3943-4299-b1bc-96bb59ec94d1" xlink:to="loc_us-gaap_InvestmentHoldingsTable_f29fc54f-96eb-4998-959f-352fbb25aa88" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_17204408-ed9b-46ec-a5d0-4894e228a73d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_InvestmentHoldingsTable_f29fc54f-96eb-4998-959f-352fbb25aa88" xlink:to="loc_us-gaap_FinancialInstrumentAxis_17204408-ed9b-46ec-a5d0-4894e228a73d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_17204408-ed9b-46ec-a5d0-4894e228a73d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_17204408-ed9b-46ec-a5d0-4894e228a73d" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_17204408-ed9b-46ec-a5d0-4894e228a73d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_972c43a4-c6de-4f04-bd65-5ed7a7e9c1dc" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_17204408-ed9b-46ec-a5d0-4894e228a73d" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_972c43a4-c6de-4f04-bd65-5ed7a7e9c1dc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USTreasuryAndGovernmentMember_6391624f-69ca-48e6-aa16-60d4ee5b3e91" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_USTreasuryAndGovernmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_972c43a4-c6de-4f04-bd65-5ed7a7e9c1dc" xlink:to="loc_us-gaap_USTreasuryAndGovernmentMember_6391624f-69ca-48e6-aa16-60d4ee5b3e91" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MunicipalBondsMember_6cb4174f-b2f6-4d2e-8ab5-4be804d5f607" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_MunicipalBondsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_972c43a4-c6de-4f04-bd65-5ed7a7e9c1dc" xlink:to="loc_us-gaap_MunicipalBondsMember_6cb4174f-b2f6-4d2e-8ab5-4be804d5f607" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResidentialMortgageBackedSecuritiesMember_c977ef25-6f89-4c5c-867f-bfe68553ad83" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ResidentialMortgageBackedSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_972c43a4-c6de-4f04-bd65-5ed7a7e9c1dc" xlink:to="loc_us-gaap_ResidentialMortgageBackedSecuritiesMember_c977ef25-6f89-4c5c-867f-bfe68553ad83" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialMortgageBackedSecuritiesMember_7537a0a3-535f-4a07-91ac-eafdaf35c664" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommercialMortgageBackedSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_972c43a4-c6de-4f04-bd65-5ed7a7e9c1dc" xlink:to="loc_us-gaap_CommercialMortgageBackedSecuritiesMember_7537a0a3-535f-4a07-91ac-eafdaf35c664" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAggregatedInvestmentsMember_f0b9719a-3bd4-467e-b744-638c59474d0d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherAggregatedInvestmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_972c43a4-c6de-4f04-bd65-5ed7a7e9c1dc" xlink:to="loc_us-gaap_OtherAggregatedInvestmentsMember_f0b9719a-3bd4-467e-b744-638c59474d0d" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/InvestmentSecuritiesAmortizedCostandFairValueDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#InvestmentSecuritiesAmortizedCostandFairValueDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/InvestmentSecuritiesAmortizedCostandFairValueDetails" xlink:type="extended" id="i1500e9b2c2f24a4498fa27ffec7f323d_InvestmentSecuritiesAmortizedCostandFairValueDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentHoldingsLineItems_923c298d-63df-485a-907b-600a19e3ba76" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InvestmentHoldingsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepositLiabilitiesCollateralIssuedFinancialInstruments_3bc39611-6b0f-421b-bcd5-5d139eb7f8c2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DepositLiabilitiesCollateralIssuedFinancialInstruments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentHoldingsLineItems_923c298d-63df-485a-907b-600a19e3ba76" xlink:to="loc_us-gaap_DepositLiabilitiesCollateralIssuedFinancialInstruments_3bc39611-6b0f-421b-bcd5-5d139eb7f8c2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PledgedAssetsSeparatelyReportedSecuritiesPledgedAsCollateralAtFairValue_2e2ae297-aba2-4d83-a5b6-db061ba90375" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PledgedAssetsSeparatelyReportedSecuritiesPledgedAsCollateralAtFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentHoldingsLineItems_923c298d-63df-485a-907b-600a19e3ba76" xlink:to="loc_us-gaap_PledgedAssetsSeparatelyReportedSecuritiesPledgedAsCollateralAtFairValue_2e2ae297-aba2-4d83-a5b6-db061ba90375" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentHoldingsTable_afed3038-84f6-41a6-bb76-0468910fbb3a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InvestmentHoldingsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_InvestmentHoldingsLineItems_923c298d-63df-485a-907b-600a19e3ba76" xlink:to="loc_us-gaap_InvestmentHoldingsTable_afed3038-84f6-41a6-bb76-0468910fbb3a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeAxis_e208dcda-ac76-4652-9452-57c8f07c7433" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InvestmentTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_InvestmentHoldingsTable_afed3038-84f6-41a6-bb76-0468910fbb3a" xlink:to="loc_us-gaap_InvestmentTypeAxis_e208dcda-ac76-4652-9452-57c8f07c7433" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_e208dcda-ac76-4652-9452-57c8f07c7433_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InvestmentTypeAxis_e208dcda-ac76-4652-9452-57c8f07c7433" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_e208dcda-ac76-4652-9452-57c8f07c7433_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_74f97e3b-bfa8-4305-bd74-628f1f59ad65" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InvestmentTypeAxis_e208dcda-ac76-4652-9452-57c8f07c7433" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_74f97e3b-bfa8-4305-bd74-628f1f59ad65" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_WashingtonAndOregonStateToSecurePublicDepositsMember_88afb3d0-c4d2-4581-b6c5-6c7c41ff4c75" xlink:href="hfwa-20211231.xsd#hfwa_WashingtonAndOregonStateToSecurePublicDepositsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_74f97e3b-bfa8-4305-bd74-628f1f59ad65" xlink:to="loc_hfwa_WashingtonAndOregonStateToSecurePublicDepositsMember_88afb3d0-c4d2-4581-b6c5-6c7c41ff4c75" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalReserveBankAdvancesMember_df91b92b-66ff-46ef-94b5-1ad542d4d698" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FederalReserveBankAdvancesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_74f97e3b-bfa8-4305-bd74-628f1f59ad65" xlink:to="loc_us-gaap_FederalReserveBankAdvancesMember_df91b92b-66ff-46ef-94b5-1ad542d4d698" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepurchaseAgreementsMember_a723e9f7-8d71-48fb-9a10-f8eadd4d8f0e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RepurchaseAgreementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_74f97e3b-bfa8-4305-bd74-628f1f59ad65" xlink:to="loc_us-gaap_RepurchaseAgreementsMember_a723e9f7-8d71-48fb-9a10-f8eadd4d8f0e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_OtherSecuritiesPledgedMember_19746081-caa5-4a1a-865d-8e764d09475c" xlink:href="hfwa-20211231.xsd#hfwa_OtherSecuritiesPledgedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_74f97e3b-bfa8-4305-bd74-628f1f59ad65" xlink:to="loc_hfwa_OtherSecuritiesPledgedMember_19746081-caa5-4a1a-865d-8e764d09475c" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/LoansReceivableTextualsDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#LoansReceivableTextualsDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/LoansReceivableTextualsDetails" xlink:type="extended" id="i6bd595b873fc45ee97d49f288db51a4d_LoansReceivableTextualsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_43eeb90e-8c41-4437-b4b7-59d40410f004" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_NumberOfLoanSegments_d459b382-4a88-4018-a442-b1bab430eba1" xlink:href="hfwa-20211231.xsd#hfwa_NumberOfLoanSegments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_43eeb90e-8c41-4437-b4b7-59d40410f004" xlink:to="loc_hfwa_NumberOfLoanSegments_d459b382-4a88-4018-a442-b1bab430eba1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_FinancingReceivableMaturity_86d73bd7-4135-4112-a979-63fd7a730386" xlink:href="hfwa-20211231.xsd#hfwa_FinancingReceivableMaturity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_43eeb90e-8c41-4437-b4b7-59d40410f004" xlink:to="loc_hfwa_FinancingReceivableMaturity_86d73bd7-4135-4112-a979-63fd7a730386" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_FinancingReceivableInterestRate_46b11a61-a922-4bbf-9aae-970a3e6d64ea" xlink:href="hfwa-20211231.xsd#hfwa_FinancingReceivableInterestRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_43eeb90e-8c41-4437-b4b7-59d40410f004" xlink:to="loc_hfwa_FinancingReceivableInterestRate_46b11a61-a922-4bbf-9aae-970a3e6d64ea" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_MaximumLoansAndLeasesReceivablePercentOfAppraisedValueOrUnderlyingCollateralMortgageResidentialLoans_bdf7df2a-0e25-4b6f-8287-b12f3f10f64c" xlink:href="hfwa-20211231.xsd#hfwa_MaximumLoansAndLeasesReceivablePercentOfAppraisedValueOrUnderlyingCollateralMortgageResidentialLoans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_43eeb90e-8c41-4437-b4b7-59d40410f004" xlink:to="loc_hfwa_MaximumLoansAndLeasesReceivablePercentOfAppraisedValueOrUnderlyingCollateralMortgageResidentialLoans_bdf7df2a-0e25-4b6f-8287-b12f3f10f64c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_LoansandLeasesReceivablematurityTerm_d9b8dbe6-6aab-42fe-b612-896d9c2d05e2" xlink:href="hfwa-20211231.xsd#hfwa_LoansandLeasesReceivablematurityTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_43eeb90e-8c41-4437-b4b7-59d40410f004" xlink:to="loc_hfwa_LoansandLeasesReceivablematurityTerm_d9b8dbe6-6aab-42fe-b612-896d9c2d05e2" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_LoansAndLeasesReceivableMaximumPercentageConsumerLoans_a1c42da3-218f-44e1-b7e5-5ff5eeed3485" xlink:href="hfwa-20211231.xsd#hfwa_LoansAndLeasesReceivableMaximumPercentageConsumerLoans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_43eeb90e-8c41-4437-b4b7-59d40410f004" xlink:to="loc_hfwa_LoansAndLeasesReceivableMaximumPercentageConsumerLoans_a1c42da3-218f-44e1-b7e5-5ff5eeed3485" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_a0a2d84d-91b6-4180-a7ae-e4e060b00558" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InterestAndFeeIncomeLoansAndLeases"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_43eeb90e-8c41-4437-b4b7-59d40410f004" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_a0a2d84d-91b6-4180-a7ae-e4e060b00558" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestment90DaysPastDueAndStillAccruing_a3de1123-c691-4a50-bf7e-fc592f6b94f5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestment90DaysPastDueAndStillAccruing"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_43eeb90e-8c41-4437-b4b7-59d40410f004" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestment90DaysPastDueAndStillAccruing_a3de1123-c691-4a50-bf7e-fc592f6b94f5" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairedFinancingReceivableRelatedAllowance_44f0d197-a719-42d3-ae4a-093541289225" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ImpairedFinancingReceivableRelatedAllowance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_43eeb90e-8c41-4437-b4b7-59d40410f004" xlink:to="loc_us-gaap_ImpairedFinancingReceivableRelatedAllowance_44f0d197-a719-42d3-ae4a-093541289225" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansAndLeasesReceivableImpairedCommitmentToLend_f8127fe3-0eb8-401c-b07a-68e8053655f7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LoansAndLeasesReceivableImpairedCommitmentToLend"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_43eeb90e-8c41-4437-b4b7-59d40410f004" xlink:to="loc_us-gaap_LoansAndLeasesReceivableImpairedCommitmentToLend_f8127fe3-0eb8-401c-b07a-68e8053655f7" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableModificationsSubsequentDefaultNumberOfContracts1_ff94a3e4-cc0f-42d5-b83e-3678c84292e7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableModificationsSubsequentDefaultNumberOfContracts1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_43eeb90e-8c41-4437-b4b7-59d40410f004" xlink:to="loc_us-gaap_FinancingReceivableModificationsSubsequentDefaultNumberOfContracts1_ff94a3e4-cc0f-42d5-b83e-3678c84292e7" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_UnfundedCommitmentsonLoansandLeasesReceivableRelatedParties_119c237d-945c-44b5-900b-16e719309b7d" xlink:href="hfwa-20211231.xsd#hfwa_UnfundedCommitmentsonLoansandLeasesReceivableRelatedParties"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_43eeb90e-8c41-4437-b4b7-59d40410f004" xlink:to="loc_hfwa_UnfundedCommitmentsonLoansandLeasesReceivableRelatedParties_119c237d-945c-44b5-900b-16e719309b7d" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansReceivableHeldForSaleNetNotPartOfDisposalGroup_606dfcbd-72da-4bc2-bfd9-707079dc4d03" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LoansReceivableHeldForSaleNetNotPartOfDisposalGroup"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_43eeb90e-8c41-4437-b4b7-59d40410f004" xlink:to="loc_us-gaap_LoansReceivableHeldForSaleNetNotPartOfDisposalGroup_606dfcbd-72da-4bc2-bfd9-707079dc4d03" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FeesAndCommissionsMortgageBankingAndServicing_dba21a2d-aa32-499a-8230-ab49d2fdae90" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FeesAndCommissionsMortgageBankingAndServicing"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_43eeb90e-8c41-4437-b4b7-59d40410f004" xlink:to="loc_us-gaap_FeesAndCommissionsMortgageBankingAndServicing_dba21a2d-aa32-499a-8230-ab49d2fdae90" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ServicingAssetAtFairValueAmount_cc326222-c903-45b4-a631-669c6f97f5d4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ServicingAssetAtFairValueAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_43eeb90e-8c41-4437-b4b7-59d40410f004" xlink:to="loc_us-gaap_ServicingAssetAtFairValueAmount_cc326222-c903-45b4-a631-669c6f97f5d4" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ValuationAllowanceForImpairmentOfRecognizedServicingAssetsBalance_a579142e-5122-464f-b50c-1efc23a1e5a1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ValuationAllowanceForImpairmentOfRecognizedServicingAssetsBalance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_43eeb90e-8c41-4437-b4b7-59d40410f004" xlink:to="loc_us-gaap_ValuationAllowanceForImpairmentOfRecognizedServicingAssetsBalance_a579142e-5122-464f-b50c-1efc23a1e5a1" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestReceivable_baf64d8d-0d0d-4730-b154-145aed9fcb2d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InterestReceivable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_43eeb90e-8c41-4437-b4b7-59d40410f004" xlink:to="loc_us-gaap_InterestReceivable_baf64d8d-0d0d-4730-b154-145aed9fcb2d" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_4b0c7755-9128-4908-934a-df8f66e47753" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_43eeb90e-8c41-4437-b4b7-59d40410f004" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_4b0c7755-9128-4908-934a-df8f66e47753" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_1a145801-6004-424e-9084-dd24ffdd80ae" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_4b0c7755-9128-4908-934a-df8f66e47753" xlink:to="loc_srt_RangeAxis_1a145801-6004-424e-9084-dd24ffdd80ae" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_1a145801-6004-424e-9084-dd24ffdd80ae_default" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_1a145801-6004-424e-9084-dd24ffdd80ae" xlink:to="loc_srt_RangeMember_1a145801-6004-424e-9084-dd24ffdd80ae_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_2be04e7c-189d-4fbd-aff0-8eeb2f10f8ff" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_1a145801-6004-424e-9084-dd24ffdd80ae" xlink:to="loc_srt_RangeMember_2be04e7c-189d-4fbd-aff0-8eeb2f10f8ff" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_a034f804-9746-4800-8fc6-6d61b80cbbe9" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_2be04e7c-189d-4fbd-aff0-8eeb2f10f8ff" xlink:to="loc_srt_MinimumMember_a034f804-9746-4800-8fc6-6d61b80cbbe9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_27af87a6-755f-4003-bed2-5c5b39070e64" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_2be04e7c-189d-4fbd-aff0-8eeb2f10f8ff" xlink:to="loc_srt_MaximumMember_27af87a6-755f-4003-bed2-5c5b39070e64" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_105ba703-2c41-4a25-ae3c-2101dbe1af92" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_4b0c7755-9128-4908-934a-df8f66e47753" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_105ba703-2c41-4a25-ae3c-2101dbe1af92" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_105ba703-2c41-4a25-ae3c-2101dbe1af92_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_105ba703-2c41-4a25-ae3c-2101dbe1af92" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_105ba703-2c41-4a25-ae3c-2101dbe1af92_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_6df624cc-7c21-443c-bfed-a68351efacc2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_105ba703-2c41-4a25-ae3c-2101dbe1af92" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_6df624cc-7c21-443c-bfed-a68351efacc2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_dec830f7-e50b-4314-82ed-eb4606357c00" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommercialPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_6df624cc-7c21-443c-bfed-a68351efacc2" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_dec830f7-e50b-4314-82ed-eb4606357c00" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResidentialPortfolioSegmentMember_f9126398-cf09-44e3-bf4c-305de010ad49" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ResidentialPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_6df624cc-7c21-443c-bfed-a68351efacc2" xlink:to="loc_us-gaap_ResidentialPortfolioSegmentMember_f9126398-cf09-44e3-bf4c-305de010ad49" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_4e5be10f-0682-4fcc-a6c7-f80aaca75f91" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_4b0c7755-9128-4908-934a-df8f66e47753" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_4e5be10f-0682-4fcc-a6c7-f80aaca75f91" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_4e5be10f-0682-4fcc-a6c7-f80aaca75f91_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_4e5be10f-0682-4fcc-a6c7-f80aaca75f91" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_4e5be10f-0682-4fcc-a6c7-f80aaca75f91_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_025846b1-5a64-4b8d-ba37-c31a8a6cfda2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_4e5be10f-0682-4fcc-a6c7-f80aaca75f91" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_025846b1-5a64-4b8d-ba37-c31a8a6cfda2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_SBAPPPLoansMember_3f57dc43-0f1b-48d7-b2b5-3ee5ea663978" xlink:href="hfwa-20211231.xsd#hfwa_SBAPPPLoansMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_025846b1-5a64-4b8d-ba37-c31a8a6cfda2" xlink:to="loc_hfwa_SBAPPPLoansMember_3f57dc43-0f1b-48d7-b2b5-3ee5ea663978" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansReceivableMember_bc001142-acbc-4bf7-8493-1ded9ec3864c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LoansReceivableMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_025846b1-5a64-4b8d-ba37-c31a8a6cfda2" xlink:to="loc_us-gaap_LoansReceivableMember_bc001142-acbc-4bf7-8493-1ded9ec3864c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_12ed1f62-8348-4ff7-9a81-6c4279ad7938" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancialInstrumentPerformanceStatusAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_4b0c7755-9128-4908-934a-df8f66e47753" xlink:to="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_12ed1f62-8348-4ff7-9a81-6c4279ad7938" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_12ed1f62-8348-4ff7-9a81-6c4279ad7938_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancialInstrumentPerformanceStatusDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_12ed1f62-8348-4ff7-9a81-6c4279ad7938" xlink:to="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_12ed1f62-8348-4ff7-9a81-6c4279ad7938_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_3c7085ac-f9f4-4f8a-b3d6-b8a7e0f3fc68" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancialInstrumentPerformanceStatusDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_12ed1f62-8348-4ff7-9a81-6c4279ad7938" xlink:to="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_3c7085ac-f9f4-4f8a-b3d6-b8a7e0f3fc68" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_NonaccrualMember_7ad815aa-b6f3-4f9e-89c2-d8c0f084541b" xlink:href="hfwa-20211231.xsd#hfwa_NonaccrualMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_3c7085ac-f9f4-4f8a-b3d6-b8a7e0f3fc68" xlink:to="loc_hfwa_NonaccrualMember_7ad815aa-b6f3-4f9e-89c2-d8c0f084541b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_TroubledDebtRestructuredLoansMember_0138b120-b4c3-4ae9-8a75-324ff2cedef6" xlink:href="hfwa-20211231.xsd#hfwa_TroubledDebtRestructuredLoansMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_3c7085ac-f9f4-4f8a-b3d6-b8a7e0f3fc68" xlink:to="loc_hfwa_TroubledDebtRestructuredLoansMember_0138b120-b4c3-4ae9-8a75-324ff2cedef6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_998288ab-8108-4693-a5ce-fd14297c5429" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablesPeriodPastDueAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_4b0c7755-9128-4908-934a-df8f66e47753" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_998288ab-8108-4693-a5ce-fd14297c5429" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_998288ab-8108-4693-a5ce-fd14297c5429_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablesPeriodPastDueDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_998288ab-8108-4693-a5ce-fd14297c5429" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_998288ab-8108-4693-a5ce-fd14297c5429_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_d295b4ce-49d2-437b-bfc6-a20f08f7c6d8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablesPeriodPastDueDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_998288ab-8108-4693-a5ce-fd14297c5429" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_d295b4ce-49d2-437b-bfc6-a20f08f7c6d8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_PastModifiedMaturityDateMember_528c006f-d5e6-44dc-a0f9-493412d5cd70" xlink:href="hfwa-20211231.xsd#hfwa_PastModifiedMaturityDateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_d295b4ce-49d2-437b-bfc6-a20f08f7c6d8" xlink:to="loc_hfwa_PastModifiedMaturityDateMember_528c006f-d5e6-44dc-a0f9-493412d5cd70" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablesEqualToGreaterThan90DaysPastDueMember_9533bfd1-f52e-4bc2-8d6a-89b41623445a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablesEqualToGreaterThan90DaysPastDueMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_d295b4ce-49d2-437b-bfc6-a20f08f7c6d8" xlink:to="loc_us-gaap_FinancingReceivablesEqualToGreaterThan90DaysPastDueMember_9533bfd1-f52e-4bc2-8d6a-89b41623445a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis_70a59f01-9207-4a08-9330-d715ffdd5c60" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_4b0c7755-9128-4908-934a-df8f66e47753" xlink:to="loc_us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis_70a59f01-9207-4a08-9330-d715ffdd5c60" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReceivableTypeDomain_70a59f01-9207-4a08-9330-d715ffdd5c60_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ReceivableTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis_70a59f01-9207-4a08-9330-d715ffdd5c60" xlink:to="loc_us-gaap_ReceivableTypeDomain_70a59f01-9207-4a08-9330-d715ffdd5c60_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReceivableTypeDomain_06baff65-58ef-474d-a05a-9146e5598d2b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ReceivableTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis_70a59f01-9207-4a08-9330-d715ffdd5c60" xlink:to="loc_us-gaap_ReceivableTypeDomain_06baff65-58ef-474d-a05a-9146e5598d2b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_FinanceReceivableModifiedSubsequentDefaultMember_b012c170-4dad-45cd-9a7d-024c1fc819dd" xlink:href="hfwa-20211231.xsd#hfwa_FinanceReceivableModifiedSubsequentDefaultMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReceivableTypeDomain_06baff65-58ef-474d-a05a-9146e5598d2b" xlink:to="loc_hfwa_FinanceReceivableModifiedSubsequentDefaultMember_b012c170-4dad-45cd-9a7d-024c1fc819dd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_SBALoansMember_03d1e857-0def-45fb-aff8-8a4972ecdede" xlink:href="hfwa-20211231.xsd#hfwa_SBALoansMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReceivableTypeDomain_06baff65-58ef-474d-a05a-9146e5598d2b" xlink:to="loc_hfwa_SBALoansMember_03d1e857-0def-45fb-aff8-8a4972ecdede" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoanRestructuringModificationAxis_67f0e8b0-7995-44ea-a305-9bc91a16f3d8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LoanRestructuringModificationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_4b0c7755-9128-4908-934a-df8f66e47753" xlink:to="loc_us-gaap_LoanRestructuringModificationAxis_67f0e8b0-7995-44ea-a305-9bc91a16f3d8" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoanRestructuringModificationDomain_67f0e8b0-7995-44ea-a305-9bc91a16f3d8_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LoanRestructuringModificationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LoanRestructuringModificationAxis_67f0e8b0-7995-44ea-a305-9bc91a16f3d8" xlink:to="loc_us-gaap_LoanRestructuringModificationDomain_67f0e8b0-7995-44ea-a305-9bc91a16f3d8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoanRestructuringModificationDomain_2b117c2a-e7f5-4288-86fd-298c6be275d7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LoanRestructuringModificationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LoanRestructuringModificationAxis_67f0e8b0-7995-44ea-a305-9bc91a16f3d8" xlink:to="loc_us-gaap_LoanRestructuringModificationDomain_2b117c2a-e7f5-4288-86fd-298c6be275d7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_FinanceReceivableModifiedSubsequentDefaultMember_05ead3c1-a3c3-44b3-bcb2-1c97a9abe083" xlink:href="hfwa-20211231.xsd#hfwa_FinanceReceivableModifiedSubsequentDefaultMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoanRestructuringModificationDomain_2b117c2a-e7f5-4288-86fd-298c6be275d7" xlink:to="loc_hfwa_FinanceReceivableModifiedSubsequentDefaultMember_05ead3c1-a3c3-44b3-bcb2-1c97a9abe083" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/LoansReceivableAmortizedCostofLoansReceivableDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#LoansReceivableAmortizedCostofLoansReceivableDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/LoansReceivableAmortizedCostofLoansReceivableDetails" xlink:type="extended" id="i6ef624f0b3354ecea6bd7e36b5f06357_LoansReceivableAmortizedCostofLoansReceivableDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_33971299-78de-461a-88b0-c2774cfc98dc" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccountsNotesAndLoansReceivableLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableGross_b08dd139-432c-4467-aa6d-bc13511c4b7b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NotesReceivableGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_33971299-78de-461a-88b0-c2774cfc98dc" xlink:to="loc_us-gaap_NotesReceivableGross_b08dd139-432c-4467-aa6d-bc13511c4b7b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLosses_4e2a4883-9cb5-4dda-b9bb-624052264660" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLosses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_33971299-78de-461a-88b0-c2774cfc98dc" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLosses_4e2a4883-9cb5-4dda-b9bb-624052264660" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableNet_85f2c879-120b-4969-9734-063e365ece9e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NotesReceivableNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_33971299-78de-461a-88b0-c2774cfc98dc" xlink:to="loc_us-gaap_NotesReceivableNet_85f2c879-120b-4969-9734-063e365ece9e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableUnamortizedPurchasePremiumDiscount_18b9ab8d-0924-41c1-958f-5750525900fb" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableUnamortizedPurchasePremiumDiscount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_33971299-78de-461a-88b0-c2774cfc98dc" xlink:to="loc_us-gaap_FinancingReceivableUnamortizedPurchasePremiumDiscount_18b9ab8d-0924-41c1-958f-5750525900fb" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableUnamortizedLoanCommitmentOriginationFeeAndPremiumDiscount_87b2b3b2-45ff-467d-b5c2-0e041a99ed02" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableUnamortizedLoanCommitmentOriginationFeeAndPremiumDiscount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_33971299-78de-461a-88b0-c2774cfc98dc" xlink:to="loc_us-gaap_FinancingReceivableUnamortizedLoanCommitmentOriginationFeeAndPremiumDiscount_87b2b3b2-45ff-467d-b5c2-0e041a99ed02" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_19285b9b-64dd-44bd-8de5-1f9a658002fa" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_33971299-78de-461a-88b0-c2774cfc98dc" xlink:to="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_19285b9b-64dd-44bd-8de5-1f9a658002fa" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_3fe94461-cf3e-4c5f-b910-e57a0d8ae3b6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_19285b9b-64dd-44bd-8de5-1f9a658002fa" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_3fe94461-cf3e-4c5f-b910-e57a0d8ae3b6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_3fe94461-cf3e-4c5f-b910-e57a0d8ae3b6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_3fe94461-cf3e-4c5f-b910-e57a0d8ae3b6" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_3fe94461-cf3e-4c5f-b910-e57a0d8ae3b6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_d2c78255-dd2f-4c5d-bc2f-fd26f46f520c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_3fe94461-cf3e-4c5f-b910-e57a0d8ae3b6" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_d2c78255-dd2f-4c5d-bc2f-fd26f46f520c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_b5630645-2640-48d6-9f11-69a162ae24e2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommercialPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_d2c78255-dd2f-4c5d-bc2f-fd26f46f520c" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_b5630645-2640-48d6-9f11-69a162ae24e2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResidentialPortfolioSegmentMember_7009d9bf-2af0-4f49-b5db-c6010830cd12" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ResidentialPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_d2c78255-dd2f-4c5d-bc2f-fd26f46f520c" xlink:to="loc_us-gaap_ResidentialPortfolioSegmentMember_7009d9bf-2af0-4f49-b5db-c6010830cd12" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_RealEstateConstructionAndLandDevelopmentMember_1a90951b-ae1f-4153-9eff-7ae49b611bd3" xlink:href="hfwa-20211231.xsd#hfwa_RealEstateConstructionAndLandDevelopmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_d2c78255-dd2f-4c5d-bc2f-fd26f46f520c" xlink:to="loc_hfwa_RealEstateConstructionAndLandDevelopmentMember_1a90951b-ae1f-4153-9eff-7ae49b611bd3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConsumerPortfolioSegmentMember_fec1b6fd-8313-4302-8ccc-74ae47484aeb" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ConsumerPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_d2c78255-dd2f-4c5d-bc2f-fd26f46f520c" xlink:to="loc_us-gaap_ConsumerPortfolioSegmentMember_fec1b6fd-8313-4302-8ccc-74ae47484aeb" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_372f985c-6f81-4486-8576-bb203fe11338" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_19285b9b-64dd-44bd-8de5-1f9a658002fa" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_372f985c-6f81-4486-8576-bb203fe11338" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_372f985c-6f81-4486-8576-bb203fe11338_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_372f985c-6f81-4486-8576-bb203fe11338" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_372f985c-6f81-4486-8576-bb203fe11338_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_261c193a-5b71-4d53-aae8-9702c6019a03" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_372f985c-6f81-4486-8576-bb203fe11338" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_261c193a-5b71-4d53-aae8-9702c6019a03" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_CommercialAndIndustrialMember_43a79a05-1ab9-4615-9fa7-fd992d6b3666" xlink:href="hfwa-20211231.xsd#hfwa_CommercialAndIndustrialMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_261c193a-5b71-4d53-aae8-9702c6019a03" xlink:to="loc_hfwa_CommercialAndIndustrialMember_43a79a05-1ab9-4615-9fa7-fd992d6b3666" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_PaycheckProtectionProgramMember_84e01fd7-dcad-44fe-8a38-2acc650f1570" xlink:href="hfwa-20211231.xsd#hfwa_PaycheckProtectionProgramMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_261c193a-5b71-4d53-aae8-9702c6019a03" xlink:to="loc_hfwa_PaycheckProtectionProgramMember_84e01fd7-dcad-44fe-8a38-2acc650f1570" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_OwnerOccupiedCommercialRealEstateMember_b02f5660-b70c-4278-b639-816552ec36f4" xlink:href="hfwa-20211231.xsd#hfwa_OwnerOccupiedCommercialRealEstateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_261c193a-5b71-4d53-aae8-9702c6019a03" xlink:to="loc_hfwa_OwnerOccupiedCommercialRealEstateMember_b02f5660-b70c-4278-b639-816552ec36f4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_NonOwnerOccupiedCommercialRealEstateMember_b52aa464-1b4e-40ad-96ac-75eaf7b41c5c" xlink:href="hfwa-20211231.xsd#hfwa_NonOwnerOccupiedCommercialRealEstateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_261c193a-5b71-4d53-aae8-9702c6019a03" xlink:to="loc_hfwa_NonOwnerOccupiedCommercialRealEstateMember_b52aa464-1b4e-40ad-96ac-75eaf7b41c5c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_OnetoFourFamilyRealEstateConstructionMember_6efa3d9b-4849-4c8b-8692-471f49ef8ca2" xlink:href="hfwa-20211231.xsd#hfwa_OnetoFourFamilyRealEstateConstructionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_261c193a-5b71-4d53-aae8-9702c6019a03" xlink:to="loc_hfwa_OnetoFourFamilyRealEstateConstructionMember_6efa3d9b-4849-4c8b-8692-471f49ef8ca2" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_FiveOrMoreFamilyResidentialAndCommercialPropertiesMember_2b526ccd-ecc1-4c04-8723-e74977121cd8" xlink:href="hfwa-20211231.xsd#hfwa_FiveOrMoreFamilyResidentialAndCommercialPropertiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_261c193a-5b71-4d53-aae8-9702c6019a03" xlink:to="loc_hfwa_FiveOrMoreFamilyResidentialAndCommercialPropertiesMember_2b526ccd-ecc1-4c04-8723-e74977121cd8" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_e7cfb67f-0b82-4f26-84bd-c2527f3340df" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_19285b9b-64dd-44bd-8de5-1f9a658002fa" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_e7cfb67f-0b82-4f26-84bd-c2527f3340df" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_e7cfb67f-0b82-4f26-84bd-c2527f3340df_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_e7cfb67f-0b82-4f26-84bd-c2527f3340df" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_e7cfb67f-0b82-4f26-84bd-c2527f3340df_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_d6110305-d16f-41ad-8f68-739517492c22" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_e7cfb67f-0b82-4f26-84bd-c2527f3340df" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_d6110305-d16f-41ad-8f68-739517492c22" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_RealEstateConstructionAndLandDevelopmentMember_d7bd4121-add5-4c8b-adab-749d69f1f2ea" xlink:href="hfwa-20211231.xsd#hfwa_RealEstateConstructionAndLandDevelopmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_d6110305-d16f-41ad-8f68-739517492c22" xlink:to="loc_hfwa_RealEstateConstructionAndLandDevelopmentMember_d7bd4121-add5-4c8b-adab-749d69f1f2ea" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/LoansReceivableAmortizedCostofLoansReceivablebyRiskGradeDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#LoansReceivableAmortizedCostofLoansReceivablebyRiskGradeDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/LoansReceivableAmortizedCostofLoansReceivablebyRiskGradeDetails" xlink:type="extended" id="i8219a408521d45e48282e1c40676a5db_LoansReceivableAmortizedCostofLoansReceivablebyRiskGradeDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_aa6160b4-13ca-4445-9887-0be5e01e9484" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableOriginatedInCurrentFiscalYear_2b618c8b-b957-43aa-9af2-f0d0b64da2f6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableOriginatedInCurrentFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_aa6160b4-13ca-4445-9887-0be5e01e9484" xlink:to="loc_us-gaap_FinancingReceivableOriginatedInCurrentFiscalYear_2b618c8b-b957-43aa-9af2-f0d0b64da2f6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableOriginatedInFiscalYearBeforeLatestFiscalYear_a10b7419-e70b-4802-8b02-46fa0f6e3c5a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableOriginatedInFiscalYearBeforeLatestFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_aa6160b4-13ca-4445-9887-0be5e01e9484" xlink:to="loc_us-gaap_FinancingReceivableOriginatedInFiscalYearBeforeLatestFiscalYear_a10b7419-e70b-4802-8b02-46fa0f6e3c5a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableOriginatedTwoYearsBeforeLatestFiscalYear_ae71d49b-b563-4674-ac16-0c81888308cb" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableOriginatedTwoYearsBeforeLatestFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_aa6160b4-13ca-4445-9887-0be5e01e9484" xlink:to="loc_us-gaap_FinancingReceivableOriginatedTwoYearsBeforeLatestFiscalYear_ae71d49b-b563-4674-ac16-0c81888308cb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableOriginatedThreeYearsBeforeLatestFiscalYear_1fe27db4-ee82-4dea-b653-77accd038e65" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableOriginatedThreeYearsBeforeLatestFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_aa6160b4-13ca-4445-9887-0be5e01e9484" xlink:to="loc_us-gaap_FinancingReceivableOriginatedThreeYearsBeforeLatestFiscalYear_1fe27db4-ee82-4dea-b653-77accd038e65" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableOriginatedFourYearsBeforeLatestFiscalYear_17c59a2b-213a-48dd-b717-e33ad56baab4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableOriginatedFourYearsBeforeLatestFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_aa6160b4-13ca-4445-9887-0be5e01e9484" xlink:to="loc_us-gaap_FinancingReceivableOriginatedFourYearsBeforeLatestFiscalYear_17c59a2b-213a-48dd-b717-e33ad56baab4" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableOriginatedFiveOrMoreYearsBeforeLatestFiscalYear_6cd268cf-2d8c-40da-8ea0-f6630de4246d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableOriginatedFiveOrMoreYearsBeforeLatestFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_aa6160b4-13ca-4445-9887-0be5e01e9484" xlink:to="loc_us-gaap_FinancingReceivableOriginatedFiveOrMoreYearsBeforeLatestFiscalYear_6cd268cf-2d8c-40da-8ea0-f6630de4246d" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRevolving_2a0bfcd0-d0fa-423f-b590-87610b5230cf" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRevolving"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_aa6160b4-13ca-4445-9887-0be5e01e9484" xlink:to="loc_us-gaap_FinancingReceivableRevolving_2a0bfcd0-d0fa-423f-b590-87610b5230cf" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_FinancingReceivablerevolvingconvertedtoTermLoans_1e927ea7-b576-4fdb-94de-c23bc21751ea" xlink:href="hfwa-20211231.xsd#hfwa_FinancingReceivablerevolvingconvertedtoTermLoans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_aa6160b4-13ca-4445-9887-0be5e01e9484" xlink:to="loc_hfwa_FinancingReceivablerevolvingconvertedtoTermLoans_1e927ea7-b576-4fdb-94de-c23bc21751ea" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableGross_b3d98c70-9c7f-49c3-ab9d-4eafe9fbd3fd" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NotesReceivableGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_aa6160b4-13ca-4445-9887-0be5e01e9484" xlink:to="loc_us-gaap_NotesReceivableGross_b3d98c70-9c7f-49c3-ab9d-4eafe9fbd3fd" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_74fe1e1f-5bec-4da4-8ee7-06b13ca6fc75" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_aa6160b4-13ca-4445-9887-0be5e01e9484" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_74fe1e1f-5bec-4da4-8ee7-06b13ca6fc75" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_36c5e752-f69e-497a-a644-8a13fe97ef80" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_74fe1e1f-5bec-4da4-8ee7-06b13ca6fc75" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_36c5e752-f69e-497a-a644-8a13fe97ef80" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_36c5e752-f69e-497a-a644-8a13fe97ef80_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_36c5e752-f69e-497a-a644-8a13fe97ef80" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_36c5e752-f69e-497a-a644-8a13fe97ef80_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_296c2d85-709c-4fbb-808c-634c1c154851" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_36c5e752-f69e-497a-a644-8a13fe97ef80" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_296c2d85-709c-4fbb-808c-634c1c154851" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_5a99c358-d448-412a-98f3-2d1c9d658215" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommercialPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_296c2d85-709c-4fbb-808c-634c1c154851" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_5a99c358-d448-412a-98f3-2d1c9d658215" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResidentialPortfolioSegmentMember_074e2325-9d8c-4406-a7b8-70917bfedb5a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ResidentialPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_296c2d85-709c-4fbb-808c-634c1c154851" xlink:to="loc_us-gaap_ResidentialPortfolioSegmentMember_074e2325-9d8c-4406-a7b8-70917bfedb5a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_RealEstateConstructionAndLandDevelopmentMember_eb3a3922-a881-45a4-ace4-5d3dbfc12016" xlink:href="hfwa-20211231.xsd#hfwa_RealEstateConstructionAndLandDevelopmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_296c2d85-709c-4fbb-808c-634c1c154851" xlink:to="loc_hfwa_RealEstateConstructionAndLandDevelopmentMember_eb3a3922-a881-45a4-ace4-5d3dbfc12016" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConsumerPortfolioSegmentMember_ae4cb0f3-8d1d-4c2b-a36f-cb2082b3a774" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ConsumerPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_296c2d85-709c-4fbb-808c-634c1c154851" xlink:to="loc_us-gaap_ConsumerPortfolioSegmentMember_ae4cb0f3-8d1d-4c2b-a36f-cb2082b3a774" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_d63f2901-e60b-41f1-8e69-198b90ef9dc3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_74fe1e1f-5bec-4da4-8ee7-06b13ca6fc75" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_d63f2901-e60b-41f1-8e69-198b90ef9dc3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_d63f2901-e60b-41f1-8e69-198b90ef9dc3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_d63f2901-e60b-41f1-8e69-198b90ef9dc3" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_d63f2901-e60b-41f1-8e69-198b90ef9dc3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_3cce7e10-65cd-41f5-af87-d9110f501288" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_d63f2901-e60b-41f1-8e69-198b90ef9dc3" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_3cce7e10-65cd-41f5-af87-d9110f501288" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_CommercialAndIndustrialMember_fab1507e-07d7-4dd9-818a-123173e9d8b5" xlink:href="hfwa-20211231.xsd#hfwa_CommercialAndIndustrialMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_3cce7e10-65cd-41f5-af87-d9110f501288" xlink:to="loc_hfwa_CommercialAndIndustrialMember_fab1507e-07d7-4dd9-818a-123173e9d8b5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_PaycheckProtectionProgramMember_9e9b5c63-93e7-4566-b326-ddd5f3575150" xlink:href="hfwa-20211231.xsd#hfwa_PaycheckProtectionProgramMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_3cce7e10-65cd-41f5-af87-d9110f501288" xlink:to="loc_hfwa_PaycheckProtectionProgramMember_9e9b5c63-93e7-4566-b326-ddd5f3575150" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_OwnerOccupiedCommercialRealEstateMember_7d46ea9f-b81b-4e93-95db-585e4781e52a" xlink:href="hfwa-20211231.xsd#hfwa_OwnerOccupiedCommercialRealEstateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_3cce7e10-65cd-41f5-af87-d9110f501288" xlink:to="loc_hfwa_OwnerOccupiedCommercialRealEstateMember_7d46ea9f-b81b-4e93-95db-585e4781e52a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_NonOwnerOccupiedCommercialRealEstateMember_566f4ac9-f1b2-4cda-8f31-ff3976c681f3" xlink:href="hfwa-20211231.xsd#hfwa_NonOwnerOccupiedCommercialRealEstateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_3cce7e10-65cd-41f5-af87-d9110f501288" xlink:to="loc_hfwa_NonOwnerOccupiedCommercialRealEstateMember_566f4ac9-f1b2-4cda-8f31-ff3976c681f3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_OnetoFourFamilyRealEstateConstructionMember_db01aedd-5caf-4939-98e1-91b804053262" xlink:href="hfwa-20211231.xsd#hfwa_OnetoFourFamilyRealEstateConstructionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_3cce7e10-65cd-41f5-af87-d9110f501288" xlink:to="loc_hfwa_OnetoFourFamilyRealEstateConstructionMember_db01aedd-5caf-4939-98e1-91b804053262" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_FiveOrMoreFamilyResidentialAndCommercialPropertiesMember_16b2251c-672e-420c-9e82-91fb0396d793" xlink:href="hfwa-20211231.xsd#hfwa_FiveOrMoreFamilyResidentialAndCommercialPropertiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_3cce7e10-65cd-41f5-af87-d9110f501288" xlink:to="loc_hfwa_FiveOrMoreFamilyResidentialAndCommercialPropertiesMember_16b2251c-672e-420c-9e82-91fb0396d793" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InternalCreditAssessmentAxis_7941ef9c-d007-494e-a38b-f2fd0447181e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InternalCreditAssessmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_74fe1e1f-5bec-4da4-8ee7-06b13ca6fc75" xlink:to="loc_us-gaap_InternalCreditAssessmentAxis_7941ef9c-d007-494e-a38b-f2fd0447181e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InternalCreditAssessmentDomain_7941ef9c-d007-494e-a38b-f2fd0447181e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InternalCreditAssessmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InternalCreditAssessmentAxis_7941ef9c-d007-494e-a38b-f2fd0447181e" xlink:to="loc_us-gaap_InternalCreditAssessmentDomain_7941ef9c-d007-494e-a38b-f2fd0447181e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InternalCreditAssessmentDomain_0abd576c-cef9-4fcc-96ab-675b873c3d82" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InternalCreditAssessmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InternalCreditAssessmentAxis_7941ef9c-d007-494e-a38b-f2fd0447181e" xlink:to="loc_us-gaap_InternalCreditAssessmentDomain_0abd576c-cef9-4fcc-96ab-675b873c3d82" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PassMember_ceb95483-1283-482c-9e1b-7978a5842b88" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PassMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InternalCreditAssessmentDomain_0abd576c-cef9-4fcc-96ab-675b873c3d82" xlink:to="loc_us-gaap_PassMember_ceb95483-1283-482c-9e1b-7978a5842b88" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SpecialMentionMember_67d4da88-97ac-4a2a-9f01-bd2792b5338d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SpecialMentionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InternalCreditAssessmentDomain_0abd576c-cef9-4fcc-96ab-675b873c3d82" xlink:to="loc_us-gaap_SpecialMentionMember_67d4da88-97ac-4a2a-9f01-bd2792b5338d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubstandardMember_87747041-ad43-40cc-af96-ba275c0c1796" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SubstandardMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InternalCreditAssessmentDomain_0abd576c-cef9-4fcc-96ab-675b873c3d82" xlink:to="loc_us-gaap_SubstandardMember_87747041-ad43-40cc-af96-ba275c0c1796" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/LoansReceivableNonaccrualLoansDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#LoansReceivableNonaccrualLoansDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/LoansReceivableNonaccrualLoansDetails" xlink:type="extended" id="i0151c0b40a6e4e4daa2f563bb7054f06_LoansReceivableNonaccrualLoansDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_0ed8e2de-f798-4a5c-8432-35bbc96c4255" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccountsNotesAndLoansReceivableLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableNonaccrualNoAllowance_3ea21417-29f2-47f8-a9c0-daccfd0f7d97" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableNonaccrualNoAllowance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_0ed8e2de-f798-4a5c-8432-35bbc96c4255" xlink:to="loc_us-gaap_FinancingReceivableNonaccrualNoAllowance_3ea21417-29f2-47f8-a9c0-daccfd0f7d97" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_FinancingReceivableNonaccrualwithAllowance_e6dd6294-1e40-4882-a706-8c79092f7eef" xlink:href="hfwa-20211231.xsd#hfwa_FinancingReceivableNonaccrualwithAllowance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_0ed8e2de-f798-4a5c-8432-35bbc96c4255" xlink:to="loc_hfwa_FinancingReceivableNonaccrualwithAllowance_e6dd6294-1e40-4882-a706-8c79092f7eef" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentNonaccrualStatus_e5c80885-06c5-4a83-84b1-5a46bbf72ee8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentNonaccrualStatus"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_0ed8e2de-f798-4a5c-8432-35bbc96c4255" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentNonaccrualStatus_e5c80885-06c5-4a83-84b1-5a46bbf72ee8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAccruedInterestWriteoff_9e03b942-2756-4b0c-9ab7-6ec4c967093d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableAccruedInterestWriteoff"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_0ed8e2de-f798-4a5c-8432-35bbc96c4255" xlink:to="loc_us-gaap_FinancingReceivableAccruedInterestWriteoff_9e03b942-2756-4b0c-9ab7-6ec4c967093d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableNonaccrualInterestIncome_cde4bea1-9c1b-40b6-a823-dc1f3ec89703" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableNonaccrualInterestIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_0ed8e2de-f798-4a5c-8432-35bbc96c4255" xlink:to="loc_us-gaap_FinancingReceivableNonaccrualInterestIncome_cde4bea1-9c1b-40b6-a823-dc1f3ec89703" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_5ed243c6-e78c-44d9-9daa-aa87051a8175" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_0ed8e2de-f798-4a5c-8432-35bbc96c4255" xlink:to="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_5ed243c6-e78c-44d9-9daa-aa87051a8175" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_f3838902-7ea1-4243-8f1b-6349542ae040" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_5ed243c6-e78c-44d9-9daa-aa87051a8175" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_f3838902-7ea1-4243-8f1b-6349542ae040" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_f3838902-7ea1-4243-8f1b-6349542ae040_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_f3838902-7ea1-4243-8f1b-6349542ae040" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_f3838902-7ea1-4243-8f1b-6349542ae040_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_8aab6584-cf76-40ec-bf75-e672cd1d99aa" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_f3838902-7ea1-4243-8f1b-6349542ae040" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_8aab6584-cf76-40ec-bf75-e672cd1d99aa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_66ab1bcc-494b-45c8-b434-ecf94f8ef807" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommercialPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_8aab6584-cf76-40ec-bf75-e672cd1d99aa" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_66ab1bcc-494b-45c8-b434-ecf94f8ef807" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResidentialPortfolioSegmentMember_32a58841-141e-44cd-bcbe-a87ceead0fe2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ResidentialPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_8aab6584-cf76-40ec-bf75-e672cd1d99aa" xlink:to="loc_us-gaap_ResidentialPortfolioSegmentMember_32a58841-141e-44cd-bcbe-a87ceead0fe2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConsumerPortfolioSegmentMember_e3e66fca-459c-4405-a39a-e1ef34857b39" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ConsumerPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_8aab6584-cf76-40ec-bf75-e672cd1d99aa" xlink:to="loc_us-gaap_ConsumerPortfolioSegmentMember_e3e66fca-459c-4405-a39a-e1ef34857b39" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_RealEstateConstructionAndLandDevelopmentMember_f0c15d89-6e5f-444d-9220-7424c7d2db63" xlink:href="hfwa-20211231.xsd#hfwa_RealEstateConstructionAndLandDevelopmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_8aab6584-cf76-40ec-bf75-e672cd1d99aa" xlink:to="loc_hfwa_RealEstateConstructionAndLandDevelopmentMember_f0c15d89-6e5f-444d-9220-7424c7d2db63" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_150b9e51-abbc-4bca-9f31-401fe359e51f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_5ed243c6-e78c-44d9-9daa-aa87051a8175" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_150b9e51-abbc-4bca-9f31-401fe359e51f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_150b9e51-abbc-4bca-9f31-401fe359e51f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_150b9e51-abbc-4bca-9f31-401fe359e51f" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_150b9e51-abbc-4bca-9f31-401fe359e51f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_13826c8e-2962-414f-a7ca-e812176ec3cf" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_150b9e51-abbc-4bca-9f31-401fe359e51f" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_13826c8e-2962-414f-a7ca-e812176ec3cf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_CommercialAndIndustrialMember_27b68997-cbf9-4bc7-9190-585f900b9f87" xlink:href="hfwa-20211231.xsd#hfwa_CommercialAndIndustrialMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_13826c8e-2962-414f-a7ca-e812176ec3cf" xlink:to="loc_hfwa_CommercialAndIndustrialMember_27b68997-cbf9-4bc7-9190-585f900b9f87" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_OwnerOccupiedCommercialRealEstateMember_94f4b236-c8f8-4cbd-9c3e-06ffebc8e196" xlink:href="hfwa-20211231.xsd#hfwa_OwnerOccupiedCommercialRealEstateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_13826c8e-2962-414f-a7ca-e812176ec3cf" xlink:to="loc_hfwa_OwnerOccupiedCommercialRealEstateMember_94f4b236-c8f8-4cbd-9c3e-06ffebc8e196" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_NonOwnerOccupiedCommercialRealEstateMember_9cf65425-79a6-4c27-84c6-ca5f35a46fe2" xlink:href="hfwa-20211231.xsd#hfwa_NonOwnerOccupiedCommercialRealEstateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_13826c8e-2962-414f-a7ca-e812176ec3cf" xlink:to="loc_hfwa_NonOwnerOccupiedCommercialRealEstateMember_9cf65425-79a6-4c27-84c6-ca5f35a46fe2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_OnetoFourFamilyRealEstateConstructionMember_4ff7415a-0300-4cf2-8020-571703757ca6" xlink:href="hfwa-20211231.xsd#hfwa_OnetoFourFamilyRealEstateConstructionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_13826c8e-2962-414f-a7ca-e812176ec3cf" xlink:to="loc_hfwa_OnetoFourFamilyRealEstateConstructionMember_4ff7415a-0300-4cf2-8020-571703757ca6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_FiveOrMoreFamilyResidentialAndCommercialPropertiesMember_4f9b189c-2841-4e7b-b6c2-d08376f82ada" xlink:href="hfwa-20211231.xsd#hfwa_FiveOrMoreFamilyResidentialAndCommercialPropertiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_13826c8e-2962-414f-a7ca-e812176ec3cf" xlink:to="loc_hfwa_FiveOrMoreFamilyResidentialAndCommercialPropertiesMember_4f9b189c-2841-4e7b-b6c2-d08376f82ada" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InternalCreditAssessmentAxis_c9ac670b-e06a-4be9-be8d-ab65a3972cef" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InternalCreditAssessmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_5ed243c6-e78c-44d9-9daa-aa87051a8175" xlink:to="loc_us-gaap_InternalCreditAssessmentAxis_c9ac670b-e06a-4be9-be8d-ab65a3972cef" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InternalCreditAssessmentDomain_c9ac670b-e06a-4be9-be8d-ab65a3972cef_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InternalCreditAssessmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InternalCreditAssessmentAxis_c9ac670b-e06a-4be9-be8d-ab65a3972cef" xlink:to="loc_us-gaap_InternalCreditAssessmentDomain_c9ac670b-e06a-4be9-be8d-ab65a3972cef_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InternalCreditAssessmentDomain_547e3e55-c899-42d6-a3a6-cf2405032a30" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InternalCreditAssessmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InternalCreditAssessmentAxis_c9ac670b-e06a-4be9-be8d-ab65a3972cef" xlink:to="loc_us-gaap_InternalCreditAssessmentDomain_547e3e55-c899-42d6-a3a6-cf2405032a30" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SpecialMentionMember_6ae9622a-4807-4f3b-9604-a9e25752db62" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SpecialMentionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InternalCreditAssessmentDomain_547e3e55-c899-42d6-a3a6-cf2405032a30" xlink:to="loc_us-gaap_SpecialMentionMember_6ae9622a-4807-4f3b-9604-a9e25752db62" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_e8cff32e-3406-437f-809f-6e77e7e11b79" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancialInstrumentPerformanceStatusAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_5ed243c6-e78c-44d9-9daa-aa87051a8175" xlink:to="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_e8cff32e-3406-437f-809f-6e77e7e11b79" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_e8cff32e-3406-437f-809f-6e77e7e11b79_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancialInstrumentPerformanceStatusDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_e8cff32e-3406-437f-809f-6e77e7e11b79" xlink:to="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_e8cff32e-3406-437f-809f-6e77e7e11b79_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_8f11e3bd-be64-479f-b03a-95a5c79e497a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancialInstrumentPerformanceStatusDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_e8cff32e-3406-437f-809f-6e77e7e11b79" xlink:to="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_8f11e3bd-be64-479f-b03a-95a5c79e497a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_NonaccrualMember_1e40bbe7-457d-4880-b925-3598507464ab" xlink:href="hfwa-20211231.xsd#hfwa_NonaccrualMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_8f11e3bd-be64-479f-b03a-95a5c79e497a" xlink:to="loc_hfwa_NonaccrualMember_1e40bbe7-457d-4880-b925-3598507464ab" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/LoansReceivablePastDueLoansDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#LoansReceivablePastDueLoansDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/LoansReceivablePastDueLoansDetails" xlink:type="extended" id="ib8d983f4894a446b83ddd99058406536_LoansReceivablePastDueLoansDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_35804d4a-d6ac-4376-9719-1de832e0065e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableGross_0954d618-8277-4d20-a61a-0d5fc6942d89" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NotesReceivableGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_35804d4a-d6ac-4376-9719-1de832e0065e" xlink:to="loc_us-gaap_NotesReceivableGross_0954d618-8277-4d20-a61a-0d5fc6942d89" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_6fb1f0f0-0c6c-4138-9be5-73273a4db544" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfFinancingReceivablesPastDueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_35804d4a-d6ac-4376-9719-1de832e0065e" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_6fb1f0f0-0c6c-4138-9be5-73273a4db544" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_8aec91e9-7cf6-41e7-984a-c24d311bd2a1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_6fb1f0f0-0c6c-4138-9be5-73273a4db544" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_8aec91e9-7cf6-41e7-984a-c24d311bd2a1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_8aec91e9-7cf6-41e7-984a-c24d311bd2a1_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_8aec91e9-7cf6-41e7-984a-c24d311bd2a1" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_8aec91e9-7cf6-41e7-984a-c24d311bd2a1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_ff536bd5-e481-4a46-bccf-3fb820a4b2ba" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_8aec91e9-7cf6-41e7-984a-c24d311bd2a1" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_ff536bd5-e481-4a46-bccf-3fb820a4b2ba" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_8065d3ae-cce6-466e-bfb0-c9a1ceca48c9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommercialPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_ff536bd5-e481-4a46-bccf-3fb820a4b2ba" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_8065d3ae-cce6-466e-bfb0-c9a1ceca48c9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResidentialPortfolioSegmentMember_8f3aa7d1-e10c-4543-8ec8-bebe41674cb5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ResidentialPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_ff536bd5-e481-4a46-bccf-3fb820a4b2ba" xlink:to="loc_us-gaap_ResidentialPortfolioSegmentMember_8f3aa7d1-e10c-4543-8ec8-bebe41674cb5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_RealEstateConstructionAndLandDevelopmentMember_f7eacb98-4930-4d5b-8477-c173cf9d1c1e" xlink:href="hfwa-20211231.xsd#hfwa_RealEstateConstructionAndLandDevelopmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_ff536bd5-e481-4a46-bccf-3fb820a4b2ba" xlink:to="loc_hfwa_RealEstateConstructionAndLandDevelopmentMember_f7eacb98-4930-4d5b-8477-c173cf9d1c1e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConsumerPortfolioSegmentMember_88aaaf67-e223-438c-87b4-ad6e3c55bb35" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ConsumerPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_ff536bd5-e481-4a46-bccf-3fb820a4b2ba" xlink:to="loc_us-gaap_ConsumerPortfolioSegmentMember_88aaaf67-e223-438c-87b4-ad6e3c55bb35" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_f1b39fe7-2ed5-484d-aaf9-cde6e6f2e445" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_6fb1f0f0-0c6c-4138-9be5-73273a4db544" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_f1b39fe7-2ed5-484d-aaf9-cde6e6f2e445" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_f1b39fe7-2ed5-484d-aaf9-cde6e6f2e445_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_f1b39fe7-2ed5-484d-aaf9-cde6e6f2e445" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_f1b39fe7-2ed5-484d-aaf9-cde6e6f2e445_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_a64f0cbd-cc57-47e7-b3fd-ca16b5a704ab" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_f1b39fe7-2ed5-484d-aaf9-cde6e6f2e445" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_a64f0cbd-cc57-47e7-b3fd-ca16b5a704ab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_CommercialAndIndustrialMember_aefa09e7-daa6-412f-a971-5ac49f7eb33b" xlink:href="hfwa-20211231.xsd#hfwa_CommercialAndIndustrialMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_a64f0cbd-cc57-47e7-b3fd-ca16b5a704ab" xlink:to="loc_hfwa_CommercialAndIndustrialMember_aefa09e7-daa6-412f-a971-5ac49f7eb33b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_SBAPPPLoansMember_fe7937e1-f9c1-4845-afff-19cc55776b4b" xlink:href="hfwa-20211231.xsd#hfwa_SBAPPPLoansMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_a64f0cbd-cc57-47e7-b3fd-ca16b5a704ab" xlink:to="loc_hfwa_SBAPPPLoansMember_fe7937e1-f9c1-4845-afff-19cc55776b4b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_OwnerOccupiedCommercialRealEstateMember_b79d318f-374b-423b-a469-9c1c7ad32c49" xlink:href="hfwa-20211231.xsd#hfwa_OwnerOccupiedCommercialRealEstateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_a64f0cbd-cc57-47e7-b3fd-ca16b5a704ab" xlink:to="loc_hfwa_OwnerOccupiedCommercialRealEstateMember_b79d318f-374b-423b-a469-9c1c7ad32c49" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_NonOwnerOccupiedCommercialRealEstateMember_d7ad4a7b-e244-4eec-a17a-ee6632dfb5bd" xlink:href="hfwa-20211231.xsd#hfwa_NonOwnerOccupiedCommercialRealEstateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_a64f0cbd-cc57-47e7-b3fd-ca16b5a704ab" xlink:to="loc_hfwa_NonOwnerOccupiedCommercialRealEstateMember_d7ad4a7b-e244-4eec-a17a-ee6632dfb5bd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_OnetoFourFamilyRealEstateConstructionMember_0801dca0-3ce2-4cfa-97d6-b124fa9d38d2" xlink:href="hfwa-20211231.xsd#hfwa_OnetoFourFamilyRealEstateConstructionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_a64f0cbd-cc57-47e7-b3fd-ca16b5a704ab" xlink:to="loc_hfwa_OnetoFourFamilyRealEstateConstructionMember_0801dca0-3ce2-4cfa-97d6-b124fa9d38d2" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_FiveOrMoreFamilyResidentialAndCommercialPropertiesMember_05a42270-fa7b-4758-907c-56aee7c2bdb4" xlink:href="hfwa-20211231.xsd#hfwa_FiveOrMoreFamilyResidentialAndCommercialPropertiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_a64f0cbd-cc57-47e7-b3fd-ca16b5a704ab" xlink:to="loc_hfwa_FiveOrMoreFamilyResidentialAndCommercialPropertiesMember_05a42270-fa7b-4758-907c-56aee7c2bdb4" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_6581a39d-99fe-4dcb-b4fa-5d84a0459304" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablesPeriodPastDueAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_6fb1f0f0-0c6c-4138-9be5-73273a4db544" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_6581a39d-99fe-4dcb-b4fa-5d84a0459304" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_6581a39d-99fe-4dcb-b4fa-5d84a0459304_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablesPeriodPastDueDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_6581a39d-99fe-4dcb-b4fa-5d84a0459304" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_6581a39d-99fe-4dcb-b4fa-5d84a0459304_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_344112ad-4b88-4555-8602-52f22d3cfe1e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablesPeriodPastDueDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_6581a39d-99fe-4dcb-b4fa-5d84a0459304" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_344112ad-4b88-4555-8602-52f22d3cfe1e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_FinancingReceivables30to89DaysPastDueMember_d2d43c3f-8db2-4e87-b9da-db6a19574f9c" xlink:href="hfwa-20211231.xsd#hfwa_FinancingReceivables30to89DaysPastDueMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_344112ad-4b88-4555-8602-52f22d3cfe1e" xlink:to="loc_hfwa_FinancingReceivables30to89DaysPastDueMember_d2d43c3f-8db2-4e87-b9da-db6a19574f9c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablesEqualToGreaterThan90DaysPastDueMember_f4a7477b-9fd5-41a2-a017-34a0ec3315e5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablesEqualToGreaterThan90DaysPastDueMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_344112ad-4b88-4555-8602-52f22d3cfe1e" xlink:to="loc_us-gaap_FinancingReceivablesEqualToGreaterThan90DaysPastDueMember_f4a7477b-9fd5-41a2-a017-34a0ec3315e5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialAssetPastDueMember_7940a873-b1d3-40c4-8356-4faaa78f07e4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancialAssetPastDueMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_344112ad-4b88-4555-8602-52f22d3cfe1e" xlink:to="loc_us-gaap_FinancialAssetPastDueMember_7940a873-b1d3-40c4-8356-4faaa78f07e4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialAssetNotPastDueMember_43612cc1-bd65-4490-ad22-67d9ff5fe4ea" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancialAssetNotPastDueMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_344112ad-4b88-4555-8602-52f22d3cfe1e" xlink:to="loc_us-gaap_FinancialAssetNotPastDueMember_43612cc1-bd65-4490-ad22-67d9ff5fe4ea" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/LoansReceivableCollateralDependentLoansDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#LoansReceivableCollateralDependentLoansDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/LoansReceivableCollateralDependentLoansDetails" xlink:type="extended" id="i69c98e8d4abc4a5485e9ad4dc0c57985_LoansReceivableCollateralDependentLoansDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableImpairedLineItems_e666b111-7e19-4953-981d-406b070ba2cf" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableImpairedLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_FinancingReceivableCollateralForSecuredBorrowings_84dfeb1b-19f5-4432-9283-c4236e218aae" xlink:href="hfwa-20211231.xsd#hfwa_FinancingReceivableCollateralForSecuredBorrowings"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_e666b111-7e19-4953-981d-406b070ba2cf" xlink:to="loc_hfwa_FinancingReceivableCollateralForSecuredBorrowings_84dfeb1b-19f5-4432-9283-c4236e218aae" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfImpairedFinancingReceivableTable_7f9297a5-546c-43df-a434-274cbb366c5c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfImpairedFinancingReceivableTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_e666b111-7e19-4953-981d-406b070ba2cf" xlink:to="loc_us-gaap_ScheduleOfImpairedFinancingReceivableTable_7f9297a5-546c-43df-a434-274cbb366c5c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_839126d3-29f3-4fdc-86a9-bc1cb53871f8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfImpairedFinancingReceivableTable_7f9297a5-546c-43df-a434-274cbb366c5c" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_839126d3-29f3-4fdc-86a9-bc1cb53871f8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_839126d3-29f3-4fdc-86a9-bc1cb53871f8_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_839126d3-29f3-4fdc-86a9-bc1cb53871f8" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_839126d3-29f3-4fdc-86a9-bc1cb53871f8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_5aa388b6-ebf8-4126-b23a-2f44323828fb" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_839126d3-29f3-4fdc-86a9-bc1cb53871f8" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_5aa388b6-ebf8-4126-b23a-2f44323828fb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_c5d9de7c-7fd3-4fc9-af2d-0b05605d2c4d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommercialPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_5aa388b6-ebf8-4126-b23a-2f44323828fb" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_c5d9de7c-7fd3-4fc9-af2d-0b05605d2c4d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResidentialPortfolioSegmentMember_e958bf17-9053-4dab-8a24-54b8f3354f01" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ResidentialPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_5aa388b6-ebf8-4126-b23a-2f44323828fb" xlink:to="loc_us-gaap_ResidentialPortfolioSegmentMember_e958bf17-9053-4dab-8a24-54b8f3354f01" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_RealEstateConstructionAndLandDevelopmentMember_3bdd1c61-83fc-4e56-aed6-b79bb025c20b" xlink:href="hfwa-20211231.xsd#hfwa_RealEstateConstructionAndLandDevelopmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_5aa388b6-ebf8-4126-b23a-2f44323828fb" xlink:to="loc_hfwa_RealEstateConstructionAndLandDevelopmentMember_3bdd1c61-83fc-4e56-aed6-b79bb025c20b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConsumerPortfolioSegmentMember_acbde646-bfaa-4f77-956c-860c635e69d1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ConsumerPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_5aa388b6-ebf8-4126-b23a-2f44323828fb" xlink:to="loc_us-gaap_ConsumerPortfolioSegmentMember_acbde646-bfaa-4f77-956c-860c635e69d1" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_5c4b0a63-4fe9-4355-b919-e53ab8ca79c2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfImpairedFinancingReceivableTable_7f9297a5-546c-43df-a434-274cbb366c5c" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_5c4b0a63-4fe9-4355-b919-e53ab8ca79c2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_5c4b0a63-4fe9-4355-b919-e53ab8ca79c2_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_5c4b0a63-4fe9-4355-b919-e53ab8ca79c2" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_5c4b0a63-4fe9-4355-b919-e53ab8ca79c2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_93c29357-cb2f-46b3-aef8-6fdf68dc0cc6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_5c4b0a63-4fe9-4355-b919-e53ab8ca79c2" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_93c29357-cb2f-46b3-aef8-6fdf68dc0cc6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_CommercialAndIndustrialMember_b3cd8569-5caa-461a-8ddf-5dbfe8b1ba6a" xlink:href="hfwa-20211231.xsd#hfwa_CommercialAndIndustrialMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_93c29357-cb2f-46b3-aef8-6fdf68dc0cc6" xlink:to="loc_hfwa_CommercialAndIndustrialMember_b3cd8569-5caa-461a-8ddf-5dbfe8b1ba6a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_OwnerOccupiedCommercialRealEstateMember_ac295649-7ea9-4c91-8c5e-0d944fd76d3b" xlink:href="hfwa-20211231.xsd#hfwa_OwnerOccupiedCommercialRealEstateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_93c29357-cb2f-46b3-aef8-6fdf68dc0cc6" xlink:to="loc_hfwa_OwnerOccupiedCommercialRealEstateMember_ac295649-7ea9-4c91-8c5e-0d944fd76d3b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_NonOwnerOccupiedCommercialRealEstateMember_eeff7d40-d0d5-409e-823b-da4f10b5f6c4" xlink:href="hfwa-20211231.xsd#hfwa_NonOwnerOccupiedCommercialRealEstateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_93c29357-cb2f-46b3-aef8-6fdf68dc0cc6" xlink:to="loc_hfwa_NonOwnerOccupiedCommercialRealEstateMember_eeff7d40-d0d5-409e-823b-da4f10b5f6c4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_FiveOrMoreFamilyResidentialAndCommercialPropertiesMember_c340b57c-2685-47b6-ab0e-20b9b7525c52" xlink:href="hfwa-20211231.xsd#hfwa_FiveOrMoreFamilyResidentialAndCommercialPropertiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_93c29357-cb2f-46b3-aef8-6fdf68dc0cc6" xlink:to="loc_hfwa_FiveOrMoreFamilyResidentialAndCommercialPropertiesMember_c340b57c-2685-47b6-ab0e-20b9b7525c52" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollateralAxis_90f0bdc7-3beb-45a9-95de-723b63cb3468" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CollateralAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfImpairedFinancingReceivableTable_7f9297a5-546c-43df-a434-274cbb366c5c" xlink:to="loc_us-gaap_CollateralAxis_90f0bdc7-3beb-45a9-95de-723b63cb3468" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollateralDomain_90f0bdc7-3beb-45a9-95de-723b63cb3468_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CollateralDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CollateralAxis_90f0bdc7-3beb-45a9-95de-723b63cb3468" xlink:to="loc_us-gaap_CollateralDomain_90f0bdc7-3beb-45a9-95de-723b63cb3468_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollateralDomain_6d387063-1808-4b88-a183-096b97cc2a1c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CollateralDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CollateralAxis_90f0bdc7-3beb-45a9-95de-723b63cb3468" xlink:to="loc_us-gaap_CollateralDomain_6d387063-1808-4b88-a183-096b97cc2a1c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialRealEstateMember_42dd5cce-2772-46c2-8fdc-5a4977329207" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommercialRealEstateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollateralDomain_6d387063-1808-4b88-a183-096b97cc2a1c" xlink:to="loc_us-gaap_CommercialRealEstateMember_42dd5cce-2772-46c2-8fdc-5a4977329207" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_FarmlandMember_06e4a4cc-8e4a-4ae3-940d-7c9f08f296f0" xlink:href="hfwa-20211231.xsd#hfwa_FarmlandMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollateralDomain_6d387063-1808-4b88-a183-096b97cc2a1c" xlink:to="loc_hfwa_FarmlandMember_06e4a4cc-8e4a-4ae3-940d-7c9f08f296f0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SingleFamilyMember_99243ce0-da09-4384-b9fe-5992b164f91a" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_SingleFamilyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollateralDomain_6d387063-1808-4b88-a183-096b97cc2a1c" xlink:to="loc_srt_SingleFamilyMember_99243ce0-da09-4384-b9fe-5992b164f91a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_OtherMember_f1d766cd-fb6c-4851-8dad-2ad3585492bd" xlink:href="hfwa-20211231.xsd#hfwa_OtherMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollateralDomain_6d387063-1808-4b88-a183-096b97cc2a1c" xlink:to="loc_hfwa_OtherMember_f1d766cd-fb6c-4851-8dad-2ad3585492bd" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/LoansReceivableTroubledDebtRestructuredTDRsDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#LoansReceivableTroubledDebtRestructuredTDRsDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/LoansReceivableTroubledDebtRestructuredTDRsDetails" xlink:type="extended" id="ifde001eef37d4774bb404b6a92f53916_LoansReceivableTroubledDebtRestructuredTDRsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableModificationsLineItems_24cbcde4-9688-4aa0-86cd-958ef830febe" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableModificationsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableModificationsNumberOfContracts2_5a471d94-6b89-4f79-98c3-053d68cd90d9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableModificationsNumberOfContracts2"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableModificationsLineItems_24cbcde4-9688-4aa0-86cd-958ef830febe" xlink:to="loc_us-gaap_FinancingReceivableModificationsNumberOfContracts2_5a471d94-6b89-4f79-98c3-053d68cd90d9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableModificationsPostModificationRecordedInvestment2_580476cd-7364-404d-a8ae-55196177e97e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableModificationsPostModificationRecordedInvestment2"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableModificationsLineItems_24cbcde4-9688-4aa0-86cd-958ef830febe" xlink:to="loc_us-gaap_FinancingReceivableModificationsPostModificationRecordedInvestment2_580476cd-7364-404d-a8ae-55196177e97e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivableTroubledDebtRestructuringsTable_b2e9ec86-5bd0-4efc-a5fd-c2509ba78ae4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfFinancingReceivableTroubledDebtRestructuringsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableModificationsLineItems_24cbcde4-9688-4aa0-86cd-958ef830febe" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableTroubledDebtRestructuringsTable_b2e9ec86-5bd0-4efc-a5fd-c2509ba78ae4" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_f79b9d85-8fe7-4bf4-bcb2-21e0a984dbd7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancialInstrumentPerformanceStatusAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableTroubledDebtRestructuringsTable_b2e9ec86-5bd0-4efc-a5fd-c2509ba78ae4" xlink:to="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_f79b9d85-8fe7-4bf4-bcb2-21e0a984dbd7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_f79b9d85-8fe7-4bf4-bcb2-21e0a984dbd7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancialInstrumentPerformanceStatusDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_f79b9d85-8fe7-4bf4-bcb2-21e0a984dbd7" xlink:to="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_f79b9d85-8fe7-4bf4-bcb2-21e0a984dbd7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_2a0f3eb5-f7f9-4641-a0f9-252ed9ef28ca" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancialInstrumentPerformanceStatusDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_f79b9d85-8fe7-4bf4-bcb2-21e0a984dbd7" xlink:to="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_2a0f3eb5-f7f9-4641-a0f9-252ed9ef28ca" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_TroubledDebtRestructuredLoansMember_2d371a58-ed77-4fe8-bb01-943714e180b4" xlink:href="hfwa-20211231.xsd#hfwa_TroubledDebtRestructuredLoansMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_2a0f3eb5-f7f9-4641-a0f9-252ed9ef28ca" xlink:to="loc_hfwa_TroubledDebtRestructuredLoansMember_2d371a58-ed77-4fe8-bb01-943714e180b4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_c403c4df-3d5c-413d-a06a-0a5ab3e85860" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableTroubledDebtRestructuringsTable_b2e9ec86-5bd0-4efc-a5fd-c2509ba78ae4" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_c403c4df-3d5c-413d-a06a-0a5ab3e85860" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_c403c4df-3d5c-413d-a06a-0a5ab3e85860_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_c403c4df-3d5c-413d-a06a-0a5ab3e85860" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_c403c4df-3d5c-413d-a06a-0a5ab3e85860_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_4834029c-4407-4a40-af9a-b3fb9dbfe17c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_c403c4df-3d5c-413d-a06a-0a5ab3e85860" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_4834029c-4407-4a40-af9a-b3fb9dbfe17c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_7b162a99-9b8f-4860-9bbe-865ea978bcdb" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommercialPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_4834029c-4407-4a40-af9a-b3fb9dbfe17c" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_7b162a99-9b8f-4860-9bbe-865ea978bcdb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_OnetoFourFamilyRealEstateConstructionMember_e2f5b0f1-a799-4120-9628-9466c83e0a4d" xlink:href="hfwa-20211231.xsd#hfwa_OnetoFourFamilyRealEstateConstructionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_4834029c-4407-4a40-af9a-b3fb9dbfe17c" xlink:to="loc_hfwa_OnetoFourFamilyRealEstateConstructionMember_e2f5b0f1-a799-4120-9628-9466c83e0a4d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_RealEstateConstructionAndLandDevelopmentMember_40b1224a-3143-4a3b-86e6-c40625140c72" xlink:href="hfwa-20211231.xsd#hfwa_RealEstateConstructionAndLandDevelopmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_4834029c-4407-4a40-af9a-b3fb9dbfe17c" xlink:to="loc_hfwa_RealEstateConstructionAndLandDevelopmentMember_40b1224a-3143-4a3b-86e6-c40625140c72" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConsumerPortfolioSegmentMember_c3ff8877-e647-4434-8414-7e657d06347d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ConsumerPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_4834029c-4407-4a40-af9a-b3fb9dbfe17c" xlink:to="loc_us-gaap_ConsumerPortfolioSegmentMember_c3ff8877-e647-4434-8414-7e657d06347d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_64883a2e-7e20-4674-8f8f-286e003024f7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableTroubledDebtRestructuringsTable_b2e9ec86-5bd0-4efc-a5fd-c2509ba78ae4" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_64883a2e-7e20-4674-8f8f-286e003024f7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_64883a2e-7e20-4674-8f8f-286e003024f7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_64883a2e-7e20-4674-8f8f-286e003024f7" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_64883a2e-7e20-4674-8f8f-286e003024f7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_86bd2bf3-3ad1-4943-b8b4-1d98721144c5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_64883a2e-7e20-4674-8f8f-286e003024f7" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_86bd2bf3-3ad1-4943-b8b4-1d98721144c5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_CommercialAndIndustrialMember_01cf438c-4897-4429-b72c-beb304947c0f" xlink:href="hfwa-20211231.xsd#hfwa_CommercialAndIndustrialMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_86bd2bf3-3ad1-4943-b8b4-1d98721144c5" xlink:to="loc_hfwa_CommercialAndIndustrialMember_01cf438c-4897-4429-b72c-beb304947c0f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_OwnerOccupiedCommercialRealEstateMember_47ba26eb-bb3d-4adb-870f-f7cc3d3691c8" xlink:href="hfwa-20211231.xsd#hfwa_OwnerOccupiedCommercialRealEstateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_86bd2bf3-3ad1-4943-b8b4-1d98721144c5" xlink:to="loc_hfwa_OwnerOccupiedCommercialRealEstateMember_47ba26eb-bb3d-4adb-870f-f7cc3d3691c8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_NonOwnerOccupiedCommercialRealEstateMember_7a547d5d-e7dd-4b02-abd8-3fe734d115e8" xlink:href="hfwa-20211231.xsd#hfwa_NonOwnerOccupiedCommercialRealEstateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_86bd2bf3-3ad1-4943-b8b4-1d98721144c5" xlink:to="loc_hfwa_NonOwnerOccupiedCommercialRealEstateMember_7a547d5d-e7dd-4b02-abd8-3fe734d115e8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_OnetoFourFamilyRealEstateConstructionMember_3dc1e38b-3320-47fd-b2ed-0eb6b30d6e5c" xlink:href="hfwa-20211231.xsd#hfwa_OnetoFourFamilyRealEstateConstructionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_86bd2bf3-3ad1-4943-b8b4-1d98721144c5" xlink:to="loc_hfwa_OnetoFourFamilyRealEstateConstructionMember_3dc1e38b-3320-47fd-b2ed-0eb6b30d6e5c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_FiveOrMoreFamilyResidentialAndCommercialPropertiesMember_f2d89e19-d31b-4a68-979f-82dbbe860659" xlink:href="hfwa-20211231.xsd#hfwa_FiveOrMoreFamilyResidentialAndCommercialPropertiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_86bd2bf3-3ad1-4943-b8b4-1d98721144c5" xlink:to="loc_hfwa_FiveOrMoreFamilyResidentialAndCommercialPropertiesMember_f2d89e19-d31b-4a68-979f-82dbbe860659" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/LoansReceivableTDRsSubsequentlyDefaultedDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#LoansReceivableTDRsSubsequentlyDefaultedDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/LoansReceivableTDRsSubsequentlyDefaultedDetails" xlink:type="extended" id="i0e92a5218594493cb1bb1d8834beecb2_LoansReceivableTDRsSubsequentlyDefaultedDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableModificationsLineItems_fd884137-c3c6-4bb9-9a97-096ca868f42b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableModificationsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableModificationsSubsequentDefaultNumberOfContracts1_cef1c998-442c-4afc-a9d9-1d8e687ffdb8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableModificationsSubsequentDefaultNumberOfContracts1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableModificationsLineItems_fd884137-c3c6-4bb9-9a97-096ca868f42b" xlink:to="loc_us-gaap_FinancingReceivableModificationsSubsequentDefaultNumberOfContracts1_cef1c998-442c-4afc-a9d9-1d8e687ffdb8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableModificationsSubsequentDefaultRecordedInvestment1_56848fc3-e253-4c63-9578-c8716d8149ab" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableModificationsSubsequentDefaultRecordedInvestment1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableModificationsLineItems_fd884137-c3c6-4bb9-9a97-096ca868f42b" xlink:to="loc_us-gaap_FinancingReceivableModificationsSubsequentDefaultRecordedInvestment1_56848fc3-e253-4c63-9578-c8716d8149ab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivableTroubledDebtRestructuringsTable_4fcaa39b-a77e-4524-8176-190497a558a8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfFinancingReceivableTroubledDebtRestructuringsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableModificationsLineItems_fd884137-c3c6-4bb9-9a97-096ca868f42b" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableTroubledDebtRestructuringsTable_4fcaa39b-a77e-4524-8176-190497a558a8" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_06b70fcc-4f90-41c7-bb42-2e87fda7577a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancialInstrumentPerformanceStatusAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableTroubledDebtRestructuringsTable_4fcaa39b-a77e-4524-8176-190497a558a8" xlink:to="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_06b70fcc-4f90-41c7-bb42-2e87fda7577a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_06b70fcc-4f90-41c7-bb42-2e87fda7577a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancialInstrumentPerformanceStatusDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_06b70fcc-4f90-41c7-bb42-2e87fda7577a" xlink:to="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_06b70fcc-4f90-41c7-bb42-2e87fda7577a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_e6d71a53-0a74-4b3f-9569-73a35011157a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancialInstrumentPerformanceStatusDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_06b70fcc-4f90-41c7-bb42-2e87fda7577a" xlink:to="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_e6d71a53-0a74-4b3f-9569-73a35011157a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_TroubledDebtRestructuredLoansMember_87eb3157-444f-4719-8489-694a35cb9a78" xlink:href="hfwa-20211231.xsd#hfwa_TroubledDebtRestructuredLoansMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_e6d71a53-0a74-4b3f-9569-73a35011157a" xlink:to="loc_hfwa_TroubledDebtRestructuredLoansMember_87eb3157-444f-4719-8489-694a35cb9a78" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_1f6d4b5f-300b-4d5f-ae67-b56a575955c3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableTroubledDebtRestructuringsTable_4fcaa39b-a77e-4524-8176-190497a558a8" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_1f6d4b5f-300b-4d5f-ae67-b56a575955c3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_1f6d4b5f-300b-4d5f-ae67-b56a575955c3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_1f6d4b5f-300b-4d5f-ae67-b56a575955c3" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_1f6d4b5f-300b-4d5f-ae67-b56a575955c3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_7ac96ff3-8b60-48d5-b34c-5a279cfaee1d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_1f6d4b5f-300b-4d5f-ae67-b56a575955c3" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_7ac96ff3-8b60-48d5-b34c-5a279cfaee1d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_2dedb254-ef21-405a-b761-bf40cdf6ee16" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommercialPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_7ac96ff3-8b60-48d5-b34c-5a279cfaee1d" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_2dedb254-ef21-405a-b761-bf40cdf6ee16" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_6cd3f13d-84c5-484e-bc43-ce63f57d0cf0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableTroubledDebtRestructuringsTable_4fcaa39b-a77e-4524-8176-190497a558a8" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_6cd3f13d-84c5-484e-bc43-ce63f57d0cf0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_6cd3f13d-84c5-484e-bc43-ce63f57d0cf0_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_6cd3f13d-84c5-484e-bc43-ce63f57d0cf0" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_6cd3f13d-84c5-484e-bc43-ce63f57d0cf0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_e36aca5a-1ef7-43ae-9acf-527aebe3e69e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_6cd3f13d-84c5-484e-bc43-ce63f57d0cf0" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_e36aca5a-1ef7-43ae-9acf-527aebe3e69e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_CommercialAndIndustrialMember_d3f01c6f-a707-4661-a203-5bb75b0d0efa" xlink:href="hfwa-20211231.xsd#hfwa_CommercialAndIndustrialMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_e36aca5a-1ef7-43ae-9acf-527aebe3e69e" xlink:to="loc_hfwa_CommercialAndIndustrialMember_d3f01c6f-a707-4661-a203-5bb75b0d0efa" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_OwnerOccupiedCommercialRealEstateMember_0f1a95f4-faec-4e3f-8c32-afd4f2b624ef" xlink:href="hfwa-20211231.xsd#hfwa_OwnerOccupiedCommercialRealEstateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_e36aca5a-1ef7-43ae-9acf-527aebe3e69e" xlink:to="loc_hfwa_OwnerOccupiedCommercialRealEstateMember_0f1a95f4-faec-4e3f-8c32-afd4f2b624ef" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_NonOwnerOccupiedCommercialRealEstateMember_44e5be1d-c3e5-43a2-875b-e5f9f4431b2f" xlink:href="hfwa-20211231.xsd#hfwa_NonOwnerOccupiedCommercialRealEstateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_e36aca5a-1ef7-43ae-9acf-527aebe3e69e" xlink:to="loc_hfwa_NonOwnerOccupiedCommercialRealEstateMember_44e5be1d-c3e5-43a2-875b-e5f9f4431b2f" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/LoansReceivableMortgageBankingActivitiesDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#LoansReceivableMortgageBankingActivitiesDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/LoansReceivableMortgageBankingActivitiesDetails" xlink:type="extended" id="ifbb554a9ac6e4cea8eea48be0e22b0d7_LoansReceivableMortgageBankingActivitiesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_243406f8-c968-4bf7-a7b2-0e28dc65b367" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LoansAndLeasesReceivableDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MortgageBankingAbstract_3162f8a1-559c-43ac-9d5f-720faee204cb" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_MortgageBankingAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_243406f8-c968-4bf7-a7b2-0e28dc65b367" xlink:to="loc_us-gaap_MortgageBankingAbstract_3162f8a1-559c-43ac-9d5f-720faee204cb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForOriginationOfMortgageLoansHeldForSale_ca6f00fe-b4f4-4e0a-9333-64bc61cf3623" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsForOriginationOfMortgageLoansHeldForSale"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MortgageBankingAbstract_3162f8a1-559c-43ac-9d5f-720faee204cb" xlink:to="loc_us-gaap_PaymentsForOriginationOfMortgageLoansHeldForSale_ca6f00fe-b4f4-4e0a-9333-64bc61cf3623" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfMortgageLoansHeldForSale_c9a87cb6-8656-4616-b657-1cc27a99ac7f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromSaleOfMortgageLoansHeldForSale"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MortgageBankingAbstract_3162f8a1-559c-43ac-9d5f-720faee204cb" xlink:to="loc_us-gaap_ProceedsFromSaleOfMortgageLoansHeldForSale_c9a87cb6-8656-4616-b657-1cc27a99ac7f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfMortgageLoans_e55cbeec-ac62-4c22-9d12-9941434e6f28" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GainLossOnSaleOfMortgageLoans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MortgageBankingAbstract_3162f8a1-559c-43ac-9d5f-720faee204cb" xlink:to="loc_us-gaap_GainLossOnSaleOfMortgageLoans_e55cbeec-ac62-4c22-9d12-9941434e6f28" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansAndLeasesReceivableDisclosureTable_163c1226-b103-4530-9385-67cdde09e783" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LoansAndLeasesReceivableDisclosureTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_243406f8-c968-4bf7-a7b2-0e28dc65b367" xlink:to="loc_us-gaap_LoansAndLeasesReceivableDisclosureTable_163c1226-b103-4530-9385-67cdde09e783" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_20b77ae0-496e-4288-805d-e0e314ddb52a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureTable_163c1226-b103-4530-9385-67cdde09e783" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_20b77ae0-496e-4288-805d-e0e314ddb52a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_20b77ae0-496e-4288-805d-e0e314ddb52a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_20b77ae0-496e-4288-805d-e0e314ddb52a" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_20b77ae0-496e-4288-805d-e0e314ddb52a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_e935839c-9100-4624-88ae-928183636641" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_20b77ae0-496e-4288-805d-e0e314ddb52a" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_e935839c-9100-4624-88ae-928183636641" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResidentialPortfolioSegmentMember_e59d9641-8d29-4f51-a72b-4d558a78969d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ResidentialPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_e935839c-9100-4624-88ae-928183636641" xlink:to="loc_us-gaap_ResidentialPortfolioSegmentMember_e59d9641-8d29-4f51-a72b-4d558a78969d" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/LoansReceivableSBALoansDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#LoansReceivableSBALoansDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/LoansReceivableSBALoansDetails" xlink:type="extended" id="i5ad4b601c8604e769be093fb582a5e07_LoansReceivableSBALoansDetails">
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_SBALoansLineItems_89898ce0-736b-4116-a1d7-9e4e4d67292b" xlink:href="hfwa-20211231.xsd#hfwa_SBALoansLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_ParticipatingLoansBorrowerObligationsAmount_bfa14be3-e22e-4650-a4aa-5adccd37a6a9" xlink:href="hfwa-20211231.xsd#hfwa_ParticipatingLoansBorrowerObligationsAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_hfwa_SBALoansLineItems_89898ce0-736b-4116-a1d7-9e4e4d67292b" xlink:to="loc_hfwa_ParticipatingLoansBorrowerObligationsAmount_bfa14be3-e22e-4650-a4aa-5adccd37a6a9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransferOfFinancialAssetsAccountedForAsSalesAmountDerecognized_4bfbd9cd-3ea2-4272-8801-2886ac5e0735" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TransferOfFinancialAssetsAccountedForAsSalesAmountDerecognized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_hfwa_SBALoansLineItems_89898ce0-736b-4116-a1d7-9e4e4d67292b" xlink:to="loc_us-gaap_TransferOfFinancialAssetsAccountedForAsSalesAmountDerecognized_4bfbd9cd-3ea2-4272-8801-2886ac5e0735" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_SBALoansTable_03689563-5676-47f0-aebc-f4822c1f2be6" xlink:href="hfwa-20211231.xsd#hfwa_SBALoansTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_hfwa_SBALoansLineItems_89898ce0-736b-4116-a1d7-9e4e4d67292b" xlink:to="loc_hfwa_SBALoansTable_03689563-5676-47f0-aebc-f4822c1f2be6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis_23f5e488-4ca4-4b9f-8cf0-d9cf379b45d0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_hfwa_SBALoansTable_03689563-5676-47f0-aebc-f4822c1f2be6" xlink:to="loc_us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis_23f5e488-4ca4-4b9f-8cf0-d9cf379b45d0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReceivableTypeDomain_23f5e488-4ca4-4b9f-8cf0-d9cf379b45d0_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ReceivableTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis_23f5e488-4ca4-4b9f-8cf0-d9cf379b45d0" xlink:to="loc_us-gaap_ReceivableTypeDomain_23f5e488-4ca4-4b9f-8cf0-d9cf379b45d0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReceivableTypeDomain_72aaa4b5-78b9-4db8-87a8-11f69b8e23ea" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ReceivableTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis_23f5e488-4ca4-4b9f-8cf0-d9cf379b45d0" xlink:to="loc_us-gaap_ReceivableTypeDomain_72aaa4b5-78b9-4db8-87a8-11f69b8e23ea" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_SBALoansMember_8bbb0345-a6f7-486a-be59-8254b9314845" xlink:href="hfwa-20211231.xsd#hfwa_SBALoansMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReceivableTypeDomain_72aaa4b5-78b9-4db8-87a8-11f69b8e23ea" xlink:to="loc_hfwa_SBALoansMember_8bbb0345-a6f7-486a-be59-8254b9314845" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/AllowanceforCreditLossesonLoansActivityinAllowanceforLossesDisaggregatedonBasisofImpairmentDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#AllowanceforCreditLossesonLoansActivityinAllowanceforLossesDisaggregatedonBasisofImpairmentDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/AllowanceforCreditLossesonLoansActivityinAllowanceforLossesDisaggregatedonBasisofImpairmentDetails" xlink:type="extended" id="ie6794886ba8a4222b0b469cf66eb8562_AllowanceforCreditLossesonLoansActivityinAllowanceforLossesDisaggregatedonBasisofImpairmentDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_25fbbcc3-92b4-46c5-bd72-e8c582b2cc11" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccountsNotesAndLoansReceivableLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesRollForward_0e998e92-fc6a-4fc0-8f38-1c2290a12942" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AllowanceForLoanAndLeaseLossesRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_25fbbcc3-92b4-46c5-bd72-e8c582b2cc11" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossesRollForward_0e998e92-fc6a-4fc0-8f38-1c2290a12942" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansAndLeasesReceivableAllowance_ee7a4be9-b66b-48b2-badf-b7eec9b93451" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LoansAndLeasesReceivableAllowance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AllowanceForLoanAndLeaseLossesRollForward_0e998e92-fc6a-4fc0-8f38-1c2290a12942" xlink:to="loc_us-gaap_LoansAndLeasesReceivableAllowance_ee7a4be9-b66b-48b2-badf-b7eec9b93451" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesWriteOffs_1672c4a1-137e-4674-bb9c-c4619e512c43" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AllowanceForLoanAndLeaseLossesWriteOffs"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AllowanceForLoanAndLeaseLossesRollForward_0e998e92-fc6a-4fc0-8f38-1c2290a12942" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossesWriteOffs_1672c4a1-137e-4674-bb9c-c4619e512c43" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossRecoveryOfBadDebts_46c5d7d2-8a2b-4a2a-b8ca-7e7a4c2cb389" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AllowanceForLoanAndLeaseLossRecoveryOfBadDebts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AllowanceForLoanAndLeaseLossesRollForward_0e998e92-fc6a-4fc0-8f38-1c2290a12942" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossRecoveryOfBadDebts_46c5d7d2-8a2b-4a2a-b8ca-7e7a4c2cb389" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanAndLeaseLosses_ccf9bf03-fcc7-4a77-81a9-df811ca024ec" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProvisionForLoanAndLeaseLosses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AllowanceForLoanAndLeaseLossesRollForward_0e998e92-fc6a-4fc0-8f38-1c2290a12942" xlink:to="loc_us-gaap_ProvisionForLoanAndLeaseLosses_ccf9bf03-fcc7-4a77-81a9-df811ca024ec" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansAndLeasesReceivableAllowance_50247956-b088-496d-9636-5513005caed5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LoansAndLeasesReceivableAllowance"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLosses_18c5c7e4-4c87-4098-864c-76a42f9ad482" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLosses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_25fbbcc3-92b4-46c5-bd72-e8c582b2cc11" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLosses_18c5c7e4-4c87-4098-864c-76a42f9ad482" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_CumulativeEffectsOfNewAccountingPrincipleInPeriodOfAdoption_98a35f9f-b821-45db-935a-27e912e5cfc3" xlink:href="hfwa-20211231.xsd#hfwa_CumulativeEffectsOfNewAccountingPrincipleInPeriodOfAdoption"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_25fbbcc3-92b4-46c5-bd72-e8c582b2cc11" xlink:to="loc_hfwa_CumulativeEffectsOfNewAccountingPrincipleInPeriodOfAdoption_98a35f9f-b821-45db-935a-27e912e5cfc3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesWriteOffs_175bc17b-f8ca-4b23-b515-8492b446ebd6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesWriteOffs"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_25fbbcc3-92b4-46c5-bd72-e8c582b2cc11" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesWriteOffs_175bc17b-f8ca-4b23-b515-8492b446ebd6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesRecovery_4beaeb65-d22e-4b37-83f7-31c5b7e7fd71" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesRecovery"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_25fbbcc3-92b4-46c5-bd72-e8c582b2cc11" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesRecovery_4beaeb65-d22e-4b37-83f7-31c5b7e7fd71" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_dad95b20-db35-48e9-be23-c1b0272e87bd" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProvisionForLoanLeaseAndOtherLosses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_25fbbcc3-92b4-46c5-bd72-e8c582b2cc11" xlink:to="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_dad95b20-db35-48e9-be23-c1b0272e87bd" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLosses_823fb84e-f86d-45f7-9afa-e10936abc36c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLosses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_e3d2df04-3973-42cb-a5c7-c52034b6d184" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_25fbbcc3-92b4-46c5-bd72-e8c582b2cc11" xlink:to="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_e3d2df04-3973-42cb-a5c7-c52034b6d184" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_fa042017-a4bf-43ad-a8e5-95760f540c91" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_e3d2df04-3973-42cb-a5c7-c52034b6d184" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_fa042017-a4bf-43ad-a8e5-95760f540c91" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_fa042017-a4bf-43ad-a8e5-95760f540c91_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_fa042017-a4bf-43ad-a8e5-95760f540c91" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_fa042017-a4bf-43ad-a8e5-95760f540c91_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_a02fb9f9-68ba-4514-81bd-38552af1977e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_fa042017-a4bf-43ad-a8e5-95760f540c91" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_a02fb9f9-68ba-4514-81bd-38552af1977e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_38bb529b-0bd7-4643-a558-29bb28bcd0e9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommercialPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_a02fb9f9-68ba-4514-81bd-38552af1977e" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_38bb529b-0bd7-4643-a558-29bb28bcd0e9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResidentialPortfolioSegmentMember_031f8336-a6ea-4100-af90-c0759329c640" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ResidentialPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_a02fb9f9-68ba-4514-81bd-38552af1977e" xlink:to="loc_us-gaap_ResidentialPortfolioSegmentMember_031f8336-a6ea-4100-af90-c0759329c640" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_RealEstateConstructionAndLandDevelopmentMember_e1322df4-8bcc-4859-94c5-b131eb8cff73" xlink:href="hfwa-20211231.xsd#hfwa_RealEstateConstructionAndLandDevelopmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_a02fb9f9-68ba-4514-81bd-38552af1977e" xlink:to="loc_hfwa_RealEstateConstructionAndLandDevelopmentMember_e1322df4-8bcc-4859-94c5-b131eb8cff73" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConsumerPortfolioSegmentMember_57026d06-eb3f-4f09-aa94-de7c8b48bacd" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ConsumerPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_a02fb9f9-68ba-4514-81bd-38552af1977e" xlink:to="loc_us-gaap_ConsumerPortfolioSegmentMember_57026d06-eb3f-4f09-aa94-de7c8b48bacd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_UnallocatedMember_b81dc783-f324-4d71-b326-a896995c9914" xlink:href="hfwa-20211231.xsd#hfwa_UnallocatedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_a02fb9f9-68ba-4514-81bd-38552af1977e" xlink:to="loc_hfwa_UnallocatedMember_b81dc783-f324-4d71-b326-a896995c9914" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_d33872a4-fa7d-4b55-8484-01aa66fbd55b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_e3d2df04-3973-42cb-a5c7-c52034b6d184" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_d33872a4-fa7d-4b55-8484-01aa66fbd55b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_d33872a4-fa7d-4b55-8484-01aa66fbd55b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_d33872a4-fa7d-4b55-8484-01aa66fbd55b" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_d33872a4-fa7d-4b55-8484-01aa66fbd55b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_22df0016-2ec6-4fce-89fd-90fdfe55d8d5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_d33872a4-fa7d-4b55-8484-01aa66fbd55b" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_22df0016-2ec6-4fce-89fd-90fdfe55d8d5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_CommercialAndIndustrialMember_a658166a-2241-46c5-abec-100911105c57" xlink:href="hfwa-20211231.xsd#hfwa_CommercialAndIndustrialMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_22df0016-2ec6-4fce-89fd-90fdfe55d8d5" xlink:to="loc_hfwa_CommercialAndIndustrialMember_a658166a-2241-46c5-abec-100911105c57" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_OwnerOccupiedCommercialRealEstateMember_4538c372-af22-429b-b6b8-c1b6a86db6f7" xlink:href="hfwa-20211231.xsd#hfwa_OwnerOccupiedCommercialRealEstateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_22df0016-2ec6-4fce-89fd-90fdfe55d8d5" xlink:to="loc_hfwa_OwnerOccupiedCommercialRealEstateMember_4538c372-af22-429b-b6b8-c1b6a86db6f7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_NonOwnerOccupiedCommercialRealEstateMember_2ac5079e-9604-40d1-b2ab-37266b02c500" xlink:href="hfwa-20211231.xsd#hfwa_NonOwnerOccupiedCommercialRealEstateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_22df0016-2ec6-4fce-89fd-90fdfe55d8d5" xlink:to="loc_hfwa_NonOwnerOccupiedCommercialRealEstateMember_2ac5079e-9604-40d1-b2ab-37266b02c500" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_OnetoFourFamilyRealEstateConstructionMember_113535f0-46c5-444f-b43e-67d8ca7625d2" xlink:href="hfwa-20211231.xsd#hfwa_OnetoFourFamilyRealEstateConstructionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_22df0016-2ec6-4fce-89fd-90fdfe55d8d5" xlink:to="loc_hfwa_OnetoFourFamilyRealEstateConstructionMember_113535f0-46c5-444f-b43e-67d8ca7625d2" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_FiveOrMoreFamilyResidentialAndCommercialPropertiesMember_c55500df-d043-4659-9f09-80955756f0c2" xlink:href="hfwa-20211231.xsd#hfwa_FiveOrMoreFamilyResidentialAndCommercialPropertiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_22df0016-2ec6-4fce-89fd-90fdfe55d8d5" xlink:to="loc_hfwa_FiveOrMoreFamilyResidentialAndCommercialPropertiesMember_c55500df-d043-4659-9f09-80955756f0c2" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_be1dc3ee-ab9c-4684-a078-c3a8e10ab56b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AdjustmentsForNewAccountingPronouncementsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_e3d2df04-3973-42cb-a5c7-c52034b6d184" xlink:to="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_be1dc3ee-ab9c-4684-a078-c3a8e10ab56b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfAdoptionMember_be1dc3ee-ab9c-4684-a078-c3a8e10ab56b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TypeOfAdoptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_be1dc3ee-ab9c-4684-a078-c3a8e10ab56b" xlink:to="loc_us-gaap_TypeOfAdoptionMember_be1dc3ee-ab9c-4684-a078-c3a8e10ab56b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfAdoptionMember_9daf32b3-cb3f-41c8-965e-f0a4bf6cb28e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TypeOfAdoptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_be1dc3ee-ab9c-4684-a078-c3a8e10ab56b" xlink:to="loc_us-gaap_TypeOfAdoptionMember_9daf32b3-cb3f-41c8-965e-f0a4bf6cb28e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountingStandardsUpdate201613Member_bdb85904-d431-47e8-a1c1-d2c3945f7c4b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccountingStandardsUpdate201613Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfAdoptionMember_9daf32b3-cb3f-41c8-965e-f0a4bf6cb28e" xlink:to="loc_us-gaap_AccountingStandardsUpdate201613Member_bdb85904-d431-47e8-a1c1-d2c3945f7c4b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_8ab5c73d-4ec1-4756-aedd-1ae42334583d" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_e3d2df04-3973-42cb-a5c7-c52034b6d184" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_8ab5c73d-4ec1-4756-aedd-1ae42334583d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_8ab5c73d-4ec1-4756-aedd-1ae42334583d_default" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_8ab5c73d-4ec1-4756-aedd-1ae42334583d" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_8ab5c73d-4ec1-4756-aedd-1ae42334583d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_e71713af-91be-4b6e-83ca-4af3ef0dea7f" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_8ab5c73d-4ec1-4756-aedd-1ae42334583d" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_e71713af-91be-4b6e-83ca-4af3ef0dea7f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_b439f396-5fbb-44fa-a1ac-407a9ecc35c4" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_e71713af-91be-4b6e-83ca-4af3ef0dea7f" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_b439f396-5fbb-44fa-a1ac-407a9ecc35c4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustedBalanceMember_d7266d36-4e25-4cf0-be22-2608361390a9" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionAdjustedBalanceMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_e71713af-91be-4b6e-83ca-4af3ef0dea7f" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustedBalanceMember_d7266d36-4e25-4cf0-be22-2608361390a9" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/PremisesandEquipmentDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#PremisesandEquipmentDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/PremisesandEquipmentDetails" xlink:type="extended" id="ibe935c6ef2104fabb6137bbf3e977bf6_PremisesandEquipmentDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_8bdd341a-a26b-430d-a888-6f30f854538a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_1dcc8bb8-bb37-4b12-b0e7-caa17bbe8be9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_8bdd341a-a26b-430d-a888-6f30f854538a" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_1dcc8bb8-bb37-4b12-b0e7-caa17bbe8be9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_1653a919-cbf4-42d6-8faf-2199d31e28d2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_8bdd341a-a26b-430d-a888-6f30f854538a" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_1653a919-cbf4-42d6-8faf-2199d31e28d2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_e53b8552-0e33-4f56-aaad-3d428738e360" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_8bdd341a-a26b-430d-a888-6f30f854538a" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_e53b8552-0e33-4f56-aaad-3d428738e360" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Depreciation_c34efc12-c81a-4d6b-a5d1-31215e936458" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Depreciation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_8bdd341a-a26b-430d-a888-6f30f854538a" xlink:to="loc_us-gaap_Depreciation_c34efc12-c81a-4d6b-a5d1-31215e936458" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_819b2e01-40ec-4b2e-8897-040073c93273" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_8bdd341a-a26b-430d-a888-6f30f854538a" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_819b2e01-40ec-4b2e-8897-040073c93273" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_7f396e5c-8ba1-4071-b88c-43c1e36c8413" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_819b2e01-40ec-4b2e-8897-040073c93273" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_7f396e5c-8ba1-4071-b88c-43c1e36c8413" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_7f396e5c-8ba1-4071-b88c-43c1e36c8413_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_7f396e5c-8ba1-4071-b88c-43c1e36c8413" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_7f396e5c-8ba1-4071-b88c-43c1e36c8413_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_895ff4bb-1e4c-459b-bc49-181a07b0c17c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_7f396e5c-8ba1-4071-b88c-43c1e36c8413" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_895ff4bb-1e4c-459b-bc49-181a07b0c17c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LandMember_49fc24e3-56b6-4640-ab13-10e4f5060dd7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LandMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_895ff4bb-1e4c-459b-bc49-181a07b0c17c" xlink:to="loc_us-gaap_LandMember_49fc24e3-56b6-4640-ab13-10e4f5060dd7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BuildingAndBuildingImprovementsMember_a3d4f533-edfe-4a6f-96ab-48ae1e4c4e34" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BuildingAndBuildingImprovementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_895ff4bb-1e4c-459b-bc49-181a07b0c17c" xlink:to="loc_us-gaap_BuildingAndBuildingImprovementsMember_a3d4f533-edfe-4a6f-96ab-48ae1e4c4e34" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FurnitureAndFixturesMember_7eda3bab-6ce6-497b-9fcd-82d567adad63" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FurnitureAndFixturesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_895ff4bb-1e4c-459b-bc49-181a07b0c17c" xlink:to="loc_us-gaap_FurnitureAndFixturesMember_7eda3bab-6ce6-497b-9fcd-82d567adad63" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/GoodwillandOtherIntangibleAssetsTextualsDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#GoodwillandOtherIntangibleAssetsTextualsDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/GoodwillandOtherIntangibleAssetsTextualsDetails" xlink:type="extended" id="i5464a996b7e741a0bff6328558b166e9_GoodwillandOtherIntangibleAssetsTextualsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_dae119b0-fce5-4ece-8cd9-52254ff54580" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillImpairmentLoss_22b29efc-897c-43bc-ac02-375266e81343" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GoodwillImpairmentLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_dae119b0-fce5-4ece-8cd9-52254ff54580" xlink:to="loc_us-gaap_GoodwillImpairmentLoss_22b29efc-897c-43bc-ac02-375266e81343" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_463867fe-a745-417b-a6f9-a6b60271c272" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_dae119b0-fce5-4ece-8cd9-52254ff54580" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_463867fe-a745-417b-a6f9-a6b60271c272" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_7aed9c06-595f-490a-99ba-2eee082ccbdc" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_dae119b0-fce5-4ece-8cd9-52254ff54580" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_7aed9c06-595f-490a-99ba-2eee082ccbdc" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_660f6a66-0b42-49ad-b1a1-24213e2eb711" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_7aed9c06-595f-490a-99ba-2eee082ccbdc" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_660f6a66-0b42-49ad-b1a1-24213e2eb711" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_660f6a66-0b42-49ad-b1a1-24213e2eb711_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_660f6a66-0b42-49ad-b1a1-24213e2eb711" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_660f6a66-0b42-49ad-b1a1-24213e2eb711_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_bce2d617-b1f1-4e40-a866-d67bfe1c5418" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_660f6a66-0b42-49ad-b1a1-24213e2eb711" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_bce2d617-b1f1-4e40-a866-d67bfe1c5418" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_PremierCommercialBancorpMember_7d1c315d-83da-420b-8e33-277ebed0efa5" xlink:href="hfwa-20211231.xsd#hfwa_PremierCommercialBancorpMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_bce2d617-b1f1-4e40-a866-d67bfe1c5418" xlink:to="loc_hfwa_PremierCommercialBancorpMember_7d1c315d-83da-420b-8e33-277ebed0efa5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_WashingtonBankingMember_4d3ca4ae-d081-40d1-8c8b-309c816345b2" xlink:href="hfwa-20211231.xsd#hfwa_WashingtonBankingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_bce2d617-b1f1-4e40-a866-d67bfe1c5418" xlink:to="loc_hfwa_WashingtonBankingMember_4d3ca4ae-d081-40d1-8c8b-309c816345b2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_ValleyCommunityBancsharesMember_177db670-53fd-4d69-8db5-59273aa3c896" xlink:href="hfwa-20211231.xsd#hfwa_ValleyCommunityBancsharesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_bce2d617-b1f1-4e40-a866-d67bfe1c5418" xlink:to="loc_hfwa_ValleyCommunityBancsharesMember_177db670-53fd-4d69-8db5-59273aa3c896" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_PugetSoundMergerMember_deb21e73-832f-4349-a6c7-b76638577e3d" xlink:href="hfwa-20211231.xsd#hfwa_PugetSoundMergerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_bce2d617-b1f1-4e40-a866-d67bfe1c5418" xlink:to="loc_hfwa_PugetSoundMergerMember_deb21e73-832f-4349-a6c7-b76638577e3d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_e328d83d-7aa3-417f-a18b-9d6de0c098a5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_7aed9c06-595f-490a-99ba-2eee082ccbdc" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_e328d83d-7aa3-417f-a18b-9d6de0c098a5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_e328d83d-7aa3-417f-a18b-9d6de0c098a5_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_e328d83d-7aa3-417f-a18b-9d6de0c098a5" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_e328d83d-7aa3-417f-a18b-9d6de0c098a5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_432b594b-8633-4aa1-b2ba-3b81067461e8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_e328d83d-7aa3-417f-a18b-9d6de0c098a5" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_432b594b-8633-4aa1-b2ba-3b81067461e8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CoreDepositsMember_d7ed5eaa-fe57-4b38-81de-03c40eab091e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CoreDepositsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_432b594b-8633-4aa1-b2ba-3b81067461e8" xlink:to="loc_us-gaap_CoreDepositsMember_d7ed5eaa-fe57-4b38-81de-03c40eab091e" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/DerivativeFinancialInstrumentsDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#DerivativeFinancialInstrumentsDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/DerivativeFinancialInstrumentsDetails" xlink:type="extended" id="i712d2f812a524092896aca34fb5b5894_DerivativeFinancialInstrumentsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLineItems_6b0059ab-2487-4d52-b0af-0936edf44f1b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DerivativeLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetNotionalAmount_c3d6ab8f-3bf5-4df2-98ad-bf2ee6c6141e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DerivativeAssetNotionalAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_6b0059ab-2487-4d52-b0af-0936edf44f1b" xlink:to="loc_us-gaap_DerivativeAssetNotionalAmount_c3d6ab8f-3bf5-4df2-98ad-bf2ee6c6141e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityNotionalAmount_183a2002-72c5-440d-b858-2c06b08ce714" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DerivativeLiabilityNotionalAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_6b0059ab-2487-4d52-b0af-0936edf44f1b" xlink:to="loc_us-gaap_DerivativeLiabilityNotionalAmount_183a2002-72c5-440d-b858-2c06b08ce714" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_9d93c4db-c876-413d-8dd4-085e452b4086" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_6b0059ab-2487-4d52-b0af-0936edf44f1b" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_9d93c4db-c876-413d-8dd4-085e452b4086" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_d7f147af-76b9-4074-9a10-5d536cfeeb59" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_6b0059ab-2487-4d52-b0af-0936edf44f1b" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_d7f147af-76b9-4074-9a10-5d536cfeeb59" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCreditRiskValuationAdjustmentDerivativeAssets_aaf2210e-46c0-4fe4-80ff-c3120bfa01c5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DerivativeCreditRiskValuationAdjustmentDerivativeAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_6b0059ab-2487-4d52-b0af-0936edf44f1b" xlink:to="loc_us-gaap_DerivativeCreditRiskValuationAdjustmentDerivativeAssets_aaf2210e-46c0-4fe4-80ff-c3120bfa01c5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTable_aa34bacc-c4e4-4e8e-a46d-26e419294768" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DerivativeTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_6b0059ab-2487-4d52-b0af-0936edf44f1b" xlink:to="loc_us-gaap_DerivativeTable_aa34bacc-c4e4-4e8e-a46d-26e419294768" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_16672adb-b0ae-4633-b545-3a48a8221bf1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_aa34bacc-c4e4-4e8e-a46d-26e419294768" xlink:to="loc_us-gaap_FinancialInstrumentAxis_16672adb-b0ae-4633-b545-3a48a8221bf1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_16672adb-b0ae-4633-b545-3a48a8221bf1_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_16672adb-b0ae-4633-b545-3a48a8221bf1" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_16672adb-b0ae-4633-b545-3a48a8221bf1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_11cc2b5c-4e56-47cc-8f14-6e4bf9d5cca5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_16672adb-b0ae-4633-b545-3a48a8221bf1" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_11cc2b5c-4e56-47cc-8f14-6e4bf9d5cca5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateSwapMember_6ba597f0-31d0-47ff-a164-24a01574eec1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InterestRateSwapMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_11cc2b5c-4e56-47cc-8f14-6e4bf9d5cca5" xlink:to="loc_us-gaap_InterestRateSwapMember_6ba597f0-31d0-47ff-a164-24a01574eec1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationAxis_05b611a5-62f7-4c7a-8f8f-a75b6b6d111e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_HedgingDesignationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_aa34bacc-c4e4-4e8e-a46d-26e419294768" xlink:to="loc_us-gaap_HedgingDesignationAxis_05b611a5-62f7-4c7a-8f8f-a75b6b6d111e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_05b611a5-62f7-4c7a-8f8f-a75b6b6d111e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_05b611a5-62f7-4c7a-8f8f-a75b6b6d111e" xlink:to="loc_us-gaap_HedgingDesignationDomain_05b611a5-62f7-4c7a-8f8f-a75b6b6d111e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_35310982-6ebd-4854-89df-9e7bdd24717a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_05b611a5-62f7-4c7a-8f8f-a75b6b6d111e" xlink:to="loc_us-gaap_HedgingDesignationDomain_35310982-6ebd-4854-89df-9e7bdd24717a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NondesignatedMember_260bcafe-b7ba-4dae-96cf-86c21b05a814" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NondesignatedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_35310982-6ebd-4854-89df-9e7bdd24717a" xlink:to="loc_us-gaap_NondesignatedMember_260bcafe-b7ba-4dae-96cf-86c21b05a814" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_77d8e2ed-781a-4418-aec3-f0032669b4fe" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_aa34bacc-c4e4-4e8e-a46d-26e419294768" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_77d8e2ed-781a-4418-aec3-f0032669b4fe" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_77d8e2ed-781a-4418-aec3-f0032669b4fe_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_77d8e2ed-781a-4418-aec3-f0032669b4fe" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_77d8e2ed-781a-4418-aec3-f0032669b4fe_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_e52c6ee7-642a-48f0-8653-b1a79fbaa780" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_77d8e2ed-781a-4418-aec3-f0032669b4fe" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_e52c6ee7-642a-48f0-8653-b1a79fbaa780" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateSwapMember_742a17ab-5eb0-4d0e-9365-7ab7aa7442be" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InterestRateSwapMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_e52c6ee7-642a-48f0-8653-b1a79fbaa780" xlink:to="loc_us-gaap_InterestRateSwapMember_742a17ab-5eb0-4d0e-9365-7ab7aa7442be" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_58fc6cd7-fe58-44eb-9ebf-b0221e04eb1d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BalanceSheetLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_aa34bacc-c4e4-4e8e-a46d-26e419294768" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_58fc6cd7-fe58-44eb-9ebf-b0221e04eb1d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_58fc6cd7-fe58-44eb-9ebf-b0221e04eb1d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_58fc6cd7-fe58-44eb-9ebf-b0221e04eb1d" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_58fc6cd7-fe58-44eb-9ebf-b0221e04eb1d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_e58dc378-7d64-464b-bd81-6b4b7498c389" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_58fc6cd7-fe58-44eb-9ebf-b0221e04eb1d" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_e58dc378-7d64-464b-bd81-6b4b7498c389" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember_a7469a9c-0c66-4475-af5c-b41e15549fba" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_e58dc378-7d64-464b-bd81-6b4b7498c389" xlink:to="loc_us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember_a7469a9c-0c66-4475-af5c-b41e15549fba" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_AccruedExpensesandOtherLiabilitiesMember_b4cc8425-ed17-4626-96dd-8bfbdc218644" xlink:href="hfwa-20211231.xsd#hfwa_AccruedExpensesandOtherLiabilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_e58dc378-7d64-464b-bd81-6b4b7498c389" xlink:to="loc_hfwa_AccruedExpensesandOtherLiabilitiesMember_b4cc8425-ed17-4626-96dd-8bfbdc218644" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/JuniorSubordinatedDebenturesDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#JuniorSubordinatedDebenturesDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/JuniorSubordinatedDebenturesDetails" xlink:type="extended" id="i0bbaff92304d4a90a699e83b7d8b3e25_JuniorSubordinatedDebenturesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_cb153e30-ba32-4561-ad1f-6d9588137759" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedTrustPreferredSecuritiesandJuniorSubordinatedDebentures_8404ed04-574a-40b4-ad59-23bcbd7131d6" xlink:href="hfwa-20211231.xsd#hfwa_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedTrustPreferredSecuritiesandJuniorSubordinatedDebentures"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_cb153e30-ba32-4561-ad1f-6d9588137759" xlink:to="loc_hfwa_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedTrustPreferredSecuritiesandJuniorSubordinatedDebentures_8404ed04-574a-40b4-ad59-23bcbd7131d6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_JuniorSubordinatedNotes_051403bd-b40d-427c-95f8-76e9b1bf55c6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_JuniorSubordinatedNotes"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_cb153e30-ba32-4561-ad1f-6d9588137759" xlink:to="loc_us-gaap_JuniorSubordinatedNotes_051403bd-b40d-427c-95f8-76e9b1bf55c6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_0d2584df-63d4-4838-8616-6416f3d098f5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_cb153e30-ba32-4561-ad1f-6d9588137759" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_0d2584df-63d4-4838-8616-6416f3d098f5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_TermofJuniorSubordinatedDebentures_33793c42-90e9-4a9a-8625-c15a4794c05d" xlink:href="hfwa-20211231.xsd#hfwa_TermofJuniorSubordinatedDebentures"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_cb153e30-ba32-4561-ad1f-6d9588137759" xlink:to="loc_hfwa_TermofJuniorSubordinatedDebentures_33793c42-90e9-4a9a-8625-c15a4794c05d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_5226c6e5-86b5-467b-88eb-69f4539ac607" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_cb153e30-ba32-4561-ad1f-6d9588137759" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_5226c6e5-86b5-467b-88eb-69f4539ac607" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_Adjustablerateoftrustpreferredsecurities_6ea4c258-1ab6-4ca5-9954-bb880f93d48d" xlink:href="hfwa-20211231.xsd#hfwa_Adjustablerateoftrustpreferredsecurities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_cb153e30-ba32-4561-ad1f-6d9588137759" xlink:to="loc_hfwa_Adjustablerateoftrustpreferredsecurities_6ea4c258-1ab6-4ca5-9954-bb880f93d48d" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateDuringPeriod_d8d92a6d-774c-4a52-b95f-7099fcd05703" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtInstrumentInterestRateDuringPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_cb153e30-ba32-4561-ad1f-6d9588137759" xlink:to="loc_us-gaap_DebtInstrumentInterestRateDuringPeriod_d8d92a6d-774c-4a52-b95f-7099fcd05703" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_411fab88-71a0-4e2b-b9a9-aed4cac86230" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_cb153e30-ba32-4561-ad1f-6d9588137759" xlink:to="loc_us-gaap_DebtInstrumentTable_411fab88-71a0-4e2b-b9a9-aed4cac86230" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_eef71499-a400-49b6-b602-00dc22e90186" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_411fab88-71a0-4e2b-b9a9-aed4cac86230" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_eef71499-a400-49b6-b602-00dc22e90186" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_eef71499-a400-49b6-b602-00dc22e90186_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_eef71499-a400-49b6-b602-00dc22e90186" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_eef71499-a400-49b6-b602-00dc22e90186_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_7328b9c4-645f-4ab4-a80f-f0a905e1b1ab" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_eef71499-a400-49b6-b602-00dc22e90186" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_7328b9c4-645f-4ab4-a80f-f0a905e1b1ab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_WashingtonBankingMember_9210c8ce-2966-4979-899c-d6d919769dc7" xlink:href="hfwa-20211231.xsd#hfwa_WashingtonBankingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_7328b9c4-645f-4ab4-a80f-f0a905e1b1ab" xlink:to="loc_hfwa_WashingtonBankingMember_9210c8ce-2966-4979-899c-d6d919769dc7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateAxis_8b75cace-8e81-46d6-83b0-1fdb24f09240" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_VariableRateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_411fab88-71a0-4e2b-b9a9-aed4cac86230" xlink:to="loc_us-gaap_VariableRateAxis_8b75cace-8e81-46d6-83b0-1fdb24f09240" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_8b75cace-8e81-46d6-83b0-1fdb24f09240_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_8b75cace-8e81-46d6-83b0-1fdb24f09240" xlink:to="loc_us-gaap_VariableRateDomain_8b75cace-8e81-46d6-83b0-1fdb24f09240_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_00a1f138-59b5-44e4-89c6-f5bbd5b882b0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_8b75cace-8e81-46d6-83b0-1fdb24f09240" xlink:to="loc_us-gaap_VariableRateDomain_00a1f138-59b5-44e4-89c6-f5bbd5b882b0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LondonInterbankOfferedRateLIBORMember_68a46353-d09f-4270-95ca-893e4bf7dda8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LondonInterbankOfferedRateLIBORMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_00a1f138-59b5-44e4-89c6-f5bbd5b882b0" xlink:to="loc_us-gaap_LondonInterbankOfferedRateLIBORMember_68a46353-d09f-4270-95ca-893e4bf7dda8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_fbd86191-4812-47ac-a352-f83dc7206065" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_411fab88-71a0-4e2b-b9a9-aed4cac86230" xlink:to="loc_us-gaap_DebtInstrumentAxis_fbd86191-4812-47ac-a352-f83dc7206065" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_fbd86191-4812-47ac-a352-f83dc7206065_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_fbd86191-4812-47ac-a352-f83dc7206065" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_fbd86191-4812-47ac-a352-f83dc7206065_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_c2183669-800f-45dc-a7df-e113b315124f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_fbd86191-4812-47ac-a352-f83dc7206065" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_c2183669-800f-45dc-a7df-e113b315124f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_JuniorSubordinatedDebtMember_108cb751-0ca9-4af7-b570-907f8db4c2b6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_JuniorSubordinatedDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c2183669-800f-45dc-a7df-e113b315124f" xlink:to="loc_us-gaap_JuniorSubordinatedDebtMember_108cb751-0ca9-4af7-b570-907f8db4c2b6" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/RepurchaseAgreementsDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#RepurchaseAgreementsDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/RepurchaseAgreementsDetails" xlink:type="extended" id="ie7274d790b6046ce92b9155a718a95c1_RepurchaseAgreementsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsSoldUnderAgreementsToRepurchaseLineItems_2038b0aa-932f-4655-a746-fb2870bd3d6c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetsSoldUnderAgreementsToRepurchaseLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_RepurchaseAgreementsMaturityPeriod_7cfef682-6db4-4949-9244-8c5e6d84fb79" xlink:href="hfwa-20211231.xsd#hfwa_RepurchaseAgreementsMaturityPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsSoldUnderAgreementsToRepurchaseLineItems_2038b0aa-932f-4655-a746-fb2870bd3d6c" xlink:to="loc_hfwa_RepurchaseAgreementsMaturityPeriod_7cfef682-6db4-4949-9244-8c5e6d84fb79" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuritiesSoldUnderAgreementsToRepurchase_66296f27-35b6-4090-a89f-7b0331e843ce" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SecuritiesSoldUnderAgreementsToRepurchase"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsSoldUnderAgreementsToRepurchaseLineItems_2038b0aa-932f-4655-a746-fb2870bd3d6c" xlink:to="loc_us-gaap_SecuritiesSoldUnderAgreementsToRepurchase_66296f27-35b6-4090-a89f-7b0331e843ce" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAssetsSoldUnderAgreementsToRepurchaseTable_579df673-c468-4a23-b88c-131c141c76b3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfAssetsSoldUnderAgreementsToRepurchaseTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AssetsSoldUnderAgreementsToRepurchaseLineItems_2038b0aa-932f-4655-a746-fb2870bd3d6c" xlink:to="loc_us-gaap_ScheduleOfAssetsSoldUnderAgreementsToRepurchaseTable_579df673-c468-4a23-b88c-131c141c76b3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_898ff0be-81e8-45ad-b15b-b02d49c973e7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAssetsSoldUnderAgreementsToRepurchaseTable_579df673-c468-4a23-b88c-131c141c76b3" xlink:to="loc_us-gaap_FinancialInstrumentAxis_898ff0be-81e8-45ad-b15b-b02d49c973e7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_898ff0be-81e8-45ad-b15b-b02d49c973e7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_898ff0be-81e8-45ad-b15b-b02d49c973e7" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_898ff0be-81e8-45ad-b15b-b02d49c973e7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_153e43f4-a0cf-4638-a3a0-9c7be7585190" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_898ff0be-81e8-45ad-b15b-b02d49c973e7" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_153e43f4-a0cf-4638-a3a0-9c7be7585190" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USTreasuryAndGovernmentMember_d26b6fec-b6ec-45c5-8a82-f5000af3281d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_USTreasuryAndGovernmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_153e43f4-a0cf-4638-a3a0-9c7be7585190" xlink:to="loc_us-gaap_USTreasuryAndGovernmentMember_d26b6fec-b6ec-45c5-8a82-f5000af3281d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResidentialMortgageBackedSecuritiesMember_3847c296-34da-49e2-8003-34ebbf09c907" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ResidentialMortgageBackedSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_153e43f4-a0cf-4638-a3a0-9c7be7585190" xlink:to="loc_us-gaap_ResidentialMortgageBackedSecuritiesMember_3847c296-34da-49e2-8003-34ebbf09c907" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialMortgageBackedSecuritiesMember_bd06b5b8-0e3e-4471-8eb0-46b0b62dcb10" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommercialMortgageBackedSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_153e43f4-a0cf-4638-a3a0-9c7be7585190" xlink:to="loc_us-gaap_CommercialMortgageBackedSecuritiesMember_bd06b5b8-0e3e-4471-8eb0-46b0b62dcb10" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/OtherBorrowingsDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#OtherBorrowingsDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/OtherBorrowingsDetails" xlink:type="extended" id="i8b0a3e59665943b3b6d5525abae1078a_OtherBorrowingsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_1ea980fa-258f-40e7-bade-5848662e4f46" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LineOfCreditFacilityLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesGeneralDebtObligationsDisclosuresMaximumAmountAvailable_d964a49a-7c91-4992-ab53-12be88426020" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FederalHomeLoanBankAdvancesGeneralDebtObligationsDisclosuresMaximumAmountAvailable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_1ea980fa-258f-40e7-bade-5848662e4f46" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesGeneralDebtObligationsDisclosuresMaximumAmountAvailable_d964a49a-7c91-4992-ab53-12be88426020" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesBranchOfFHLBBankAmountOfAdvancesByBranch_2fb435f8-c9cb-4c08-9a25-0615dede9bc6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FederalHomeLoanBankAdvancesBranchOfFHLBBankAmountOfAdvancesByBranch"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_1ea980fa-258f-40e7-bade-5848662e4f46" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesBranchOfFHLBBankAmountOfAdvancesByBranch_2fb435f8-c9cb-4c08-9a25-0615dede9bc6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_Unencumberedcollateralinamountequaltovaryingpercentages_abfb986a-db5c-4d4e-a8af-002a4cf2da02" xlink:href="hfwa-20211231.xsd#hfwa_Unencumberedcollateralinamountequaltovaryingpercentages"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_1ea980fa-258f-40e7-bade-5848662e4f46" xlink:to="loc_hfwa_Unencumberedcollateralinamountequaltovaryingpercentages_abfb986a-db5c-4d4e-a8af-002a4cf2da02" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_451b19fd-d320-4a30-9fd1-70704b475d43" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_1ea980fa-258f-40e7-bade-5848662e4f46" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_451b19fd-d320-4a30-9fd1-70704b475d43" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalFundsPurchased_8660e6b9-8f96-4a65-8b2f-1a659d1fd80f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FederalFundsPurchased"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_1ea980fa-258f-40e7-bade-5848662e4f46" xlink:to="loc_us-gaap_FederalFundsPurchased_8660e6b9-8f96-4a65-8b2f-1a659d1fd80f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityFairValueOfAmountOutstanding_36bd5223-b15e-41ff-80cb-41316f96f361" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LineOfCreditFacilityFairValueOfAmountOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_1ea980fa-258f-40e7-bade-5848662e4f46" xlink:to="loc_us-gaap_LineOfCreditFacilityFairValueOfAmountOutstanding_36bd5223-b15e-41ff-80cb-41316f96f361" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DueToRelatedPartiesCurrentAndNoncurrent_7aeea9c3-4bd8-480a-82d2-98a99e78c5a1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DueToRelatedPartiesCurrentAndNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_1ea980fa-258f-40e7-bade-5848662e4f46" xlink:to="loc_us-gaap_DueToRelatedPartiesCurrentAndNoncurrent_7aeea9c3-4bd8-480a-82d2-98a99e78c5a1" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_b034ece2-1f32-42aa-aed2-aa79bfa88b03" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LineOfCreditFacilityTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_1ea980fa-258f-40e7-bade-5848662e4f46" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_b034ece2-1f32-42aa-aed2-aa79bfa88b03" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_eb80d544-e9cf-4692-901a-4158a04851fc" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_b034ece2-1f32-42aa-aed2-aa79bfa88b03" xlink:to="loc_srt_RangeAxis_eb80d544-e9cf-4692-901a-4158a04851fc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_eb80d544-e9cf-4692-901a-4158a04851fc_default" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_eb80d544-e9cf-4692-901a-4158a04851fc" xlink:to="loc_srt_RangeMember_eb80d544-e9cf-4692-901a-4158a04851fc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_167355ca-7884-45b5-9bf3-75b86dffffdd" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_eb80d544-e9cf-4692-901a-4158a04851fc" xlink:to="loc_srt_RangeMember_167355ca-7884-45b5-9bf3-75b86dffffdd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_4943ef06-7b96-4cb2-8df2-3e8eb6a6cd7b" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_167355ca-7884-45b5-9bf3-75b86dffffdd" xlink:to="loc_srt_MinimumMember_4943ef06-7b96-4cb2-8df2-3e8eb6a6cd7b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_ed237fa1-73fa-48b2-942d-77be7e5f9acb" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_167355ca-7884-45b5-9bf3-75b86dffffdd" xlink:to="loc_srt_MaximumMember_ed237fa1-73fa-48b2-942d-77be7e5f9acb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_db02cf8a-89c1-481a-9ed9-ca98923aab51" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_b034ece2-1f32-42aa-aed2-aa79bfa88b03" xlink:to="loc_us-gaap_CreditFacilityAxis_db02cf8a-89c1-481a-9ed9-ca98923aab51" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_db02cf8a-89c1-481a-9ed9-ca98923aab51_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_db02cf8a-89c1-481a-9ed9-ca98923aab51" xlink:to="loc_us-gaap_CreditFacilityDomain_db02cf8a-89c1-481a-9ed9-ca98923aab51_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_dae79740-9e4f-4e7d-821b-5e9aa19780d6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_db02cf8a-89c1-481a-9ed9-ca98923aab51" xlink:to="loc_us-gaap_CreditFacilityDomain_dae79740-9e4f-4e7d-821b-5e9aa19780d6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalReserveBankAdvancesMember_c2373443-cfa9-4cdf-874d-cd6f5489e52d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FederalReserveBankAdvancesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_dae79740-9e4f-4e7d-821b-5e9aa19780d6" xlink:to="loc_us-gaap_FederalReserveBankAdvancesMember_c2373443-cfa9-4cdf-874d-cd6f5489e52d" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/LeasesDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#LeasesDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/LeasesDetails" xlink:type="extended" id="i62c31d47707c4e798d2d7229bb77ccfb_LeasesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeLeaseDescriptionLineItems_ac34c566-a890-46d5-8333-30c5264b7570" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeLeaseDescriptionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_c023aa41-c9a8-4655-8cb4-40d731567496" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_ac34c566-a890-46d5-8333-30c5264b7570" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_c023aa41-c9a8-4655-8cb4-40d731567496" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_400e5cee-175a-40e3-a9c5-991602af07f4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_ac34c566-a890-46d5-8333-30c5264b7570" xlink:to="loc_us-gaap_OperatingLeaseLiability_400e5cee-175a-40e3-a9c5-991602af07f4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfBuildings_b878816f-6bac-4357-80bc-cfd1e74a2591" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromSaleOfBuildings"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_ac34c566-a890-46d5-8333-30c5264b7570" xlink:to="loc_us-gaap_ProceedsFromSaleOfBuildings_b878816f-6bac-4357-80bc-cfd1e74a2591" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleAndLeasebackTransactionGainLossNet_f9dfdac7-f56b-460d-9c86-c0229bf55754" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SaleAndLeasebackTransactionGainLossNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_ac34c566-a890-46d5-8333-30c5264b7570" xlink:to="loc_us-gaap_SaleAndLeasebackTransactionGainLossNet_f9dfdac7-f56b-460d-9c86-c0229bf55754" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_SaleAndLeasebackTransactionNumberOfLeases_74bcf6ac-6d93-402d-8efb-6a102c15a994" xlink:href="hfwa-20211231.xsd#hfwa_SaleAndLeasebackTransactionNumberOfLeases"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_ac34c566-a890-46d5-8333-30c5264b7570" xlink:to="loc_hfwa_SaleAndLeasebackTransactionNumberOfLeases_74bcf6ac-6d93-402d-8efb-6a102c15a994" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_SaleAndLeasebackTransactionAnnualRent_e43d04cc-1dc7-41fc-8f3e-4a7efd895976" xlink:href="hfwa-20211231.xsd#hfwa_SaleAndLeasebackTransactionAnnualRent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_ac34c566-a890-46d5-8333-30c5264b7570" xlink:to="loc_hfwa_SaleAndLeasebackTransactionAnnualRent_e43d04cc-1dc7-41fc-8f3e-4a7efd895976" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_SaleAndLeasebackTransactionAnnualEscalationsPercent_efb7e667-df42-44f4-907f-fa9c1428aad6" xlink:href="hfwa-20211231.xsd#hfwa_SaleAndLeasebackTransactionAnnualEscalationsPercent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_ac34c566-a890-46d5-8333-30c5264b7570" xlink:to="loc_hfwa_SaleAndLeasebackTransactionAnnualEscalationsPercent_efb7e667-df42-44f4-907f-fa9c1428aad6" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_SaleAndLeasebackTransactionLeaseTermsPeriod_41ee5434-ace3-47fb-bf65-a0362eb4f6c1" xlink:href="hfwa-20211231.xsd#hfwa_SaleAndLeasebackTransactionLeaseTermsPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_ac34c566-a890-46d5-8333-30c5264b7570" xlink:to="loc_hfwa_SaleAndLeasebackTransactionLeaseTermsPeriod_41ee5434-ace3-47fb-bf65-a0362eb4f6c1" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_SaleAndLeasebackTransactionNumberOfExtensionOptions_faa9472f-5072-4852-8236-6d9d35d1a291" xlink:href="hfwa-20211231.xsd#hfwa_SaleAndLeasebackTransactionNumberOfExtensionOptions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_ac34c566-a890-46d5-8333-30c5264b7570" xlink:to="loc_hfwa_SaleAndLeasebackTransactionNumberOfExtensionOptions_faa9472f-5072-4852-8236-6d9d35d1a291" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_SaleAndLeasebackTransactionExtensionPeriod_bb3f55d6-5e12-4c4b-95ec-f16a31b5d1af" xlink:href="hfwa-20211231.xsd#hfwa_SaleAndLeasebackTransactionExtensionPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_ac34c566-a890-46d5-8333-30c5264b7570" xlink:to="loc_hfwa_SaleAndLeasebackTransactionExtensionPeriod_bb3f55d6-5e12-4c4b-95ec-f16a31b5d1af" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeLeaseDescriptionTable_77bd5762-e5d3-4d50-b404-10d56d444b8f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeLeaseDescriptionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_ac34c566-a890-46d5-8333-30c5264b7570" xlink:to="loc_us-gaap_LesseeLeaseDescriptionTable_77bd5762-e5d3-4d50-b404-10d56d444b8f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseContractualTermAxis_1c65f761-4542-406b-9235-457e80efc65d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LeaseContractualTermAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LesseeLeaseDescriptionTable_77bd5762-e5d3-4d50-b404-10d56d444b8f" xlink:to="loc_us-gaap_LeaseContractualTermAxis_1c65f761-4542-406b-9235-457e80efc65d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseContractualTermDomain_1c65f761-4542-406b-9235-457e80efc65d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LeaseContractualTermDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LeaseContractualTermAxis_1c65f761-4542-406b-9235-457e80efc65d" xlink:to="loc_us-gaap_LeaseContractualTermDomain_1c65f761-4542-406b-9235-457e80efc65d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseContractualTermDomain_21648715-cf89-4e91-a78d-e6bf85dabcb8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LeaseContractualTermDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LeaseContractualTermAxis_1c65f761-4542-406b-9235-457e80efc65d" xlink:to="loc_us-gaap_LeaseContractualTermDomain_21648715-cf89-4e91-a78d-e6bf85dabcb8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_OlympiaFirstFloorMember_31f55861-f4c4-4b69-b314-6d7fc30c133c" xlink:href="hfwa-20211231.xsd#hfwa_OlympiaFirstFloorMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LeaseContractualTermDomain_21648715-cf89-4e91-a78d-e6bf85dabcb8" xlink:to="loc_hfwa_OlympiaFirstFloorMember_31f55861-f4c4-4b69-b314-6d7fc30c133c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_OlympiaSecondFloorMember_9f9ed275-856d-4b8c-ae39-e8869f7fa650" xlink:href="hfwa-20211231.xsd#hfwa_OlympiaSecondFloorMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LeaseContractualTermDomain_21648715-cf89-4e91-a78d-e6bf85dabcb8" xlink:to="loc_hfwa_OlympiaSecondFloorMember_9f9ed275-856d-4b8c-ae39-e8869f7fa650" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/EmployeeBenefitPlansNarrativeDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#EmployeeBenefitPlansNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/EmployeeBenefitPlansNarrativeDetails" xlink:type="extended" id="i556fbf738ac8447ab86916be5fca637e_EmployeeBenefitPlansNarrativeDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredCompensationArrangementWithIndividualPostretirementBenefitsLineItems_10130af5-f0c8-42a2-8feb-68128e569dd5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredCompensationArrangementWithIndividualPostretirementBenefitsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedContributionPlanEmployerMatchingContributionPercent_8d530fea-7bce-4ad1-ac89-d3888083aec1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DefinedContributionPlanEmployerMatchingContributionPercent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualPostretirementBenefitsLineItems_10130af5-f0c8-42a2-8feb-68128e569dd5" xlink:to="loc_us-gaap_DefinedContributionPlanEmployerMatchingContributionPercent_8d530fea-7bce-4ad1-ac89-d3888083aec1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedContributionPlanMaximumAnnualContributionsPerEmployeePercent_3cc33d75-dfc2-440d-b538-86e6cc643997" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DefinedContributionPlanMaximumAnnualContributionsPerEmployeePercent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualPostretirementBenefitsLineItems_10130af5-f0c8-42a2-8feb-68128e569dd5" xlink:to="loc_us-gaap_DefinedContributionPlanMaximumAnnualContributionsPerEmployeePercent_3cc33d75-dfc2-440d-b538-86e6cc643997" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_PercentageofEmployerContributionFullyVested_e823f0f5-59d8-4333-a2c6-c7f98f8e24cd" xlink:href="hfwa-20211231.xsd#hfwa_PercentageofEmployerContributionFullyVested"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualPostretirementBenefitsLineItems_10130af5-f0c8-42a2-8feb-68128e569dd5" xlink:to="loc_hfwa_PercentageofEmployerContributionFullyVested_e823f0f5-59d8-4333-a2c6-c7f98f8e24cd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_Definedcontributionplanemployermatchingcontributionamount_4c90dd3c-35f0-4ca7-ac66-10da8d71e507" xlink:href="hfwa-20211231.xsd#hfwa_Definedcontributionplanemployermatchingcontributionamount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualPostretirementBenefitsLineItems_10130af5-f0c8-42a2-8feb-68128e569dd5" xlink:to="loc_hfwa_Definedcontributionplanemployermatchingcontributionamount_4c90dd3c-35f0-4ca7-ac66-10da8d71e507" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_MinimumHoursofServiceRequiredforEligibilityUnderPlan_2ef93465-336f-4828-9c96-51fc9d962954" xlink:href="hfwa-20211231.xsd#hfwa_MinimumHoursofServiceRequiredforEligibilityUnderPlan"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualPostretirementBenefitsLineItems_10130af5-f0c8-42a2-8feb-68128e569dd5" xlink:to="loc_hfwa_MinimumHoursofServiceRequiredforEligibilityUnderPlan_2ef93465-336f-4828-9c96-51fc9d962954" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_MinimumAgeRequiredforEligibilityUnderPlan_c1b6e1bf-32f6-4154-991f-0a6367ee6f9d" xlink:href="hfwa-20211231.xsd#hfwa_MinimumAgeRequiredforEligibilityUnderPlan"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualPostretirementBenefitsLineItems_10130af5-f0c8-42a2-8feb-68128e569dd5" xlink:to="loc_hfwa_MinimumAgeRequiredforEligibilityUnderPlan_c1b6e1bf-32f6-4154-991f-0a6367ee6f9d" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_DefinedContributionPlanEmployerContributionforProfitSharingandDiscretionary_19b7b807-c83b-4c76-a153-878c3f61dab9" xlink:href="hfwa-20211231.xsd#hfwa_DefinedContributionPlanEmployerContributionforProfitSharingandDiscretionary"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualPostretirementBenefitsLineItems_10130af5-f0c8-42a2-8feb-68128e569dd5" xlink:to="loc_hfwa_DefinedContributionPlanEmployerContributionforProfitSharingandDiscretionary_19b7b807-c83b-4c76-a153-878c3f61dab9" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualPostretirementBenefitsTable_ee332964-31fc-4fb4-86ca-cef33d71c971" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualPostretirementBenefitsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualPostretirementBenefitsLineItems_10130af5-f0c8-42a2-8feb-68128e569dd5" xlink:to="loc_us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualPostretirementBenefitsTable_ee332964-31fc-4fb4-86ca-cef33d71c971" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameAxis_001e7b90-bb8b-40a4-a1a6-6ea9ff294b00" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PlanNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualPostretirementBenefitsTable_ee332964-31fc-4fb4-86ca-cef33d71c971" xlink:to="loc_us-gaap_PlanNameAxis_001e7b90-bb8b-40a4-a1a6-6ea9ff294b00" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_001e7b90-bb8b-40a4-a1a6-6ea9ff294b00_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_001e7b90-bb8b-40a4-a1a6-6ea9ff294b00" xlink:to="loc_us-gaap_PlanNameDomain_001e7b90-bb8b-40a4-a1a6-6ea9ff294b00_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_5ba5dc54-89b3-4191-98a0-b0e485629cfb" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_001e7b90-bb8b-40a4-a1a6-6ea9ff294b00" xlink:to="loc_us-gaap_PlanNameDomain_5ba5dc54-89b3-4191-98a0-b0e485629cfb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_HeritageFinancialCorporation401kPlanandTrustSalarySavingPlanMember_e8926287-5077-4cd5-b095-fb402b15a43b" xlink:href="hfwa-20211231.xsd#hfwa_HeritageFinancialCorporation401kPlanandTrustSalarySavingPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_5ba5dc54-89b3-4191-98a0-b0e485629cfb" xlink:to="loc_hfwa_HeritageFinancialCorporation401kPlanandTrustSalarySavingPlanMember_e8926287-5077-4cd5-b095-fb402b15a43b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_HeritageFinancialCorporation401kPlanandTrustMember_f735a564-40b7-4298-9d73-28d5e7cc6125" xlink:href="hfwa-20211231.xsd#hfwa_HeritageFinancialCorporation401kPlanandTrustMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_5ba5dc54-89b3-4191-98a0-b0e485629cfb" xlink:to="loc_hfwa_HeritageFinancialCorporation401kPlanandTrustMember_f735a564-40b7-4298-9d73-28d5e7cc6125" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/StockholdersEquityDividendsDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#StockholdersEquityDividendsDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/StockholdersEquityDividendsDetails" xlink:type="extended" id="i4ef11d06e76c4edb87ae64ebeae596dc_StockholdersEquityDividendsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventLineItems_a1f6757b-d266-4372-a55b-dcf6708f9159" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SubsequentEventLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsPayableDateDeclaredDayMonthAndYear_ebe6ee4f-4a73-4815-88f4-0c22accc513f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DividendsPayableDateDeclaredDayMonthAndYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_a1f6757b-d266-4372-a55b-dcf6708f9159" xlink:to="loc_us-gaap_DividendsPayableDateDeclaredDayMonthAndYear_ebe6ee4f-4a73-4815-88f4-0c22accc513f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockDividendsPerShareDeclared_982d46c8-a272-4938-a37b-29c4e30edbef" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonStockDividendsPerShareDeclared"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_a1f6757b-d266-4372-a55b-dcf6708f9159" xlink:to="loc_us-gaap_CommonStockDividendsPerShareDeclared_982d46c8-a272-4938-a37b-29c4e30edbef" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsPayableDateOfRecordDayMonthAndYear_d8af52a2-fe48-4011-87bd-3d6b7c0d9a86" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DividendsPayableDateOfRecordDayMonthAndYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_a1f6757b-d266-4372-a55b-dcf6708f9159" xlink:to="loc_us-gaap_DividendsPayableDateOfRecordDayMonthAndYear_d8af52a2-fe48-4011-87bd-3d6b7c0d9a86" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendPayableDateToBePaidDayMonthAndYear_261e8ab8-7b3c-446a-a5f0-12baf3c5126d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DividendPayableDateToBePaidDayMonthAndYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_a1f6757b-d266-4372-a55b-dcf6708f9159" xlink:to="loc_us-gaap_DividendPayableDateToBePaidDayMonthAndYear_261e8ab8-7b3c-446a-a5f0-12baf3c5126d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTable_771ee2ac-9b38-4f72-b4e8-919825a59b96" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SubsequentEventTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SubsequentEventLineItems_a1f6757b-d266-4372-a55b-dcf6708f9159" xlink:to="loc_us-gaap_SubsequentEventTable_771ee2ac-9b38-4f72-b4e8-919825a59b96" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsAxis_62657308-4be0-4b35-9701-79414f3cfab4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DividendsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_771ee2ac-9b38-4f72-b4e8-919825a59b96" xlink:to="loc_us-gaap_DividendsAxis_62657308-4be0-4b35-9701-79414f3cfab4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsDomain_62657308-4be0-4b35-9701-79414f3cfab4_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DividendsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DividendsAxis_62657308-4be0-4b35-9701-79414f3cfab4" xlink:to="loc_us-gaap_DividendsDomain_62657308-4be0-4b35-9701-79414f3cfab4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsDomain_6204f2dc-56bf-42f8-9db7-b1b12357a81c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DividendsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DividendsAxis_62657308-4be0-4b35-9701-79414f3cfab4" xlink:to="loc_us-gaap_DividendsDomain_6204f2dc-56bf-42f8-9db7-b1b12357a81c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_SpecialDividendMember_e18221f0-76f8-4546-8b06-5e6512df4b0c" xlink:href="hfwa-20211231.xsd#hfwa_SpecialDividendMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DividendsDomain_6204f2dc-56bf-42f8-9db7-b1b12357a81c" xlink:to="loc_hfwa_SpecialDividendMember_e18221f0-76f8-4546-8b06-5e6512df4b0c" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/StockholdersEquityStockRepurchaseProgramDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#StockholdersEquityStockRepurchaseProgramDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/StockholdersEquityStockRepurchaseProgramDetails" xlink:type="extended" id="i877825f710f5463db748398f003e724b_StockholdersEquityStockRepurchaseProgramDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockLineItems_5b3d0b99-b603-42ce-b597-4c2888b39b1d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ClassOfStockLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_StockRepurchaseProgramPercentageOfOutstandingSharesAuthorizedForRepurchase_18e4651b-e20a-466c-af22-8266a33d2684" xlink:href="hfwa-20211231.xsd#hfwa_StockRepurchaseProgramPercentageOfOutstandingSharesAuthorizedForRepurchase"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_5b3d0b99-b603-42ce-b597-4c2888b39b1d" xlink:to="loc_hfwa_StockRepurchaseProgramPercentageOfOutstandingSharesAuthorizedForRepurchase_18e4651b-e20a-466c-af22-8266a33d2684" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_62dab4de-6341-44a5-ae4c-c571c590c032" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_5b3d0b99-b603-42ce-b597-4c2888b39b1d" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_62dab4de-6341-44a5-ae4c-c571c590c032" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedDuringPeriodShares_363387d1-b65e-4e00-95bb-d46be5cc0578" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockRepurchasedDuringPeriodShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_5b3d0b99-b603-42ce-b597-4c2888b39b1d" xlink:to="loc_us-gaap_StockRepurchasedDuringPeriodShares_363387d1-b65e-4e00-95bb-d46be5cc0578" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_NetTotalStockRepurchasedDuringPeriodsPresentedShares_e15c011f-b3f0-458b-b3a2-a37e85289ff7" xlink:href="hfwa-20211231.xsd#hfwa_NetTotalStockRepurchasedDuringPeriodsPresentedShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_5b3d0b99-b603-42ce-b597-4c2888b39b1d" xlink:to="loc_hfwa_NetTotalStockRepurchasedDuringPeriodsPresentedShares_e15c011f-b3f0-458b-b3a2-a37e85289ff7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_NetStockRepurchasedDuringPeriodsPresentedValuePerShare_b91ec7cc-2fb7-4505-960b-ef0bd8945dc7" xlink:href="hfwa-20211231.xsd#hfwa_NetStockRepurchasedDuringPeriodsPresentedValuePerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_5b3d0b99-b603-42ce-b597-4c2888b39b1d" xlink:to="loc_hfwa_NetStockRepurchasedDuringPeriodsPresentedValuePerShare_b91ec7cc-2fb7-4505-960b-ef0bd8945dc7" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockAcquiredAverageCostPerShare_b744265c-fe59-4f5a-9e3e-6b120157a641" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TreasuryStockAcquiredAverageCostPerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_5b3d0b99-b603-42ce-b597-4c2888b39b1d" xlink:to="loc_us-gaap_TreasuryStockAcquiredAverageCostPerShare_b744265c-fe59-4f5a-9e3e-6b120157a641" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfStockByClassTable_80a396d9-e910-4b7b-a13c-f4c05c9cd6d8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfStockByClassTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ClassOfStockLineItems_5b3d0b99-b603-42ce-b597-4c2888b39b1d" xlink:to="loc_us-gaap_ScheduleOfStockByClassTable_80a396d9-e910-4b7b-a13c-f4c05c9cd6d8" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareRepurchaseProgramAxis_aa056a35-1f40-43b9-9975-8534a1dcb3b2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareRepurchaseProgramAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_80a396d9-e910-4b7b-a13c-f4c05c9cd6d8" xlink:to="loc_us-gaap_ShareRepurchaseProgramAxis_aa056a35-1f40-43b9-9975-8534a1dcb3b2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareRepurchaseProgramDomain_aa056a35-1f40-43b9-9975-8534a1dcb3b2_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareRepurchaseProgramDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ShareRepurchaseProgramAxis_aa056a35-1f40-43b9-9975-8534a1dcb3b2" xlink:to="loc_us-gaap_ShareRepurchaseProgramDomain_aa056a35-1f40-43b9-9975-8534a1dcb3b2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareRepurchaseProgramDomain_d8eadcb3-5004-47a6-9621-47a7db07eb3f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareRepurchaseProgramDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ShareRepurchaseProgramAxis_aa056a35-1f40-43b9-9975-8534a1dcb3b2" xlink:to="loc_us-gaap_ShareRepurchaseProgramDomain_d8eadcb3-5004-47a6-9621-47a7db07eb3f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_EleventhStockRepurchasePlanMemberMember_14467687-74e6-4006-be69-06d6427a981f" xlink:href="hfwa-20211231.xsd#hfwa_EleventhStockRepurchasePlanMemberMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareRepurchaseProgramDomain_d8eadcb3-5004-47a6-9621-47a7db07eb3f" xlink:to="loc_hfwa_EleventhStockRepurchasePlanMemberMember_14467687-74e6-4006-be69-06d6427a981f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_TwelfthStockRepurchasePlanMember_1035abb0-4e63-4ab6-a9ec-a76aaa76d261" xlink:href="hfwa-20211231.xsd#hfwa_TwelfthStockRepurchasePlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareRepurchaseProgramDomain_d8eadcb3-5004-47a6-9621-47a7db07eb3f" xlink:to="loc_hfwa_TwelfthStockRepurchasePlanMember_1035abb0-4e63-4ab6-a9ec-a76aaa76d261" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_797e8ca6-67ec-4f2d-9584-43eff0304c8f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_80a396d9-e910-4b7b-a13c-f4c05c9cd6d8" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_797e8ca6-67ec-4f2d-9584-43eff0304c8f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_797e8ca6-67ec-4f2d-9584-43eff0304c8f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_797e8ca6-67ec-4f2d-9584-43eff0304c8f" xlink:to="loc_us-gaap_EquityComponentDomain_797e8ca6-67ec-4f2d-9584-43eff0304c8f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_ed9eea60-ee96-47e2-a1b3-648e0ea98b7c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_797e8ca6-67ec-4f2d-9584-43eff0304c8f" xlink:to="loc_us-gaap_EquityComponentDomain_ed9eea60-ee96-47e2-a1b3-648e0ea98b7c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_SharesRelatedtoWithholdingTaxesontheVestingofRestrictedStockMember_3862288a-3e03-4323-83f1-5a27dd54636f" xlink:href="hfwa-20211231.xsd#hfwa_SharesRelatedtoWithholdingTaxesontheVestingofRestrictedStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_ed9eea60-ee96-47e2-a1b3-648e0ea98b7c" xlink:to="loc_hfwa_SharesRelatedtoWithholdingTaxesontheVestingofRestrictedStockMember_3862288a-3e03-4323-83f1-5a27dd54636f" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/FairValueMeasurementsFairValueMeasurementonRecurringBasisDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#FairValueMeasurementsFairValueMeasurementonRecurringBasisDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/FairValueMeasurementsFairValueMeasurementonRecurringBasisDetails" xlink:type="extended" id="i751c9be3e4bb4d759a76924d0e6677ad_FairValueMeasurementsFairValueMeasurementonRecurringBasisDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_1103325f-effe-425f-9a0f-a0cfe38c1d30" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosureAbstract_0d99c588-61ae-4e9e-bccd-5813047fd06c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetsFairValueDisclosureAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_1103325f-effe-425f-9a0f-a0cfe38c1d30" xlink:to="loc_us-gaap_AssetsFairValueDisclosureAbstract_0d99c588-61ae-4e9e-bccd-5813047fd06c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_04fe13fd-a611-41be-8545-42b8c4c0cb80" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsFairValueDisclosureAbstract_0d99c588-61ae-4e9e-bccd-5813047fd06c" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_04fe13fd-a611-41be-8545-42b8c4c0cb80" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNi_ab98d641-1e5b-4b82-b33e-a832b61d1ea2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquitySecuritiesFvNi"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsFairValueDisclosureAbstract_0d99c588-61ae-4e9e-bccd-5813047fd06c" xlink:to="loc_us-gaap_EquitySecuritiesFvNi_ab98d641-1e5b-4b82-b33e-a832b61d1ea2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_8a9aa85c-c1a5-4043-b57e-0cfdd5103761" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsFairValueDisclosureAbstract_0d99c588-61ae-4e9e-bccd-5813047fd06c" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_8a9aa85c-c1a5-4043-b57e-0cfdd5103761" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosureAbstract_a648e3fa-fb15-4e79-8251-78ab455692f0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesFairValueDisclosureAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_1103325f-effe-425f-9a0f-a0cfe38c1d30" xlink:to="loc_us-gaap_LiabilitiesFairValueDisclosureAbstract_a648e3fa-fb15-4e79-8251-78ab455692f0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_ec4a53d5-13fa-4f70-834b-d42a64a839cf" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosureAbstract_a648e3fa-fb15-4e79-8251-78ab455692f0" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_ec4a53d5-13fa-4f70-834b-d42a64a839cf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByBalanceSheetGroupingTable_3dd602a4-7fbd-4cb8-aba0-d90010697fb6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueByBalanceSheetGroupingTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_1103325f-effe-425f-9a0f-a0cfe38c1d30" xlink:to="loc_us-gaap_FairValueByBalanceSheetGroupingTable_3dd602a4-7fbd-4cb8-aba0-d90010697fb6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_e5b81986-ea3d-4b24-b7df-5ab461d40db5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueByMeasurementFrequencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_3dd602a4-7fbd-4cb8-aba0-d90010697fb6" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_e5b81986-ea3d-4b24-b7df-5ab461d40db5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_e5b81986-ea3d-4b24-b7df-5ab461d40db5_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_e5b81986-ea3d-4b24-b7df-5ab461d40db5" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_e5b81986-ea3d-4b24-b7df-5ab461d40db5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_56082e90-6f6d-4e28-a76f-3491717979f5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_e5b81986-ea3d-4b24-b7df-5ab461d40db5" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_56082e90-6f6d-4e28-a76f-3491717979f5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_d96ce4e8-4b8f-463f-b7b0-d7eebbd93cb8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueMeasurementsRecurringMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_56082e90-6f6d-4e28-a76f-3491717979f5" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_d96ce4e8-4b8f-463f-b7b0-d7eebbd93cb8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_6024f23e-e2ae-4def-86d9-3b3437f9cef8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_3dd602a4-7fbd-4cb8-aba0-d90010697fb6" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_6024f23e-e2ae-4def-86d9-3b3437f9cef8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_6024f23e-e2ae-4def-86d9-3b3437f9cef8_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_6024f23e-e2ae-4def-86d9-3b3437f9cef8" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_6024f23e-e2ae-4def-86d9-3b3437f9cef8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_242e56ae-82f9-4bba-86e4-1fcdfa68056f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_6024f23e-e2ae-4def-86d9-3b3437f9cef8" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_242e56ae-82f9-4bba-86e4-1fcdfa68056f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_7bc379b4-cdde-4a30-b50e-f44904f69996" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_242e56ae-82f9-4bba-86e4-1fcdfa68056f" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_7bc379b4-cdde-4a30-b50e-f44904f69996" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_5756422a-8c5f-4a40-9dac-b30bbdf8e8b2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_242e56ae-82f9-4bba-86e4-1fcdfa68056f" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_5756422a-8c5f-4a40-9dac-b30bbdf8e8b2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_6239ca8d-4cab-4eca-bdb7-87be512e319a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_242e56ae-82f9-4bba-86e4-1fcdfa68056f" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_6239ca8d-4cab-4eca-bdb7-87be512e319a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_34b91648-0024-4404-868c-0d757296bdfc" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_3dd602a4-7fbd-4cb8-aba0-d90010697fb6" xlink:to="loc_us-gaap_FinancialInstrumentAxis_34b91648-0024-4404-868c-0d757296bdfc" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_34b91648-0024-4404-868c-0d757296bdfc_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_34b91648-0024-4404-868c-0d757296bdfc" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_34b91648-0024-4404-868c-0d757296bdfc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_36c382a9-ff86-4385-9f36-d1cc67cffdce" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_34b91648-0024-4404-868c-0d757296bdfc" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_36c382a9-ff86-4385-9f36-d1cc67cffdce" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USTreasuryAndGovernmentMember_1c5e34a1-2412-4ab2-a91d-3d7ed0ce352f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_USTreasuryAndGovernmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_36c382a9-ff86-4385-9f36-d1cc67cffdce" xlink:to="loc_us-gaap_USTreasuryAndGovernmentMember_1c5e34a1-2412-4ab2-a91d-3d7ed0ce352f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MunicipalBondsMember_4558093b-b0e9-419c-b13f-122f996758c9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_MunicipalBondsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_36c382a9-ff86-4385-9f36-d1cc67cffdce" xlink:to="loc_us-gaap_MunicipalBondsMember_4558093b-b0e9-419c-b13f-122f996758c9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResidentialMortgageBackedSecuritiesMember_da01fd21-572a-4e6f-9ab8-afd45c66b7fa" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ResidentialMortgageBackedSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_36c382a9-ff86-4385-9f36-d1cc67cffdce" xlink:to="loc_us-gaap_ResidentialMortgageBackedSecuritiesMember_da01fd21-572a-4e6f-9ab8-afd45c66b7fa" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialMortgageBackedSecuritiesMember_c5bfecec-9ae3-416f-8914-3746b86dadf5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommercialMortgageBackedSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_36c382a9-ff86-4385-9f36-d1cc67cffdce" xlink:to="loc_us-gaap_CommercialMortgageBackedSecuritiesMember_c5bfecec-9ae3-416f-8914-3746b86dadf5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_10de3fa0-30d6-40d4-8766-874f8e1fb09e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CorporateDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_36c382a9-ff86-4385-9f36-d1cc67cffdce" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_10de3fa0-30d6-40d4-8766-874f8e1fb09e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAggregatedInvestmentsMember_e135a8d5-5dea-444b-b6ca-6fb607b053f3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherAggregatedInvestmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_36c382a9-ff86-4385-9f36-d1cc67cffdce" xlink:to="loc_us-gaap_OtherAggregatedInvestmentsMember_e135a8d5-5dea-444b-b6ca-6fb607b053f3" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateSwapMember_bcb3a358-af23-4cc3-8903-61d521a2ca67" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InterestRateSwapMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_36c382a9-ff86-4385-9f36-d1cc67cffdce" xlink:to="loc_us-gaap_InterestRateSwapMember_bcb3a358-af23-4cc3-8903-61d521a2ca67" xlink:type="arc" order="6"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/FairValueMeasurementsFairValueMeasurementonNonrecurringBasisDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#FairValueMeasurementsFairValueMeasurementonNonrecurringBasisDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/FairValueMeasurementsFairValueMeasurementonNonrecurringBasisDetails" xlink:type="extended" id="i0ccdae35ab284a4091335b37291def82_FairValueMeasurementsFairValueMeasurementonNonrecurringBasisDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_a9ed41c2-0a3f-4011-b7cb-e5b3b4dbb07b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_02aa795f-171f-41ab-98a6-2aa1b5b60658" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_a9ed41c2-0a3f-4011-b7cb-e5b3b4dbb07b" xlink:to="loc_us-gaap_AssetsFairValueDisclosure_02aa795f-171f-41ab-98a6-2aa1b5b60658" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_FairValueAssetsMeasuredonNonrecurringBasisNetGainsLossesIncludedinEarnings_aaee8494-c4bf-4e24-9a76-0057a51a6a42" xlink:href="hfwa-20211231.xsd#hfwa_FairValueAssetsMeasuredonNonrecurringBasisNetGainsLossesIncludedinEarnings"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_a9ed41c2-0a3f-4011-b7cb-e5b3b4dbb07b" xlink:to="loc_hfwa_FairValueAssetsMeasuredonNonrecurringBasisNetGainsLossesIncludedinEarnings_aaee8494-c4bf-4e24-9a76-0057a51a6a42" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueOptionChangesInFairValueGainLoss1_4c3f5065-2233-4395-a987-08197c449a6f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueOptionChangesInFairValueGainLoss1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_a9ed41c2-0a3f-4011-b7cb-e5b3b4dbb07b" xlink:to="loc_us-gaap_FairValueOptionChangesInFairValueGainLoss1_4c3f5065-2233-4395-a987-08197c449a6f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_4be2f787-f9b9-419b-ad8c-3e9b4667483c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_a9ed41c2-0a3f-4011-b7cb-e5b3b4dbb07b" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_4be2f787-f9b9-419b-ad8c-3e9b4667483c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_10389afd-3d84-4fb4-ab63-6bc47252ca8f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueByMeasurementFrequencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_4be2f787-f9b9-419b-ad8c-3e9b4667483c" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_10389afd-3d84-4fb4-ab63-6bc47252ca8f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_10389afd-3d84-4fb4-ab63-6bc47252ca8f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_10389afd-3d84-4fb4-ab63-6bc47252ca8f" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_10389afd-3d84-4fb4-ab63-6bc47252ca8f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_d4531bbd-62af-4471-aad1-0eb24c4b9bce" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_10389afd-3d84-4fb4-ab63-6bc47252ca8f" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_d4531bbd-62af-4471-aad1-0eb24c4b9bce" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsNonrecurringMember_e4ab8d22-7f0b-49c6-9688-708d63b777c3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueMeasurementsNonrecurringMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_d4531bbd-62af-4471-aad1-0eb24c4b9bce" xlink:to="loc_us-gaap_FairValueMeasurementsNonrecurringMember_e4ab8d22-7f0b-49c6-9688-708d63b777c3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_4a34b57c-4956-4d48-80f1-2d3aed9af2ce" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancialInstrumentPerformanceStatusAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_4be2f787-f9b9-419b-ad8c-3e9b4667483c" xlink:to="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_4a34b57c-4956-4d48-80f1-2d3aed9af2ce" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_4a34b57c-4956-4d48-80f1-2d3aed9af2ce_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancialInstrumentPerformanceStatusDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_4a34b57c-4956-4d48-80f1-2d3aed9af2ce" xlink:to="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_4a34b57c-4956-4d48-80f1-2d3aed9af2ce_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_6a17ab7a-c57a-4d18-9bb9-a3f6d4ba2ce6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancialInstrumentPerformanceStatusDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_4a34b57c-4956-4d48-80f1-2d3aed9af2ce" xlink:to="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_6a17ab7a-c57a-4d18-9bb9-a3f6d4ba2ce6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_ImpairedLoansMember_80dbff08-d340-4b46-8053-d9b689b7a992" xlink:href="hfwa-20211231.xsd#hfwa_ImpairedLoansMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_6a17ab7a-c57a-4d18-9bb9-a3f6d4ba2ce6" xlink:to="loc_hfwa_ImpairedLoansMember_80dbff08-d340-4b46-8053-d9b689b7a992" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_BranchHeldForSaleMember_dcd8b618-7648-4046-b1ac-2ae8a0d68ba0" xlink:href="hfwa-20211231.xsd#hfwa_BranchHeldForSaleMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_6a17ab7a-c57a-4d18-9bb9-a3f6d4ba2ce6" xlink:to="loc_hfwa_BranchHeldForSaleMember_dcd8b618-7648-4046-b1ac-2ae8a0d68ba0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_8e80639e-211f-42cb-81d0-7337534dc99b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_4be2f787-f9b9-419b-ad8c-3e9b4667483c" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_8e80639e-211f-42cb-81d0-7337534dc99b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_8e80639e-211f-42cb-81d0-7337534dc99b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_8e80639e-211f-42cb-81d0-7337534dc99b" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_8e80639e-211f-42cb-81d0-7337534dc99b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_fcd1c488-7348-4bed-83e5-a21929877cf6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_8e80639e-211f-42cb-81d0-7337534dc99b" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_fcd1c488-7348-4bed-83e5-a21929877cf6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_de9968c6-f38e-4210-b261-8bd33f6d5e0e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommercialPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_fcd1c488-7348-4bed-83e5-a21929877cf6" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_de9968c6-f38e-4210-b261-8bd33f6d5e0e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_BranchHeldForSaleMember_4a171ae2-4d8f-4ceb-ac24-47138767aa95" xlink:href="hfwa-20211231.xsd#hfwa_BranchHeldForSaleMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_fcd1c488-7348-4bed-83e5-a21929877cf6" xlink:to="loc_hfwa_BranchHeldForSaleMember_4a171ae2-4d8f-4ceb-ac24-47138767aa95" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_RealEstateConstructionAndLandDevelopmentMember_1fb111b9-b1fc-45e2-9435-f3492dde8ec2" xlink:href="hfwa-20211231.xsd#hfwa_RealEstateConstructionAndLandDevelopmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_fcd1c488-7348-4bed-83e5-a21929877cf6" xlink:to="loc_hfwa_RealEstateConstructionAndLandDevelopmentMember_1fb111b9-b1fc-45e2-9435-f3492dde8ec2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_5c6da2e6-8c11-43b5-9f97-59e9020598dd" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_4be2f787-f9b9-419b-ad8c-3e9b4667483c" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_5c6da2e6-8c11-43b5-9f97-59e9020598dd" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_5c6da2e6-8c11-43b5-9f97-59e9020598dd_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_5c6da2e6-8c11-43b5-9f97-59e9020598dd" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_5c6da2e6-8c11-43b5-9f97-59e9020598dd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_d46162c8-b485-4002-8a77-5502bf8c2f60" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_5c6da2e6-8c11-43b5-9f97-59e9020598dd" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_d46162c8-b485-4002-8a77-5502bf8c2f60" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_CommercialAndIndustrialMember_4b57d00d-f0e3-4fd8-8c79-03f3dad27c75" xlink:href="hfwa-20211231.xsd#hfwa_CommercialAndIndustrialMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_d46162c8-b485-4002-8a77-5502bf8c2f60" xlink:to="loc_hfwa_CommercialAndIndustrialMember_4b57d00d-f0e3-4fd8-8c79-03f3dad27c75" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_OwnerOccupiedCommercialRealEstateMember_0bffad54-f924-4a50-92de-fc278618d1b3" xlink:href="hfwa-20211231.xsd#hfwa_OwnerOccupiedCommercialRealEstateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_d46162c8-b485-4002-8a77-5502bf8c2f60" xlink:to="loc_hfwa_OwnerOccupiedCommercialRealEstateMember_0bffad54-f924-4a50-92de-fc278618d1b3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_FiveOrMoreFamilyResidentialAndCommercialPropertiesMember_7bdc1a82-caa8-4060-9828-68c4c023471f" xlink:href="hfwa-20211231.xsd#hfwa_FiveOrMoreFamilyResidentialAndCommercialPropertiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_d46162c8-b485-4002-8a77-5502bf8c2f60" xlink:to="loc_hfwa_FiveOrMoreFamilyResidentialAndCommercialPropertiesMember_7bdc1a82-caa8-4060-9828-68c4c023471f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_fa7d89ad-25d1-4554-8c66-ea2047ce0f48" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_4be2f787-f9b9-419b-ad8c-3e9b4667483c" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_fa7d89ad-25d1-4554-8c66-ea2047ce0f48" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_fa7d89ad-25d1-4554-8c66-ea2047ce0f48_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_fa7d89ad-25d1-4554-8c66-ea2047ce0f48" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_fa7d89ad-25d1-4554-8c66-ea2047ce0f48_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_ebdd0d85-6844-40fd-9c3b-37fe8fe39969" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_fa7d89ad-25d1-4554-8c66-ea2047ce0f48" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_ebdd0d85-6844-40fd-9c3b-37fe8fe39969" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_2c0428b6-fd1e-4915-9c5c-2e0ec88b4276" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_ebdd0d85-6844-40fd-9c3b-37fe8fe39969" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_2c0428b6-fd1e-4915-9c5c-2e0ec88b4276" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_70c4c80d-6e02-4579-a8a1-48f7c6beabbb" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_ebdd0d85-6844-40fd-9c3b-37fe8fe39969" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_70c4c80d-6e02-4579-a8a1-48f7c6beabbb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_66935a3d-dc76-4c8b-b2cc-2e9a6b410247" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_ebdd0d85-6844-40fd-9c3b-37fe8fe39969" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_66935a3d-dc76-4c8b-b2cc-2e9a6b410247" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel12And3Member_1a79cbe7-893a-448b-9139-c2b1b1bdd59f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueInputsLevel12And3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_ebdd0d85-6844-40fd-9c3b-37fe8fe39969" xlink:to="loc_us-gaap_FairValueInputsLevel12And3Member_1a79cbe7-893a-448b-9139-c2b1b1bdd59f" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/FairValueMeasurementsQuantitativeInformationLevel3Details" xlink:type="simple" xlink:href="hfwa-20211231.xsd#FairValueMeasurementsQuantitativeInformationLevel3Details"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/FairValueMeasurementsQuantitativeInformationLevel3Details" xlink:type="extended" id="ie45a8eb86fd84e0ca5d89c491aa3239e_FairValueMeasurementsQuantitativeInformationLevel3Details">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_50bc1af0-395a-4119-9011-3c0b561066a3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansReceivableFairValueDisclosure_5466f5dc-0b43-4d82-82aa-9dfe6681a756" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LoansReceivableFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_50bc1af0-395a-4119-9011-3c0b561066a3" xlink:to="loc_us-gaap_LoansReceivableFairValueDisclosure_5466f5dc-0b43-4d82-82aa-9dfe6681a756" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_ImpairedLoansMeasurementInput_17080530-b0cc-47fb-afc6-931289e2cc32" xlink:href="hfwa-20211231.xsd#hfwa_ImpairedLoansMeasurementInput"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_50bc1af0-395a-4119-9011-3c0b561066a3" xlink:to="loc_hfwa_ImpairedLoansMeasurementInput_17080530-b0cc-47fb-afc6-931289e2cc32" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_d11db3be-0bfe-421e-8b69-d5a91c8a1e39" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_50bc1af0-395a-4119-9011-3c0b561066a3" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_d11db3be-0bfe-421e-8b69-d5a91c8a1e39" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_e6b3b60f-bfde-435d-bcdd-57bc2482e64f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancialInstrumentPerformanceStatusAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_d11db3be-0bfe-421e-8b69-d5a91c8a1e39" xlink:to="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_e6b3b60f-bfde-435d-bcdd-57bc2482e64f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_e6b3b60f-bfde-435d-bcdd-57bc2482e64f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancialInstrumentPerformanceStatusDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_e6b3b60f-bfde-435d-bcdd-57bc2482e64f" xlink:to="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_e6b3b60f-bfde-435d-bcdd-57bc2482e64f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_24ff156b-ee99-4772-b7d9-8fab0946597c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancialInstrumentPerformanceStatusDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_e6b3b60f-bfde-435d-bcdd-57bc2482e64f" xlink:to="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_24ff156b-ee99-4772-b7d9-8fab0946597c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_ImpairedLoansMember_d176e430-c09c-4255-9f4f-adb9e17ef562" xlink:href="hfwa-20211231.xsd#hfwa_ImpairedLoansMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_24ff156b-ee99-4772-b7d9-8fab0946597c" xlink:to="loc_hfwa_ImpairedLoansMember_d176e430-c09c-4255-9f4f-adb9e17ef562" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_BranchHeldForSaleMember_bd4d805d-bc04-4058-a3cb-777ca849b76d" xlink:href="hfwa-20211231.xsd#hfwa_BranchHeldForSaleMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_24ff156b-ee99-4772-b7d9-8fab0946597c" xlink:to="loc_hfwa_BranchHeldForSaleMember_bd4d805d-bc04-4058-a3cb-777ca849b76d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_5c7f71a9-ff8b-4abc-b39b-92e1c7aa2722" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_d11db3be-0bfe-421e-8b69-d5a91c8a1e39" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_5c7f71a9-ff8b-4abc-b39b-92e1c7aa2722" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5c7f71a9-ff8b-4abc-b39b-92e1c7aa2722_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_5c7f71a9-ff8b-4abc-b39b-92e1c7aa2722" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5c7f71a9-ff8b-4abc-b39b-92e1c7aa2722_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_6aaa7cc1-30f8-414a-b139-a9c5b37878cb" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_5c7f71a9-ff8b-4abc-b39b-92e1c7aa2722" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_6aaa7cc1-30f8-414a-b139-a9c5b37878cb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_05753a7b-93de-4794-a9b4-8e9be254795b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_6aaa7cc1-30f8-414a-b139-a9c5b37878cb" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_05753a7b-93de-4794-a9b4-8e9be254795b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_8aa1143a-3e25-4ef7-8450-1466981e9fe3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueByMeasurementFrequencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_d11db3be-0bfe-421e-8b69-d5a91c8a1e39" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_8aa1143a-3e25-4ef7-8450-1466981e9fe3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_8aa1143a-3e25-4ef7-8450-1466981e9fe3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_8aa1143a-3e25-4ef7-8450-1466981e9fe3" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_8aa1143a-3e25-4ef7-8450-1466981e9fe3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_8caaa4cb-9a2a-4f8c-ae31-6e1b1c86e862" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_8aa1143a-3e25-4ef7-8450-1466981e9fe3" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_8caaa4cb-9a2a-4f8c-ae31-6e1b1c86e862" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsNonrecurringMember_63b5c119-860b-404c-8ad8-250e18fcae88" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueMeasurementsNonrecurringMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_8caaa4cb-9a2a-4f8c-ae31-6e1b1c86e862" xlink:to="loc_us-gaap_FairValueMeasurementsNonrecurringMember_63b5c119-860b-404c-8ad8-250e18fcae88" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeAxis_05a7238e-33e5-4561-8b21-2119b98be3c4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_MeasurementInputTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_d11db3be-0bfe-421e-8b69-d5a91c8a1e39" xlink:to="loc_us-gaap_MeasurementInputTypeAxis_05a7238e-33e5-4561-8b21-2119b98be3c4" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_05a7238e-33e5-4561-8b21-2119b98be3c4_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_MeasurementInputTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_05a7238e-33e5-4561-8b21-2119b98be3c4" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_05a7238e-33e5-4561-8b21-2119b98be3c4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_dc3e12f5-384b-4f66-af2e-52b9d4749097" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_MeasurementInputTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_05a7238e-33e5-4561-8b21-2119b98be3c4" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_dc3e12f5-384b-4f66-af2e-52b9d4749097" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputComparabilityAdjustmentMember_7cf1df08-e850-42fa-8853-170db9ae2a61" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_MeasurementInputComparabilityAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_dc3e12f5-384b-4f66-af2e-52b9d4749097" xlink:to="loc_us-gaap_MeasurementInputComparabilityAdjustmentMember_7cf1df08-e850-42fa-8853-170db9ae2a61" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_ac52a464-f982-4957-a831-94500222ae28" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_d11db3be-0bfe-421e-8b69-d5a91c8a1e39" xlink:to="loc_srt_RangeAxis_ac52a464-f982-4957-a831-94500222ae28" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_ac52a464-f982-4957-a831-94500222ae28_default" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_ac52a464-f982-4957-a831-94500222ae28" xlink:to="loc_srt_RangeMember_ac52a464-f982-4957-a831-94500222ae28_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_b9359818-4811-4ae9-9c29-28fef79bbc97" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_ac52a464-f982-4957-a831-94500222ae28" xlink:to="loc_srt_RangeMember_b9359818-4811-4ae9-9c29-28fef79bbc97" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_d498493a-4972-477b-92b1-20fc3cf4ceb8" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_b9359818-4811-4ae9-9c29-28fef79bbc97" xlink:to="loc_srt_MinimumMember_d498493a-4972-477b-92b1-20fc3cf4ceb8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_4950713c-46ee-4798-99be-b6538dc99324" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_b9359818-4811-4ae9-9c29-28fef79bbc97" xlink:to="loc_srt_MaximumMember_4950713c-46ee-4798-99be-b6538dc99324" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_WeightedAverageMember_436f98f3-9488-4c95-a62a-a79947b2c9c6" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_WeightedAverageMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_b9359818-4811-4ae9-9c29-28fef79bbc97" xlink:to="loc_srt_WeightedAverageMember_436f98f3-9488-4c95-a62a-a79947b2c9c6" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/FairValueMeasurementsCarryingValueandFairValueofFinancialInstrumentsDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#FairValueMeasurementsCarryingValueandFairValueofFinancialInstrumentsDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/FairValueMeasurementsCarryingValueandFairValueofFinancialInstrumentsDetails" xlink:type="extended" id="i41c63e9a62e34bff8a41509ea42312bc_FairValueMeasurementsCarryingValueandFairValueofFinancialInstrumentsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_53bcb9cc-a6a3-492e-bdcd-174b5fa3cb41" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_FinancialInstrumentsFinancialAssetsAndLiabilitiesBalanceSheetGroupingsAbstract_63f575c7-7c74-4594-af39-1d24b11d2e10" xlink:href="hfwa-20211231.xsd#hfwa_FinancialInstrumentsFinancialAssetsAndLiabilitiesBalanceSheetGroupingsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_53bcb9cc-a6a3-492e-bdcd-174b5fa3cb41" xlink:to="loc_hfwa_FinancialInstrumentsFinancialAssetsAndLiabilitiesBalanceSheetGroupingsAbstract_63f575c7-7c74-4594-af39-1d24b11d2e10" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsAbstract_54c447da-004a-4d1a-b8c2-8701fed1473e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_hfwa_FinancialInstrumentsFinancialAssetsAndLiabilitiesBalanceSheetGroupingsAbstract_63f575c7-7c74-4594-af39-1d24b11d2e10" xlink:to="loc_us-gaap_AssetsAbstract_54c447da-004a-4d1a-b8c2-8701fed1473e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_773a700d-6f6d-4cac-b0af-6b6c7f2650de" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_54c447da-004a-4d1a-b8c2-8701fed1473e" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_773a700d-6f6d-4cac-b0af-6b6c7f2650de" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentsFairValueDisclosure_b11da911-333d-4067-979b-f98bc4bf82df" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InvestmentsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_54c447da-004a-4d1a-b8c2-8701fed1473e" xlink:to="loc_us-gaap_InvestmentsFairValueDisclosure_b11da911-333d-4067-979b-f98bc4bf82df" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesFairValue_625f5851-204a-4caa-a5e5-321107da300c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_HeldToMaturitySecuritiesFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_54c447da-004a-4d1a-b8c2-8701fed1473e" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesFairValue_625f5851-204a-4caa-a5e5-321107da300c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansHeldForSaleFairValueDisclosure_f61fb710-0305-4a8e-bf24-61791f2ef5b9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LoansHeldForSaleFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_54c447da-004a-4d1a-b8c2-8701fed1473e" xlink:to="loc_us-gaap_LoansHeldForSaleFairValueDisclosure_f61fb710-0305-4a8e-bf24-61791f2ef5b9" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansReceivableFairValueDisclosure_7d8a8762-35fa-4a24-96dd-9b459a8acb08" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LoansReceivableFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_54c447da-004a-4d1a-b8c2-8701fed1473e" xlink:to="loc_us-gaap_LoansReceivableFairValueDisclosure_7d8a8762-35fa-4a24-96dd-9b459a8acb08" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableFairValueDisclosure_1ed3734a-767f-4f8d-bf53-cde55534afcd" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccountsReceivableFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_54c447da-004a-4d1a-b8c2-8701fed1473e" xlink:to="loc_us-gaap_AccountsReceivableFairValueDisclosure_1ed3734a-767f-4f8d-bf53-cde55534afcd" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateDerivativeAssetsAtFairValue_b8481b24-bfd7-4e37-9ded-86e7ce97b820" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InterestRateDerivativeAssetsAtFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_54c447da-004a-4d1a-b8c2-8701fed1473e" xlink:to="loc_us-gaap_InterestRateDerivativeAssetsAtFairValue_b8481b24-bfd7-4e37-9ded-86e7ce97b820" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNi_fd67efab-143d-48fe-b9f2-981d0203ea9b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquitySecuritiesFvNi"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_54c447da-004a-4d1a-b8c2-8701fed1473e" xlink:to="loc_us-gaap_EquitySecuritiesFvNi_fd67efab-143d-48fe-b9f2-981d0203ea9b" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_48580b4f-385d-416f-a4b8-0f14d15683a4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquityAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_hfwa_FinancialInstrumentsFinancialAssetsAndLiabilitiesBalanceSheetGroupingsAbstract_63f575c7-7c74-4594-af39-1d24b11d2e10" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_48580b4f-385d-416f-a4b8-0f14d15683a4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepositsFairValueDisclosure_6fc3a25f-a432-440e-b850-b1b8a9117fa1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DepositsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_48580b4f-385d-416f-a4b8-0f14d15683a4" xlink:to="loc_us-gaap_DepositsFairValueDisclosure_6fc3a25f-a432-440e-b850-b1b8a9117fa1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestBearingDomesticDepositCertificatesOfDeposits_0deb0c92-9283-4b4e-85ce-4eeb581be345" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InterestBearingDomesticDepositCertificatesOfDeposits"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_48580b4f-385d-416f-a4b8-0f14d15683a4" xlink:to="loc_us-gaap_InterestBearingDomesticDepositCertificatesOfDeposits_0deb0c92-9283-4b4e-85ce-4eeb581be345" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuritiesLoanedOrSoldUnderAgreementsToRepurchaseFairValueDisclosure_1e44b9c3-0dc1-42cf-bbc4-1a05c8f4ece6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SecuritiesLoanedOrSoldUnderAgreementsToRepurchaseFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_48580b4f-385d-416f-a4b8-0f14d15683a4" xlink:to="loc_us-gaap_SecuritiesLoanedOrSoldUnderAgreementsToRepurchaseFairValueDisclosure_1e44b9c3-0dc1-42cf-bbc4-1a05c8f4ece6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisSubordinatedDebtObligations_f53aa74d-171d-4669-b33e-21ec365dac17" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisSubordinatedDebtObligations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_48580b4f-385d-416f-a4b8-0f14d15683a4" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisSubordinatedDebtObligations_f53aa74d-171d-4669-b33e-21ec365dac17" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesFairValueDisclosure_612438a5-13ed-4682-a095-a8f36ca8b116" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccruedLiabilitiesFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_48580b4f-385d-416f-a4b8-0f14d15683a4" xlink:to="loc_us-gaap_AccruedLiabilitiesFairValueDisclosure_612438a5-13ed-4682-a095-a8f36ca8b116" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateDerivativeLiabilitiesAtFairValue_63e15c97-28c2-45f6-86e2-dcc6744f910a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InterestRateDerivativeLiabilitiesAtFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_48580b4f-385d-416f-a4b8-0f14d15683a4" xlink:to="loc_us-gaap_InterestRateDerivativeLiabilitiesAtFairValue_63e15c97-28c2-45f6-86e2-dcc6744f910a" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByBalanceSheetGroupingTable_a44d8fe6-b39b-4877-b10a-8932ab1370c8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueByBalanceSheetGroupingTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_53bcb9cc-a6a3-492e-bdcd-174b5fa3cb41" xlink:to="loc_us-gaap_FairValueByBalanceSheetGroupingTable_a44d8fe6-b39b-4877-b10a-8932ab1370c8" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementBasisAxis_2d99038c-8e17-43bf-a2fd-c6357fcf52c4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueByMeasurementBasisAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_a44d8fe6-b39b-4877-b10a-8932ab1370c8" xlink:to="loc_us-gaap_FairValueByMeasurementBasisAxis_2d99038c-8e17-43bf-a2fd-c6357fcf52c4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_2d99038c-8e17-43bf-a2fd-c6357fcf52c4_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_2d99038c-8e17-43bf-a2fd-c6357fcf52c4" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_2d99038c-8e17-43bf-a2fd-c6357fcf52c4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueDisclosureItemAmountsDomain_7b6013a1-a51a-40b5-b0fc-bb4715c0b7c2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueDisclosureItemAmountsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_2d99038c-8e17-43bf-a2fd-c6357fcf52c4" xlink:to="loc_us-gaap_FairValueDisclosureItemAmountsDomain_7b6013a1-a51a-40b5-b0fc-bb4715c0b7c2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_ee6dbf1b-cd71-453e-a233-5136e3f0e4a3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_7b6013a1-a51a-40b5-b0fc-bb4715c0b7c2" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_ee6dbf1b-cd71-453e-a233-5136e3f0e4a3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_e2acd800-e6ab-418b-ae45-a9434c254f6f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CarryingReportedAmountFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_7b6013a1-a51a-40b5-b0fc-bb4715c0b7c2" xlink:to="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_e2acd800-e6ab-418b-ae45-a9434c254f6f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_dfc178cd-b06a-40a4-a943-d8030116dee6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EstimateOfFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_7b6013a1-a51a-40b5-b0fc-bb4715c0b7c2" xlink:to="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_dfc178cd-b06a-40a4-a943-d8030116dee6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_25e7cb11-cbd9-4c89-88c9-443f6c45ba4e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_a44d8fe6-b39b-4877-b10a-8932ab1370c8" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_25e7cb11-cbd9-4c89-88c9-443f6c45ba4e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_25e7cb11-cbd9-4c89-88c9-443f6c45ba4e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_25e7cb11-cbd9-4c89-88c9-443f6c45ba4e" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_25e7cb11-cbd9-4c89-88c9-443f6c45ba4e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_078143bf-a24f-4863-b6db-13162f5fc15f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_25e7cb11-cbd9-4c89-88c9-443f6c45ba4e" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_078143bf-a24f-4863-b6db-13162f5fc15f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_579cbe87-4860-4930-a19c-cd6c9818465b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_078143bf-a24f-4863-b6db-13162f5fc15f" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_579cbe87-4860-4930-a19c-cd6c9818465b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_9f8e3b99-803d-46cb-8c5f-5d6c4d8b33b6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_078143bf-a24f-4863-b6db-13162f5fc15f" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_9f8e3b99-803d-46cb-8c5f-5d6c4d8b33b6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_130270ea-4ca5-4592-810f-f075ffaee3bb" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_078143bf-a24f-4863-b6db-13162f5fc15f" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_130270ea-4ca5-4592-810f-f075ffaee3bb" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/StockBasedCompensationTextualsDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#StockBasedCompensationTextualsDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/StockBasedCompensationTextualsDetails" xlink:type="extended" id="ia067fb60d4fb480c9cca2e819ed37af6_StockBasedCompensationTextualsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_2cfc6d4e-e563-4d78-8023-de42a338f6bf" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesAuthorized_710b8ebf-01ab-4445-be10-3b3bf630f41f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_2cfc6d4e-e563-4d78-8023-de42a338f6bf" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesAuthorized_710b8ebf-01ab-4445-be10-3b3bf630f41f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_44692ec7-3c74-455f-8c5f-0cf43fe7954d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_2cfc6d4e-e563-4d78-8023-de42a338f6bf" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_44692ec7-3c74-455f-8c5f-0cf43fe7954d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_9fc6317f-77ca-443b-8d85-ed1b18af92fc" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_2cfc6d4e-e563-4d78-8023-de42a338f6bf" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_9fc6317f-77ca-443b-8d85-ed1b18af92fc" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod_077c571c-75dd-45d6-ac31-08c7c6f13510" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_2cfc6d4e-e563-4d78-8023-de42a338f6bf" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod_077c571c-75dd-45d6-ac31-08c7c6f13510" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue_259ba451-be64-4e96-afbc-4dc119d1bc9c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_2cfc6d4e-e563-4d78-8023-de42a338f6bf" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue_259ba451-be64-4e96-afbc-4dc119d1bc9c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_d2dc6108-07b9-4400-89bd-7c55ab2b6658" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromStockOptionsExercised"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_2cfc6d4e-e563-4d78-8023-de42a338f6bf" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_d2dc6108-07b9-4400-89bd-7c55ab2b6658" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_105e1fa4-c32c-4556-b12f-7820b2dffeab" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_2cfc6d4e-e563-4d78-8023-de42a338f6bf" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_105e1fa4-c32c-4556-b12f-7820b2dffeab" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_16d2f051-356a-4f82-9105-baa11015ac0e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_2cfc6d4e-e563-4d78-8023-de42a338f6bf" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_16d2f051-356a-4f82-9105-baa11015ac0e" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardGross_432be233-0d52-42a8-84d0-f11177f91bb8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_2cfc6d4e-e563-4d78-8023-de42a338f6bf" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardGross_432be233-0d52-42a8-84d0-f11177f91bb8" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_ShareBasedCompensationArrangementByShareBasedPaymentAwardActualPayoutPercentage_d0dd9d49-093b-4330-b928-16e14619163c" xlink:href="hfwa-20211231.xsd#hfwa_ShareBasedCompensationArrangementByShareBasedPaymentAwardActualPayoutPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_2cfc6d4e-e563-4d78-8023-de42a338f6bf" xlink:to="loc_hfwa_ShareBasedCompensationArrangementByShareBasedPaymentAwardActualPayoutPercentage_d0dd9d49-093b-4330-b928-16e14619163c" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions_cdb17b7d-1391-448d-ae01-8ca884c4ebbe" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_2cfc6d4e-e563-4d78-8023-de42a338f6bf" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions_cdb17b7d-1391-448d-ae01-8ca884c4ebbe" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_8017ee56-4b59-4f34-88c4-5f65a56f76a9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_2cfc6d4e-e563-4d78-8023-de42a338f6bf" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_8017ee56-4b59-4f34-88c4-5f65a56f76a9" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_995dd07b-e7de-4bc4-b499-5f7b2189b295" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_2cfc6d4e-e563-4d78-8023-de42a338f6bf" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_995dd07b-e7de-4bc4-b499-5f7b2189b295" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_a7697d01-ac4f-42f3-90c8-7b4775ce7b4d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_995dd07b-e7de-4bc4-b499-5f7b2189b295" xlink:to="loc_us-gaap_AwardTypeAxis_a7697d01-ac4f-42f3-90c8-7b4775ce7b4d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_a7697d01-ac4f-42f3-90c8-7b4775ce7b4d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_a7697d01-ac4f-42f3-90c8-7b4775ce7b4d" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_a7697d01-ac4f-42f3-90c8-7b4775ce7b4d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_875f9a65-4c7e-4066-997d-5b81335136ed" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_a7697d01-ac4f-42f3-90c8-7b4775ce7b4d" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_875f9a65-4c7e-4066-997d-5b81335136ed" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_ba2771f7-a01e-4504-b5b7-0772b92928d7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EmployeeStockOptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_875f9a65-4c7e-4066-997d-5b81335136ed" xlink:to="loc_us-gaap_EmployeeStockOptionMember_ba2771f7-a01e-4504-b5b7-0772b92928d7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockMember_aa389d32-e0e8-4105-96e4-78eff7ae3f81" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RestrictedStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_875f9a65-4c7e-4066-997d-5b81335136ed" xlink:to="loc_us-gaap_RestrictedStockMember_aa389d32-e0e8-4105-96e4-78eff7ae3f81" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_PerformanceBasedRestrictedStockUnitsPRSUsMember_5ca5a215-8b2b-4bde-aacd-855a59dc33c3" xlink:href="hfwa-20211231.xsd#hfwa_PerformanceBasedRestrictedStockUnitsPRSUsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_875f9a65-4c7e-4066-997d-5b81335136ed" xlink:to="loc_hfwa_PerformanceBasedRestrictedStockUnitsPRSUsMember_5ca5a215-8b2b-4bde-aacd-855a59dc33c3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_6a2a5309-a2e5-4878-8deb-f340902a18c0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_875f9a65-4c7e-4066-997d-5b81335136ed" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_6a2a5309-a2e5-4878-8deb-f340902a18c0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameAxis_237be9ff-4a6b-4cd0-a072-1ca5b4760bee" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PlanNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_995dd07b-e7de-4bc4-b499-5f7b2189b295" xlink:to="loc_us-gaap_PlanNameAxis_237be9ff-4a6b-4cd0-a072-1ca5b4760bee" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_237be9ff-4a6b-4cd0-a072-1ca5b4760bee_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_237be9ff-4a6b-4cd0-a072-1ca5b4760bee" xlink:to="loc_us-gaap_PlanNameDomain_237be9ff-4a6b-4cd0-a072-1ca5b4760bee_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_668f666a-ebe0-4dec-a2e8-f76966963939" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_237be9ff-4a6b-4cd0-a072-1ca5b4760bee" xlink:to="loc_us-gaap_PlanNameDomain_668f666a-ebe0-4dec-a2e8-f76966963939" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_TwoThousandFourteenOmnibusEquityPlanMember_ccea3504-7282-4144-b4d6-5488daab9acd" xlink:href="hfwa-20211231.xsd#hfwa_TwoThousandFourteenOmnibusEquityPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_668f666a-ebe0-4dec-a2e8-f76966963939" xlink:to="loc_hfwa_TwoThousandFourteenOmnibusEquityPlanMember_ccea3504-7282-4144-b4d6-5488daab9acd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_OptionOneMember_5092fa77-d54f-4a74-b86d-80f86880dfdb" xlink:href="hfwa-20211231.xsd#hfwa_OptionOneMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_668f666a-ebe0-4dec-a2e8-f76966963939" xlink:to="loc_hfwa_OptionOneMember_5092fa77-d54f-4a74-b86d-80f86880dfdb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_OptionTwoMember_587170cf-0d06-45d1-a1ce-984bec0d21a6" xlink:href="hfwa-20211231.xsd#hfwa_OptionTwoMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_668f666a-ebe0-4dec-a2e8-f76966963939" xlink:to="loc_hfwa_OptionTwoMember_587170cf-0d06-45d1-a1ce-984bec0d21a6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_087b6419-0d1c-41da-8adf-1cf3f98b6d58" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_995dd07b-e7de-4bc4-b499-5f7b2189b295" xlink:to="loc_srt_RangeAxis_087b6419-0d1c-41da-8adf-1cf3f98b6d58" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_087b6419-0d1c-41da-8adf-1cf3f98b6d58_default" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_087b6419-0d1c-41da-8adf-1cf3f98b6d58" xlink:to="loc_srt_RangeMember_087b6419-0d1c-41da-8adf-1cf3f98b6d58_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_741520c0-533b-4a1f-9d92-eb7585b97a85" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_087b6419-0d1c-41da-8adf-1cf3f98b6d58" xlink:to="loc_srt_RangeMember_741520c0-533b-4a1f-9d92-eb7585b97a85" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_d9fa7496-68f4-423c-9cde-382d119eff82" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_741520c0-533b-4a1f-9d92-eb7585b97a85" xlink:to="loc_srt_MinimumMember_d9fa7496-68f4-423c-9cde-382d119eff82" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_e0c8deef-c981-4d15-8b85-31a8835e5b7c" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_741520c0-533b-4a1f-9d92-eb7585b97a85" xlink:to="loc_srt_MaximumMember_e0c8deef-c981-4d15-8b85-31a8835e5b7c" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/StockBasedCompensationRestrictedStockAwardActivityDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#StockBasedCompensationRestrictedStockAwardActivityDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/StockBasedCompensationRestrictedStockAwardActivityDetails" xlink:type="extended" id="i83f04613695644f19c43c18971bd878d_StockBasedCompensationRestrictedStockAwardActivityDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_ce2e67dc-7365-4721-88e5-bf2bb3cf0622" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_08fb82f8-8eca-426b-9297-5d18ae7d6f32" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_ce2e67dc-7365-4721-88e5-bf2bb3cf0622" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_08fb82f8-8eca-426b-9297-5d18ae7d6f32" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_48a1a79f-f75d-4ab4-8d22-fd2712eb889a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_08fb82f8-8eca-426b-9297-5d18ae7d6f32" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_48a1a79f-f75d-4ab4-8d22-fd2712eb889a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_b0aad99f-feaf-43e4-8829-50c32c6303f1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_48a1a79f-f75d-4ab4-8d22-fd2712eb889a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_b0aad99f-feaf-43e4-8829-50c32c6303f1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_50221759-7be5-4f89-bb1b-1bc4370f5b82" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_48a1a79f-f75d-4ab4-8d22-fd2712eb889a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_50221759-7be5-4f89-bb1b-1bc4370f5b82" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_3ae828cb-c032-4eb0-97d4-b90cbb68f8d3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_48a1a79f-f75d-4ab4-8d22-fd2712eb889a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_3ae828cb-c032-4eb0-97d4-b90cbb68f8d3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_f83d0a62-3026-4963-8f28-f2f74e0a9013" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_8c0bd4d3-b55f-4df8-b783-afa25f564941" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_08fb82f8-8eca-426b-9297-5d18ae7d6f32" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_8c0bd4d3-b55f-4df8-b783-afa25f564941" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_738141fd-70e5-4045-a3de-7f94c717da08" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_8c0bd4d3-b55f-4df8-b783-afa25f564941" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_738141fd-70e5-4045-a3de-7f94c717da08" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_55521aaa-b392-4941-ba19-8185fcf99f9d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_8c0bd4d3-b55f-4df8-b783-afa25f564941" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_55521aaa-b392-4941-ba19-8185fcf99f9d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_c8045c9d-ef47-4936-999f-ada8e6bfe711" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_8c0bd4d3-b55f-4df8-b783-afa25f564941" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_c8045c9d-ef47-4936-999f-ada8e6bfe711" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_05ead732-15e4-4c35-805e-98e6b5f47f0b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_e44b6286-3c8d-43e8-9b93-34c2ba14174f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_ce2e67dc-7365-4721-88e5-bf2bb3cf0622" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_e44b6286-3c8d-43e8-9b93-34c2ba14174f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_08e50d58-69ba-412b-8c63-eb947f51464c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_e44b6286-3c8d-43e8-9b93-34c2ba14174f" xlink:to="loc_us-gaap_AwardTypeAxis_08e50d58-69ba-412b-8c63-eb947f51464c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_08e50d58-69ba-412b-8c63-eb947f51464c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_08e50d58-69ba-412b-8c63-eb947f51464c" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_08e50d58-69ba-412b-8c63-eb947f51464c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_af511114-8e26-42dd-8902-a001de753bb7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_08e50d58-69ba-412b-8c63-eb947f51464c" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_af511114-8e26-42dd-8902-a001de753bb7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockMember_b301e14b-4f7b-4a88-ae68-fa38f71f40a8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RestrictedStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_af511114-8e26-42dd-8902-a001de753bb7" xlink:to="loc_us-gaap_RestrictedStockMember_b301e14b-4f7b-4a88-ae68-fa38f71f40a8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_22e9f60c-7174-453e-9186-3cb8b98812d5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_af511114-8e26-42dd-8902-a001de753bb7" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_22e9f60c-7174-453e-9186-3cb8b98812d5" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/StockBasedCompensationFairValueAssumptionsDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#StockBasedCompensationFairValueAssumptionsDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/StockBasedCompensationFairValueAssumptionsDetails" xlink:type="extended" id="ifacf407fd73148b28ddf1aa235ed844e_StockBasedCompensationFairValueAssumptionsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_d4581e5f-707f-440d-b751-5fbd8af6a62f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensationGross_fec8c9a0-844b-4b44-93fe-3117e6ae057e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensationGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_d4581e5f-707f-440d-b751-5fbd8af6a62f" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensationGross_fec8c9a0-844b-4b44-93fe-3117e6ae057e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1_b089a493-4ba8-4bb7-a8af-ebd4826eef83" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_d4581e5f-707f-440d-b751-5fbd8af6a62f" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1_b089a493-4ba8-4bb7-a8af-ebd4826eef83" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate_0cddc081-54cc-42bf-a8c6-0b4efa5d73e9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_d4581e5f-707f-440d-b751-5fbd8af6a62f" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate_0cddc081-54cc-42bf-a8c6-0b4efa5d73e9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExercisePrice_d2e5bae6-8ddd-4ff8-9420-5ce9ff2ddc30" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExercisePrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_d4581e5f-707f-440d-b751-5fbd8af6a62f" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExercisePrice_d2e5bae6-8ddd-4ff8-9420-5ce9ff2ddc30" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRateMinimum_82ac3187-70fa-45c8-9a3b-c78d25f65729" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRateMinimum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_d4581e5f-707f-440d-b751-5fbd8af6a62f" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRateMinimum_82ac3187-70fa-45c8-9a3b-c78d25f65729" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRateMaximum_50cbe6d1-8a00-41ec-9b59-4a5e269af78e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRateMaximum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_d4581e5f-707f-440d-b751-5fbd8af6a62f" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRateMaximum_50cbe6d1-8a00-41ec-9b59-4a5e269af78e" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_ShareBasedCompensationArrangementByShareBasedPaymentAwardCorrelationCoefficientRate_7479d72b-d160-4117-a346-ae66802b3543" xlink:href="hfwa-20211231.xsd#hfwa_ShareBasedCompensationArrangementByShareBasedPaymentAwardCorrelationCoefficientRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_d4581e5f-707f-440d-b751-5fbd8af6a62f" xlink:to="loc_hfwa_ShareBasedCompensationArrangementByShareBasedPaymentAwardCorrelationCoefficientRate_7479d72b-d160-4117-a346-ae66802b3543" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_899f3a81-476b-4a73-bbbc-76eb8ea19545" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_d4581e5f-707f-440d-b751-5fbd8af6a62f" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_899f3a81-476b-4a73-bbbc-76eb8ea19545" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_f0dc9208-d94c-4690-99d2-5518201d1962" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_d4581e5f-707f-440d-b751-5fbd8af6a62f" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_f0dc9208-d94c-4690-99d2-5518201d1962" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_236639c0-562a-4b41-b5b0-053822a88286" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_f0dc9208-d94c-4690-99d2-5518201d1962" xlink:to="loc_dei_LegalEntityAxis_236639c0-562a-4b41-b5b0-053822a88286" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_236639c0-562a-4b41-b5b0-053822a88286_default" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_236639c0-562a-4b41-b5b0-053822a88286" xlink:to="loc_dei_EntityDomain_236639c0-562a-4b41-b5b0-053822a88286_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_a182995c-4e2c-4148-9628-ea190b0847e3" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_236639c0-562a-4b41-b5b0-053822a88286" xlink:to="loc_dei_EntityDomain_a182995c-4e2c-4148-9628-ea190b0847e3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_PeerCompanyMember_7816f316-b9d5-42a2-8c68-42af2c0f13de" xlink:href="hfwa-20211231.xsd#hfwa_PeerCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_a182995c-4e2c-4148-9628-ea190b0847e3" xlink:to="loc_hfwa_PeerCompanyMember_7816f316-b9d5-42a2-8c68-42af2c0f13de" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_ca04e709-bd0c-4a03-9ee7-9f2fe40c67bf" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_f0dc9208-d94c-4690-99d2-5518201d1962" xlink:to="loc_us-gaap_AwardTypeAxis_ca04e709-bd0c-4a03-9ee7-9f2fe40c67bf" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ca04e709-bd0c-4a03-9ee7-9f2fe40c67bf_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_ca04e709-bd0c-4a03-9ee7-9f2fe40c67bf" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ca04e709-bd0c-4a03-9ee7-9f2fe40c67bf_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0428649e-4cad-4be4-903f-dc963f5c1cf6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_ca04e709-bd0c-4a03-9ee7-9f2fe40c67bf" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0428649e-4cad-4be4-903f-dc963f5c1cf6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_PerformanceBasedRestrictedStockUnitsPRSUsMember_510a1b54-d395-48c3-b2dd-e7525676005d" xlink:href="hfwa-20211231.xsd#hfwa_PerformanceBasedRestrictedStockUnitsPRSUsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0428649e-4cad-4be4-903f-dc963f5c1cf6" xlink:to="loc_hfwa_PerformanceBasedRestrictedStockUnitsPRSUsMember_510a1b54-d395-48c3-b2dd-e7525676005d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_e16f211e-d53f-4905-b383-e0272f2abc6a" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_f0dc9208-d94c-4690-99d2-5518201d1962" xlink:to="loc_srt_RangeAxis_e16f211e-d53f-4905-b383-e0272f2abc6a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_e16f211e-d53f-4905-b383-e0272f2abc6a_default" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_e16f211e-d53f-4905-b383-e0272f2abc6a" xlink:to="loc_srt_RangeMember_e16f211e-d53f-4905-b383-e0272f2abc6a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_60c02067-7e7a-46a6-a64e-4d4be993abb4" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_e16f211e-d53f-4905-b383-e0272f2abc6a" xlink:to="loc_srt_RangeMember_60c02067-7e7a-46a6-a64e-4d4be993abb4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_WeightedAverageMember_9f4ef7e0-de6a-4d43-8769-56f901c5e5f7" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_WeightedAverageMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_60c02067-7e7a-46a6-a64e-4d4be993abb4" xlink:to="loc_srt_WeightedAverageMember_9f4ef7e0-de6a-4d43-8769-56f901c5e5f7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_3059a8ff-1008-4f35-a381-9d4d4332b55d" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_60c02067-7e7a-46a6-a64e-4d4be993abb4" xlink:to="loc_srt_MinimumMember_3059a8ff-1008-4f35-a381-9d4d4332b55d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_9d22bef9-75ca-480d-9d0b-e614579e0c04" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_60c02067-7e7a-46a6-a64e-4d4be993abb4" xlink:to="loc_srt_MaximumMember_9d22bef9-75ca-480d-9d0b-e614579e0c04" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/StockBasedCompensationRSUActivityDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#StockBasedCompensationRSUActivityDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/StockBasedCompensationRSUActivityDetails" xlink:type="extended" id="i9e59773ae56b4e4d8f282bf772e058a7_StockBasedCompensationRSUActivityDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_8e70bda7-2ac6-4013-bb92-116f2591f886" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_549d6246-308b-40fc-8ba5-665d2276bd43" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_8e70bda7-2ac6-4013-bb92-116f2591f886" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_549d6246-308b-40fc-8ba5-665d2276bd43" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_d4c84c0a-d1ca-4bac-bc19-29a7ef56bf62" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_549d6246-308b-40fc-8ba5-665d2276bd43" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_d4c84c0a-d1ca-4bac-bc19-29a7ef56bf62" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_a8986ac9-a895-4c96-a270-c1faecd61546" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_549d6246-308b-40fc-8ba5-665d2276bd43" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_a8986ac9-a895-4c96-a270-c1faecd61546" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_42e9232b-03c2-41fe-813f-c65baa458f4c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_549d6246-308b-40fc-8ba5-665d2276bd43" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_42e9232b-03c2-41fe-813f-c65baa458f4c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_c2564ef1-60ff-47dd-88f5-0e141ea724de" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_549d6246-308b-40fc-8ba5-665d2276bd43" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_c2564ef1-60ff-47dd-88f5-0e141ea724de" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_8f60b519-8ca9-448c-93b4-46ad267a6153" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_feaf296f-7968-4ecd-a2c9-51bc2c41aac7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_8e70bda7-2ac6-4013-bb92-116f2591f886" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_feaf296f-7968-4ecd-a2c9-51bc2c41aac7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_665a7920-960a-42ec-aecc-312ab4ff1e46" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_feaf296f-7968-4ecd-a2c9-51bc2c41aac7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_665a7920-960a-42ec-aecc-312ab4ff1e46" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_c9da6115-321a-4365-a61c-ca1111f957ee" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_feaf296f-7968-4ecd-a2c9-51bc2c41aac7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_c9da6115-321a-4365-a61c-ca1111f957ee" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_eb6d30a5-1cd2-4601-b18c-3d1caa57011b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_feaf296f-7968-4ecd-a2c9-51bc2c41aac7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_eb6d30a5-1cd2-4601-b18c-3d1caa57011b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_2a29c2a4-26da-4792-8ae9-505aeffc183f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_feaf296f-7968-4ecd-a2c9-51bc2c41aac7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_2a29c2a4-26da-4792-8ae9-505aeffc183f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_b4681755-b7cb-49de-b1fe-4e235330a5ec" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_22f8a23f-c652-4d2d-9bf3-7406e50c9bd9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_8e70bda7-2ac6-4013-bb92-116f2591f886" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_22f8a23f-c652-4d2d-9bf3-7406e50c9bd9" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_3a47528c-3023-4bd4-86a2-af166392d39c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_22f8a23f-c652-4d2d-9bf3-7406e50c9bd9" xlink:to="loc_us-gaap_AwardTypeAxis_3a47528c-3023-4bd4-86a2-af166392d39c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_3a47528c-3023-4bd4-86a2-af166392d39c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_3a47528c-3023-4bd4-86a2-af166392d39c" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_3a47528c-3023-4bd4-86a2-af166392d39c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_e592b963-36b2-4deb-8dc2-b7de133f78c2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_3a47528c-3023-4bd4-86a2-af166392d39c" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_e592b963-36b2-4deb-8dc2-b7de133f78c2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_ae9bce70-44f8-4321-9496-d3c6b4dfbd94" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_e592b963-36b2-4deb-8dc2-b7de133f78c2" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_ae9bce70-44f8-4321-9496-d3c6b4dfbd94" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/CommitmentsandContingenciesOutstandingCommitmentstoExtendCreditDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#CommitmentsandContingenciesOutstandingCommitmentstoExtendCreditDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/CommitmentsandContingenciesOutstandingCommitmentstoExtendCreditDetails" xlink:type="extended" id="ic2d0582725174b1a8c12f9c8f8b888b2_CommitmentsandContingenciesOutstandingCommitmentstoExtendCreditDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentsLineItems_280fceb1-0ea7-4b1c-8228-53de1abbd22a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherCommitmentsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnusedCommitmentsToExtendCredit_aabc4df7-24cf-4b02-a3a0-1a7b336ba211" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_UnusedCommitmentsToExtendCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_280fceb1-0ea7-4b1c-8228-53de1abbd22a" xlink:to="loc_us-gaap_UnusedCommitmentsToExtendCredit_aabc4df7-24cf-4b02-a3a0-1a7b336ba211" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentsTable_e6531a84-946c-4c8e-a66c-afc732107a30" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherCommitmentsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_280fceb1-0ea7-4b1c-8228-53de1abbd22a" xlink:to="loc_us-gaap_OtherCommitmentsTable_e6531a84-946c-4c8e-a66c-afc732107a30" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_86cece7d-9911-46c2-bc82-9256b8fcd02c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OtherCommitmentsTable_e6531a84-946c-4c8e-a66c-afc732107a30" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_86cece7d-9911-46c2-bc82-9256b8fcd02c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_86cece7d-9911-46c2-bc82-9256b8fcd02c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_86cece7d-9911-46c2-bc82-9256b8fcd02c" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_86cece7d-9911-46c2-bc82-9256b8fcd02c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_6cae85ee-6a5b-4254-984b-cfd0024b26f1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_86cece7d-9911-46c2-bc82-9256b8fcd02c" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_6cae85ee-6a5b-4254-984b-cfd0024b26f1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_b7e2f60a-d61e-42ab-ae8f-3c7d34c0c3ff" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommercialPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_6cae85ee-6a5b-4254-984b-cfd0024b26f1" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_b7e2f60a-d61e-42ab-ae8f-3c7d34c0c3ff" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_RealEstateConstructionAndLandDevelopmentMember_cd387e1b-42a3-41b7-a1e9-b843f03494ca" xlink:href="hfwa-20211231.xsd#hfwa_RealEstateConstructionAndLandDevelopmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_6cae85ee-6a5b-4254-984b-cfd0024b26f1" xlink:to="loc_hfwa_RealEstateConstructionAndLandDevelopmentMember_cd387e1b-42a3-41b7-a1e9-b843f03494ca" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConsumerPortfolioSegmentMember_126a5431-ecde-4761-b366-b44cf594016c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ConsumerPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_6cae85ee-6a5b-4254-984b-cfd0024b26f1" xlink:to="loc_us-gaap_ConsumerPortfolioSegmentMember_126a5431-ecde-4761-b366-b44cf594016c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_50bea8b7-54f0-43be-ae2e-07007da50d90" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OtherCommitmentsTable_e6531a84-946c-4c8e-a66c-afc732107a30" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_50bea8b7-54f0-43be-ae2e-07007da50d90" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_50bea8b7-54f0-43be-ae2e-07007da50d90_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_50bea8b7-54f0-43be-ae2e-07007da50d90" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_50bea8b7-54f0-43be-ae2e-07007da50d90_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_2678f02f-0094-4fb3-bb9a-3a0722dbc7e7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_50bea8b7-54f0-43be-ae2e-07007da50d90" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_2678f02f-0094-4fb3-bb9a-3a0722dbc7e7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_CommercialAndIndustrialMember_0af267c6-558d-4bc1-a49b-70c64961868e" xlink:href="hfwa-20211231.xsd#hfwa_CommercialAndIndustrialMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_2678f02f-0094-4fb3-bb9a-3a0722dbc7e7" xlink:to="loc_hfwa_CommercialAndIndustrialMember_0af267c6-558d-4bc1-a49b-70c64961868e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_OwnerOccupiedCommercialRealEstateMember_205f1cce-8902-4b68-9ccd-719d6025426a" xlink:href="hfwa-20211231.xsd#hfwa_OwnerOccupiedCommercialRealEstateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_2678f02f-0094-4fb3-bb9a-3a0722dbc7e7" xlink:to="loc_hfwa_OwnerOccupiedCommercialRealEstateMember_205f1cce-8902-4b68-9ccd-719d6025426a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_NonOwnerOccupiedCommercialRealEstateMember_61c5944a-692a-4f0e-b3c0-dbaeb4e09319" xlink:href="hfwa-20211231.xsd#hfwa_NonOwnerOccupiedCommercialRealEstateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_2678f02f-0094-4fb3-bb9a-3a0722dbc7e7" xlink:to="loc_hfwa_NonOwnerOccupiedCommercialRealEstateMember_61c5944a-692a-4f0e-b3c0-dbaeb4e09319" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_OnetoFourFamilyRealEstateConstructionMember_d29ee988-b732-4c29-8398-c1c185008059" xlink:href="hfwa-20211231.xsd#hfwa_OnetoFourFamilyRealEstateConstructionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_2678f02f-0094-4fb3-bb9a-3a0722dbc7e7" xlink:to="loc_hfwa_OnetoFourFamilyRealEstateConstructionMember_d29ee988-b732-4c29-8398-c1c185008059" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_FiveOrMoreFamilyResidentialAndCommercialPropertiesMember_f3a80fa8-fec1-440d-bb9a-05eb00d47950" xlink:href="hfwa-20211231.xsd#hfwa_FiveOrMoreFamilyResidentialAndCommercialPropertiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_2678f02f-0094-4fb3-bb9a-3a0722dbc7e7" xlink:to="loc_hfwa_FiveOrMoreFamilyResidentialAndCommercialPropertiesMember_f3a80fa8-fec1-440d-bb9a-05eb00d47950" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/CommitmentsandContingenciesACLonUnfundedCommitmentsDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#CommitmentsandContingenciesACLonUnfundedCommitmentsDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/CommitmentsandContingenciesACLonUnfundedCommitmentsDetails" xlink:type="extended" id="i50ea9eee93c746fb9a157c824c8ed153_CommitmentsandContingenciesACLonUnfundedCommitmentsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentsLineItems_73eb43ef-a72d-470d-a5c8-30a86376b15c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherCommitmentsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLosses_ecf39bd2-a124-4341-9879-b329df71de94" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLosses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_73eb43ef-a72d-470d-a5c8-30a86376b15c" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLosses_ecf39bd2-a124-4341-9879-b329df71de94" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForOtherCreditLosses_712b6929-c470-4427-9862-be582996df0a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProvisionForOtherCreditLosses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_73eb43ef-a72d-470d-a5c8-30a86376b15c" xlink:to="loc_us-gaap_ProvisionForOtherCreditLosses_712b6929-c470-4427-9862-be582996df0a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLosses_ee0a74f6-f862-474f-848d-f90d830cf327" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLosses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentsTable_fd3f5050-f47f-467d-a3b8-45791220748c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherCommitmentsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_73eb43ef-a72d-470d-a5c8-30a86376b15c" xlink:to="loc_us-gaap_OtherCommitmentsTable_fd3f5050-f47f-467d-a3b8-45791220748c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentsAxis_a6d45255-5fba-4728-914a-251569b8cbbe" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherCommitmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OtherCommitmentsTable_fd3f5050-f47f-467d-a3b8-45791220748c" xlink:to="loc_us-gaap_OtherCommitmentsAxis_a6d45255-5fba-4728-914a-251569b8cbbe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentsDomain_a6d45255-5fba-4728-914a-251569b8cbbe_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherCommitmentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_OtherCommitmentsAxis_a6d45255-5fba-4728-914a-251569b8cbbe" xlink:to="loc_us-gaap_OtherCommitmentsDomain_a6d45255-5fba-4728-914a-251569b8cbbe_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentsDomain_c5744da6-521a-4756-a753-96eec805e794" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherCommitmentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_OtherCommitmentsAxis_a6d45255-5fba-4728-914a-251569b8cbbe" xlink:to="loc_us-gaap_OtherCommitmentsDomain_c5744da6-521a-4756-a753-96eec805e794" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_UnusedCommitmentstoExtendCreditMember_8f1fd967-e71b-4bb8-9ff8-47acd305544c" xlink:href="hfwa-20211231.xsd#hfwa_UnusedCommitmentstoExtendCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsDomain_c5744da6-521a-4756-a753-96eec805e794" xlink:to="loc_hfwa_UnusedCommitmentstoExtendCreditMember_8f1fd967-e71b-4bb8-9ff8-47acd305544c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_31a9aedd-c30a-42b4-af10-c1321e477644" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OtherCommitmentsTable_fd3f5050-f47f-467d-a3b8-45791220748c" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_31a9aedd-c30a-42b4-af10-c1321e477644" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_31a9aedd-c30a-42b4-af10-c1321e477644_default" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_31a9aedd-c30a-42b4-af10-c1321e477644" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_31a9aedd-c30a-42b4-af10-c1321e477644_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_b7589b95-99aa-4268-a802-028358b9954d" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_31a9aedd-c30a-42b4-af10-c1321e477644" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_b7589b95-99aa-4268-a802-028358b9954d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_45704090-7f22-4af1-bb38-c75859c8ec22" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_b7589b95-99aa-4268-a802-028358b9954d" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_45704090-7f22-4af1-bb38-c75859c8ec22" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustedBalanceMember_214aa53f-edf3-46df-b6c7-e460964e8051" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionAdjustedBalanceMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_b7589b95-99aa-4268-a802-028358b9954d" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustedBalanceMember_214aa53f-edf3-46df-b6c7-e460964e8051" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/CommitmentsandContingenciesTextualsDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#CommitmentsandContingenciesTextualsDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/CommitmentsandContingenciesTextualsDetails" xlink:type="extended" id="i21f6c8e6906444ea9f4c26173324d1ea_CommitmentsandContingenciesTextualsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentsLineItems_9f6522bd-3c64-459a-8cd9-bc5697b087d8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherCommitmentsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_InvestmentsinAffordableHousingLimitedEntities_26f9b04e-c648-465a-b733-89d3612ad640" xlink:href="hfwa-20211231.xsd#hfwa_InvestmentsinAffordableHousingLimitedEntities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_9f6522bd-3c64-459a-8cd9-bc5697b087d8" xlink:to="loc_hfwa_InvestmentsinAffordableHousingLimitedEntities_26f9b04e-c648-465a-b733-89d3612ad640" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AffordableHousingTaxCreditsAndOtherTaxBenefitsAmount_9df37a21-0a16-4dc1-90e3-478146721b02" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AffordableHousingTaxCreditsAndOtherTaxBenefitsAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_9f6522bd-3c64-459a-8cd9-bc5697b087d8" xlink:to="loc_us-gaap_AffordableHousingTaxCreditsAndOtherTaxBenefitsAmount_9df37a21-0a16-4dc1-90e3-478146721b02" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationMethodQualifiedAffordableHousingProjectInvestmentsAmortization_41b97554-edaf-4eba-9c7e-0124c4294608" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AmortizationMethodQualifiedAffordableHousingProjectInvestmentsAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_9f6522bd-3c64-459a-8cd9-bc5697b087d8" xlink:to="loc_us-gaap_AmortizationMethodQualifiedAffordableHousingProjectInvestmentsAmortization_41b97554-edaf-4eba-9c7e-0124c4294608" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_QualifiedAffordableHousingProjectInvestmentsCommitment_9ba326ba-c3ac-4d6b-81c3-a17c2c7bca3d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_QualifiedAffordableHousingProjectInvestmentsCommitment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_9f6522bd-3c64-459a-8cd9-bc5697b087d8" xlink:to="loc_us-gaap_QualifiedAffordableHousingProjectInvestmentsCommitment_9ba326ba-c3ac-4d6b-81c3-a17c2c7bca3d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_QualifiedAffordableHousingProjectInvestmentsFutureCommitment_4ffd72ea-17a7-4681-8412-cff9bbce4ab2" xlink:href="hfwa-20211231.xsd#hfwa_QualifiedAffordableHousingProjectInvestmentsFutureCommitment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_9f6522bd-3c64-459a-8cd9-bc5697b087d8" xlink:to="loc_hfwa_QualifiedAffordableHousingProjectInvestmentsFutureCommitment_4ffd72ea-17a7-4681-8412-cff9bbce4ab2" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AffordableHousingProjectInvestmentWriteDownAmount_b75cf5af-8346-419d-8841-e6cc2ecd57bc" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AffordableHousingProjectInvestmentWriteDownAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_9f6522bd-3c64-459a-8cd9-bc5697b087d8" xlink:to="loc_us-gaap_AffordableHousingProjectInvestmentWriteDownAmount_b75cf5af-8346-419d-8841-e6cc2ecd57bc" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_InvestmentinCertifiedDevelopmentEntities_b3244c6e-1f60-4592-812f-6250fc349411" xlink:href="hfwa-20211231.xsd#hfwa_InvestmentinCertifiedDevelopmentEntities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_9f6522bd-3c64-459a-8cd9-bc5697b087d8" xlink:to="loc_hfwa_InvestmentinCertifiedDevelopmentEntities_b3244c6e-1f60-4592-812f-6250fc349411" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromAffordableHousingProjectsEquityMethodInvestments_25b7576e-be17-48b1-9753-848957ed8dab" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeLossFromAffordableHousingProjectsEquityMethodInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_9f6522bd-3c64-459a-8cd9-bc5697b087d8" xlink:to="loc_us-gaap_IncomeLossFromAffordableHousingProjectsEquityMethodInvestments_25b7576e-be17-48b1-9753-848957ed8dab" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentsTable_bb3bba0f-51dc-4500-bbe8-86a2fa5d430c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherCommitmentsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_9f6522bd-3c64-459a-8cd9-bc5697b087d8" xlink:to="loc_us-gaap_OtherCommitmentsTable_bb3bba0f-51dc-4500-bbe8-86a2fa5d430c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementScenarioAxis_166f983a-a9c8-4c53-a6f4-b0fd68e24f91" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_StatementScenarioAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OtherCommitmentsTable_bb3bba0f-51dc-4500-bbe8-86a2fa5d430c" xlink:to="loc_srt_StatementScenarioAxis_166f983a-a9c8-4c53-a6f4-b0fd68e24f91" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioUnspecifiedDomain_166f983a-a9c8-4c53-a6f4-b0fd68e24f91_default" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ScenarioUnspecifiedDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementScenarioAxis_166f983a-a9c8-4c53-a6f4-b0fd68e24f91" xlink:to="loc_srt_ScenarioUnspecifiedDomain_166f983a-a9c8-4c53-a6f4-b0fd68e24f91_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioUnspecifiedDomain_361e3731-96d1-492a-858d-9df950743d90" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ScenarioUnspecifiedDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementScenarioAxis_166f983a-a9c8-4c53-a6f4-b0fd68e24f91" xlink:to="loc_srt_ScenarioUnspecifiedDomain_361e3731-96d1-492a-858d-9df950743d90" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioForecastMember_02fb9d83-4cc1-46e4-8e88-8e9cf7d98919" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ScenarioForecastMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ScenarioUnspecifiedDomain_361e3731-96d1-492a-858d-9df950743d90" xlink:to="loc_srt_ScenarioForecastMember_02fb9d83-4cc1-46e4-8e88-8e9cf7d98919" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/RegulatoryCapitalRequirementsDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#RegulatoryCapitalRequirementsDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/RegulatoryCapitalRequirementsDetails" xlink:type="extended" id="i61e08c22876e4008b69a3f91b9601c1b_RegulatoryCapitalRequirementsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems_3afd4a7d-ac9f-4779-b0a2-59697549192b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonEquityTierOneCapitalRequiredForCapitalAdequacy_77027b12-555d-49cd-a70a-25d41f0e18b5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonEquityTierOneCapitalRequiredForCapitalAdequacy"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems_3afd4a7d-ac9f-4779-b0a2-59697549192b" xlink:to="loc_us-gaap_CommonEquityTierOneCapitalRequiredForCapitalAdequacy_77027b12-555d-49cd-a70a-25d41f0e18b5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_CommonEquityTierOneCapitalRequiredforCapitalAdequacytoAverageAssets_23747484-7bc2-4f17-ac81-f3873286ad68" xlink:href="hfwa-20211231.xsd#hfwa_CommonEquityTierOneCapitalRequiredforCapitalAdequacytoAverageAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems_3afd4a7d-ac9f-4779-b0a2-59697549192b" xlink:to="loc_hfwa_CommonEquityTierOneCapitalRequiredforCapitalAdequacytoAverageAssets_23747484-7bc2-4f17-ac81-f3873286ad68" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonEquityTierOneCapitalRequiredToBeWellCapitalized_eedcac4d-3464-4f6a-91d4-2f6885c435e8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonEquityTierOneCapitalRequiredToBeWellCapitalized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems_3afd4a7d-ac9f-4779-b0a2-59697549192b" xlink:to="loc_us-gaap_CommonEquityTierOneCapitalRequiredToBeWellCapitalized_eedcac4d-3464-4f6a-91d4-2f6885c435e8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_CommonEquityTierOneCapitalRequiredtobeWellCapitalizedtoAverageAssets_1043d9f7-16b7-410e-a6d9-3a061717ab7a" xlink:href="hfwa-20211231.xsd#hfwa_CommonEquityTierOneCapitalRequiredtobeWellCapitalizedtoAverageAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems_3afd4a7d-ac9f-4779-b0a2-59697549192b" xlink:to="loc_hfwa_CommonEquityTierOneCapitalRequiredtobeWellCapitalizedtoAverageAssets_1043d9f7-16b7-410e-a6d9-3a061717ab7a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonEquityTierOneCapital_313b512e-61f1-4555-b0d7-7b701c9aff8d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonEquityTierOneCapital"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems_3afd4a7d-ac9f-4779-b0a2-59697549192b" xlink:to="loc_us-gaap_CommonEquityTierOneCapital_313b512e-61f1-4555-b0d7-7b701c9aff8d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TierOneLeverageCapitalRequiredForCapitalAdequacy_5e775036-0c04-4c35-ae3e-bdcac989c102" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TierOneLeverageCapitalRequiredForCapitalAdequacy"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems_3afd4a7d-ac9f-4779-b0a2-59697549192b" xlink:to="loc_us-gaap_TierOneLeverageCapitalRequiredForCapitalAdequacy_5e775036-0c04-4c35-ae3e-bdcac989c102" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TierOneLeverageCapitalRequiredForCapitalAdequacyToAverageAssets_4bb0c94c-00e5-4b6c-8256-bd3eba22c464" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TierOneLeverageCapitalRequiredForCapitalAdequacyToAverageAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems_3afd4a7d-ac9f-4779-b0a2-59697549192b" xlink:to="loc_us-gaap_TierOneLeverageCapitalRequiredForCapitalAdequacyToAverageAssets_4bb0c94c-00e5-4b6c-8256-bd3eba22c464" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TierOneLeverageCapitalRequiredToBeWellCapitalized_138b3769-44e0-4fb9-928d-e47296156d56" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TierOneLeverageCapitalRequiredToBeWellCapitalized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems_3afd4a7d-ac9f-4779-b0a2-59697549192b" xlink:to="loc_us-gaap_TierOneLeverageCapitalRequiredToBeWellCapitalized_138b3769-44e0-4fb9-928d-e47296156d56" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TierOneLeverageCapitalRequiredToBeWellCapitalizedToAverageAssets_37780152-aed4-4644-975c-22394e6cf594" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TierOneLeverageCapitalRequiredToBeWellCapitalizedToAverageAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems_3afd4a7d-ac9f-4779-b0a2-59697549192b" xlink:to="loc_us-gaap_TierOneLeverageCapitalRequiredToBeWellCapitalizedToAverageAssets_37780152-aed4-4644-975c-22394e6cf594" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TierOneLeverageCapital_43ff3603-f5c0-48f0-9e64-fc54c1e0a6d7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TierOneLeverageCapital"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems_3afd4a7d-ac9f-4779-b0a2-59697549192b" xlink:to="loc_us-gaap_TierOneLeverageCapital_43ff3603-f5c0-48f0-9e64-fc54c1e0a6d7" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TierOneLeverageCapitalToAverageAssets_1fc7efe6-96a0-45ae-975b-cbd04b52b0d2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TierOneLeverageCapitalToAverageAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems_3afd4a7d-ac9f-4779-b0a2-59697549192b" xlink:to="loc_us-gaap_TierOneLeverageCapitalToAverageAssets_1fc7efe6-96a0-45ae-975b-cbd04b52b0d2" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TierOneRiskBasedCapitalRequiredForCapitalAdequacy_de5fb11d-314b-4e96-ab89-f482a400820b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TierOneRiskBasedCapitalRequiredForCapitalAdequacy"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems_3afd4a7d-ac9f-4779-b0a2-59697549192b" xlink:to="loc_us-gaap_TierOneRiskBasedCapitalRequiredForCapitalAdequacy_de5fb11d-314b-4e96-ab89-f482a400820b" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TierOneRiskBasedCapitalRequiredForCapitalAdequacyToRiskWeightedAssets_5e65bce5-ecbc-4344-972c-2a1a829d03b7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TierOneRiskBasedCapitalRequiredForCapitalAdequacyToRiskWeightedAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems_3afd4a7d-ac9f-4779-b0a2-59697549192b" xlink:to="loc_us-gaap_TierOneRiskBasedCapitalRequiredForCapitalAdequacyToRiskWeightedAssets_5e65bce5-ecbc-4344-972c-2a1a829d03b7" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TierOneRiskBasedCapitalRequiredToBeWellCapitalized_b3f9705c-9ef5-47ae-ad08-293877164d9f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TierOneRiskBasedCapitalRequiredToBeWellCapitalized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems_3afd4a7d-ac9f-4779-b0a2-59697549192b" xlink:to="loc_us-gaap_TierOneRiskBasedCapitalRequiredToBeWellCapitalized_b3f9705c-9ef5-47ae-ad08-293877164d9f" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TierOneRiskBasedCapitalRequiredToBeWellCapitalizedToRiskWeightedAssets_9ab36271-bcc5-46fc-931b-89007ba1832e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TierOneRiskBasedCapitalRequiredToBeWellCapitalizedToRiskWeightedAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems_3afd4a7d-ac9f-4779-b0a2-59697549192b" xlink:to="loc_us-gaap_TierOneRiskBasedCapitalRequiredToBeWellCapitalizedToRiskWeightedAssets_9ab36271-bcc5-46fc-931b-89007ba1832e" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TierOneRiskBasedCapital_e07e5c74-cf69-4133-8264-140022515382" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TierOneRiskBasedCapital"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems_3afd4a7d-ac9f-4779-b0a2-59697549192b" xlink:to="loc_us-gaap_TierOneRiskBasedCapital_e07e5c74-cf69-4133-8264-140022515382" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TierOneRiskBasedCapitalToRiskWeightedAssets_920f2a60-2dbb-433b-a0a9-0cff3245c45d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TierOneRiskBasedCapitalToRiskWeightedAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems_3afd4a7d-ac9f-4779-b0a2-59697549192b" xlink:to="loc_us-gaap_TierOneRiskBasedCapitalToRiskWeightedAssets_920f2a60-2dbb-433b-a0a9-0cff3245c45d" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalRequiredForCapitalAdequacy_adad183d-4580-4a1a-ae7f-9cef9bb06be5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CapitalRequiredForCapitalAdequacy"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems_3afd4a7d-ac9f-4779-b0a2-59697549192b" xlink:to="loc_us-gaap_CapitalRequiredForCapitalAdequacy_adad183d-4580-4a1a-ae7f-9cef9bb06be5" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalRequiredForCapitalAdequacyToRiskWeightedAssets_50cc00bc-4d1d-4c67-9003-ecbb2f6e661a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CapitalRequiredForCapitalAdequacyToRiskWeightedAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems_3afd4a7d-ac9f-4779-b0a2-59697549192b" xlink:to="loc_us-gaap_CapitalRequiredForCapitalAdequacyToRiskWeightedAssets_50cc00bc-4d1d-4c67-9003-ecbb2f6e661a" xlink:type="arc" order="18"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalRequiredToBeWellCapitalized_ec7c45aa-ffc4-4162-8256-6d86575ebcfe" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CapitalRequiredToBeWellCapitalized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems_3afd4a7d-ac9f-4779-b0a2-59697549192b" xlink:to="loc_us-gaap_CapitalRequiredToBeWellCapitalized_ec7c45aa-ffc4-4162-8256-6d86575ebcfe" xlink:type="arc" order="19"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalRequiredToBeWellCapitalizedToRiskWeightedAssets_1f33636a-1155-43e3-83b2-99b5d7349720" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CapitalRequiredToBeWellCapitalizedToRiskWeightedAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems_3afd4a7d-ac9f-4779-b0a2-59697549192b" xlink:to="loc_us-gaap_CapitalRequiredToBeWellCapitalizedToRiskWeightedAssets_1f33636a-1155-43e3-83b2-99b5d7349720" xlink:type="arc" order="20"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Capital_072477b2-bcf0-400e-9368-b6cfea8f3b48" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Capital"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems_3afd4a7d-ac9f-4779-b0a2-59697549192b" xlink:to="loc_us-gaap_Capital_072477b2-bcf0-400e-9368-b6cfea8f3b48" xlink:type="arc" order="21"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalToRiskWeightedAssets_7e81c855-1504-42e9-8358-c66b49130558" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CapitalToRiskWeightedAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems_3afd4a7d-ac9f-4779-b0a2-59697549192b" xlink:to="loc_us-gaap_CapitalToRiskWeightedAssets_7e81c855-1504-42e9-8358-c66b49130558" xlink:type="arc" order="22"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_CapitalConservationBufferCompany_58387265-06dd-4ecb-808b-e9bba2faffc5" xlink:href="hfwa-20211231.xsd#hfwa_CapitalConservationBufferCompany"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems_3afd4a7d-ac9f-4779-b0a2-59697549192b" xlink:to="loc_hfwa_CapitalConservationBufferCompany_58387265-06dd-4ecb-808b-e9bba2faffc5" xlink:type="arc" order="23"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_CapitalConservationBufferBank_e73db289-0a35-4174-a1b9-1b5b6afb8105" xlink:href="hfwa-20211231.xsd#hfwa_CapitalConservationBufferBank"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems_3afd4a7d-ac9f-4779-b0a2-59697549192b" xlink:to="loc_hfwa_CapitalConservationBufferBank_e73db289-0a35-4174-a1b9-1b5b6afb8105" xlink:type="arc" order="24"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonEquityTierOneCapitalRatio_d6c1dc28-9e4b-43c7-96c5-a81cf80fb562" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonEquityTierOneCapitalRatio"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems_3afd4a7d-ac9f-4779-b0a2-59697549192b" xlink:to="loc_us-gaap_CommonEquityTierOneCapitalRatio_d6c1dc28-9e4b-43c7-96c5-a81cf80fb562" xlink:type="arc" order="25"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTable_0810c509-841b-48af-bad6-291bae7b6407" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems_3afd4a7d-ac9f-4779-b0a2-59697549192b" xlink:to="loc_us-gaap_ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTable_0810c509-841b-48af-bad6-291bae7b6407" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_cf7d6d54-bb42-48a8-bead-885cd9bba2c5" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTable_0810c509-841b-48af-bad6-291bae7b6407" xlink:to="loc_dei_LegalEntityAxis_cf7d6d54-bb42-48a8-bead-885cd9bba2c5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_cf7d6d54-bb42-48a8-bead-885cd9bba2c5_default" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_cf7d6d54-bb42-48a8-bead-885cd9bba2c5" xlink:to="loc_dei_EntityDomain_cf7d6d54-bb42-48a8-bead-885cd9bba2c5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_cc3d8439-0c22-4407-8dff-4fde9a06d801" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_cf7d6d54-bb42-48a8-bead-885cd9bba2c5" xlink:to="loc_dei_EntityDomain_cc3d8439-0c22-4407-8dff-4fde9a06d801" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_HeritageBankMember_582acbb6-0f31-466c-bc03-47abddca4556" xlink:href="hfwa-20211231.xsd#hfwa_HeritageBankMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_cc3d8439-0c22-4407-8dff-4fde9a06d801" xlink:to="loc_hfwa_HeritageBankMember_582acbb6-0f31-466c-bc03-47abddca4556" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/HeritageFinancialCorporationParentCompanyOnlyCondensedStatementsofFinancialConditionDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#HeritageFinancialCorporationParentCompanyOnlyCondensedStatementsofFinancialConditionDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/HeritageFinancialCorporationParentCompanyOnlyCondensedStatementsofFinancialConditionDetails" xlink:type="extended" id="i50a15a540ccc4f31a59f25c3288b74d0_HeritageFinancialCorporationParentCompanyOnlyCondensedStatementsofFinancialConditionDetails">
    <link:loc xlink:type="locator" xlink:label="loc_srt_CondensedBalanceSheetStatementsCaptionsLineItems_ae4f209c-0bed-4d4f-93a3-0a2abe4bfe88" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_CondensedBalanceSheetStatementsCaptionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsAbstract_e7d1a361-e569-4e8f-912b-2f3cb19300d6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedBalanceSheetStatementsCaptionsLineItems_ae4f209c-0bed-4d4f-93a3-0a2abe4bfe88" xlink:to="loc_us-gaap_AssetsAbstract_e7d1a361-e569-4e8f-912b-2f3cb19300d6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashEquivalentsAtCarryingValue_7129403b-e2e2-4007-b49b-bb57cbe11652" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CashEquivalentsAtCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_e7d1a361-e569-4e8f-912b-2f3cb19300d6" xlink:to="loc_us-gaap_CashEquivalentsAtCarryingValue_7129403b-e2e2-4007-b49b-bb57cbe11652" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures_788da8e1-a118-44a3-82e8-31361c08e81f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_e7d1a361-e569-4e8f-912b-2f3cb19300d6" xlink:to="loc_us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures_788da8e1-a118-44a3-82e8-31361c08e81f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_cbeefa58-60c4-4f37-b649-acb3b972e479" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_e7d1a361-e569-4e8f-912b-2f3cb19300d6" xlink:to="loc_us-gaap_OtherAssets_cbeefa58-60c4-4f37-b649-acb3b972e479" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_0f373f81-bc92-4e7c-95d2-771a30d46be0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Assets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_e7d1a361-e569-4e8f-912b-2f3cb19300d6" xlink:to="loc_us-gaap_Assets_0f373f81-bc92-4e7c-95d2-771a30d46be0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_108b2bbd-f111-4fca-9b49-09ff0eeb42e1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquityAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedBalanceSheetStatementsCaptionsLineItems_ae4f209c-0bed-4d4f-93a3-0a2abe4bfe88" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_108b2bbd-f111-4fca-9b49-09ff0eeb42e1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_JuniorSubordinatedNotes_039b3437-f65c-453e-9ab1-4409dcf69091" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_JuniorSubordinatedNotes"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_108b2bbd-f111-4fca-9b49-09ff0eeb42e1" xlink:to="loc_us-gaap_JuniorSubordinatedNotes_039b3437-f65c-453e-9ab1-4409dcf69091" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilities_ec61dea8-d8b2-47c2-bf2a-6ccb20d8ef1b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_108b2bbd-f111-4fca-9b49-09ff0eeb42e1" xlink:to="loc_us-gaap_OtherLiabilities_ec61dea8-d8b2-47c2-bf2a-6ccb20d8ef1b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_c640aa3c-a207-47f0-9381-db46c59b5479" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_108b2bbd-f111-4fca-9b49-09ff0eeb42e1" xlink:to="loc_us-gaap_StockholdersEquity_c640aa3c-a207-47f0-9381-db46c59b5479" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_d068e9bb-b4c4-495f-a90f-2a98cdaf9289" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_108b2bbd-f111-4fca-9b49-09ff0eeb42e1" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquity_d068e9bb-b4c4-495f-a90f-2a98cdaf9289" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CondensedBalanceSheetStatementTable_37e08753-fca3-42b1-8b4a-a758b2b383c8" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_CondensedBalanceSheetStatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_srt_CondensedBalanceSheetStatementsCaptionsLineItems_ae4f209c-0bed-4d4f-93a3-0a2abe4bfe88" xlink:to="loc_srt_CondensedBalanceSheetStatementTable_37e08753-fca3-42b1-8b4a-a758b2b383c8" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesAxis_a5d3b2d5-3539-4ae9-8f96-8b8d0ad2e97a" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_srt_CondensedBalanceSheetStatementTable_37e08753-fca3-42b1-8b4a-a758b2b383c8" xlink:to="loc_srt_ConsolidatedEntitiesAxis_a5d3b2d5-3539-4ae9-8f96-8b8d0ad2e97a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_a5d3b2d5-3539-4ae9-8f96-8b8d0ad2e97a_default" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_a5d3b2d5-3539-4ae9-8f96-8b8d0ad2e97a" xlink:to="loc_srt_ConsolidatedEntitiesDomain_a5d3b2d5-3539-4ae9-8f96-8b8d0ad2e97a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_e54ee905-1291-4a6e-9457-ee2376df9d05" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_a5d3b2d5-3539-4ae9-8f96-8b8d0ad2e97a" xlink:to="loc_srt_ConsolidatedEntitiesDomain_e54ee905-1291-4a6e-9457-ee2376df9d05" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ParentCompanyMember_e23a6135-298f-46f6-b1f1-d4f088374180" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ParentCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_e54ee905-1291-4a6e-9457-ee2376df9d05" xlink:to="loc_srt_ParentCompanyMember_e23a6135-298f-46f6-b1f1-d4f088374180" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/HeritageFinancialCorporationParentCompanyOnlyCondensedStatementsofIncomeDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#HeritageFinancialCorporationParentCompanyOnlyCondensedStatementsofIncomeDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/HeritageFinancialCorporationParentCompanyOnlyCondensedStatementsofIncomeDetails" xlink:type="extended" id="i0fdbd05103d84ec5b09fd35465099932_HeritageFinancialCorporationParentCompanyOnlyCondensedStatementsofIncomeDetails">
    <link:loc xlink:type="locator" xlink:label="loc_srt_CondensedIncomeStatementsCaptionsLineItems_1d79db84-8ace-4f3a-881d-558397b36393" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_CondensedIncomeStatementsCaptionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeDepositsWithFinancialInstitutions_0d9786ea-6795-4f46-86be-c41263098bd1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InterestIncomeDepositsWithFinancialInstitutions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedIncomeStatementsCaptionsLineItems_1d79db84-8ace-4f3a-881d-558397b36393" xlink:to="loc_us-gaap_InterestIncomeDepositsWithFinancialInstitutions_0d9786ea-6795-4f46-86be-c41263098bd1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseJuniorSubordinatedDebentures_079823ba-bff8-4f7f-b6de-9a945789a5d0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InterestExpenseJuniorSubordinatedDebentures"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedIncomeStatementsCaptionsLineItems_1d79db84-8ace-4f3a-881d-558397b36393" xlink:to="loc_us-gaap_InterestExpenseJuniorSubordinatedDebentures_079823ba-bff8-4f7f-b6de-9a945789a5d0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_816b624b-cdfe-4c6f-b615-f9f17863730b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InterestIncomeExpenseNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedIncomeStatementsCaptionsLineItems_1d79db84-8ace-4f3a-881d-558397b36393" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_816b624b-cdfe-4c6f-b615-f9f17863730b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendIncomeOperating_f21638d4-6f63-4a75-b743-9fc299e7a8c4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DividendIncomeOperating"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedIncomeStatementsCaptionsLineItems_1d79db84-8ace-4f3a-881d-558397b36393" xlink:to="loc_us-gaap_DividendIncomeOperating_f21638d4-6f63-4a75-b743-9fc299e7a8c4" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_EquityinUndistributedIncomeofSubsidiaries_f35cb1dc-3ac4-47c4-b351-98f2b28376a5" xlink:href="hfwa-20211231.xsd#hfwa_EquityinUndistributedIncomeofSubsidiaries"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedIncomeStatementsCaptionsLineItems_1d79db84-8ace-4f3a-881d-558397b36393" xlink:to="loc_hfwa_EquityinUndistributedIncomeofSubsidiaries_f35cb1dc-3ac4-47c4-b351-98f2b28376a5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncomeOther_1660d17c-835b-42a9-a2ee-c64c1335d55d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NoninterestIncomeOther"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedIncomeStatementsCaptionsLineItems_1d79db84-8ace-4f3a-881d-558397b36393" xlink:to="loc_us-gaap_NoninterestIncomeOther_1660d17c-835b-42a9-a2ee-c64c1335d55d" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncome_290d312b-4170-4ef7-9593-2d5c488932a5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NoninterestIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedIncomeStatementsCaptionsLineItems_1d79db84-8ace-4f3a-881d-558397b36393" xlink:to="loc_us-gaap_NoninterestIncome_290d312b-4170-4ef7-9593-2d5c488932a5" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfessionalFees_386c312c-ebe5-4205-95a0-5aa49ed3c1fa" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProfessionalFees"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedIncomeStatementsCaptionsLineItems_1d79db84-8ace-4f3a-881d-558397b36393" xlink:to="loc_us-gaap_ProfessionalFees_386c312c-ebe5-4205-95a0-5aa49ed3c1fa" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoninterestExpense_5ed99ad7-ede4-47dd-b7dc-ea4335b0922b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherNoninterestExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedIncomeStatementsCaptionsLineItems_1d79db84-8ace-4f3a-881d-558397b36393" xlink:to="loc_us-gaap_OtherNoninterestExpense_5ed99ad7-ede4-47dd-b7dc-ea4335b0922b" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestExpense_5f513dfd-1a4f-4ef1-8e53-6c86c9fb3e99" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NoninterestExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedIncomeStatementsCaptionsLineItems_1d79db84-8ace-4f3a-881d-558397b36393" xlink:to="loc_us-gaap_NoninterestExpense_5f513dfd-1a4f-4ef1-8e53-6c86c9fb3e99" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_1117f24a-f11c-40a2-9232-fe7d8008138c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedIncomeStatementsCaptionsLineItems_1d79db84-8ace-4f3a-881d-558397b36393" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_1117f24a-f11c-40a2-9232-fe7d8008138c" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_928eccaf-7499-4596-899e-fe5fca41d570" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedIncomeStatementsCaptionsLineItems_1d79db84-8ace-4f3a-881d-558397b36393" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_928eccaf-7499-4596-899e-fe5fca41d570" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_ede04299-113f-4029-923c-ee12824abd0a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedIncomeStatementsCaptionsLineItems_1d79db84-8ace-4f3a-881d-558397b36393" xlink:to="loc_us-gaap_NetIncomeLoss_ede04299-113f-4029-923c-ee12824abd0a" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CondensedIncomeStatementTable_744080ea-f064-4830-a315-fd6813ee330e" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_CondensedIncomeStatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_srt_CondensedIncomeStatementsCaptionsLineItems_1d79db84-8ace-4f3a-881d-558397b36393" xlink:to="loc_srt_CondensedIncomeStatementTable_744080ea-f064-4830-a315-fd6813ee330e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesAxis_0de10ce6-0eaf-4668-9571-9fa1dfcd179b" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_srt_CondensedIncomeStatementTable_744080ea-f064-4830-a315-fd6813ee330e" xlink:to="loc_srt_ConsolidatedEntitiesAxis_0de10ce6-0eaf-4668-9571-9fa1dfcd179b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_0de10ce6-0eaf-4668-9571-9fa1dfcd179b_default" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_0de10ce6-0eaf-4668-9571-9fa1dfcd179b" xlink:to="loc_srt_ConsolidatedEntitiesDomain_0de10ce6-0eaf-4668-9571-9fa1dfcd179b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_5a74fe34-cb69-48f5-b6aa-584684d4c3d3" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_0de10ce6-0eaf-4668-9571-9fa1dfcd179b" xlink:to="loc_srt_ConsolidatedEntitiesDomain_5a74fe34-cb69-48f5-b6aa-584684d4c3d3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ParentCompanyMember_89feae95-9a52-4688-b51d-fe490736d820" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ParentCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_5a74fe34-cb69-48f5-b6aa-584684d4c3d3" xlink:to="loc_srt_ParentCompanyMember_89feae95-9a52-4688-b51d-fe490736d820" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hf-wa.com/role/HeritageFinancialCorporationParentCompanyOnlyCondensedStatementsofCashFlowsDetails" xlink:type="simple" xlink:href="hfwa-20211231.xsd#HeritageFinancialCorporationParentCompanyOnlyCondensedStatementsofCashFlowsDetails"/>
  <link:definitionLink xlink:role="http://www.hf-wa.com/role/HeritageFinancialCorporationParentCompanyOnlyCondensedStatementsofCashFlowsDetails" xlink:type="extended" id="id6de59aa91804a40bf28c2eef4a99572_HeritageFinancialCorporationParentCompanyOnlyCondensedStatementsofCashFlowsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_srt_CondensedCashFlowStatementsCaptionsLineItems_8184c177-e08e-428f-8ad0-fa375b044a47" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_CondensedCashFlowStatementsCaptionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_53d8d9ce-5324-4764-bd26-3970f0661ea1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedCashFlowStatementsCaptionsLineItems_8184c177-e08e-428f-8ad0-fa375b044a47" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_53d8d9ce-5324-4764-bd26-3970f0661ea1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_070a7ea5-bc89-45ff-ab85-466773826bb2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_53d8d9ce-5324-4764-bd26-3970f0661ea1" xlink:to="loc_us-gaap_NetIncomeLoss_070a7ea5-bc89-45ff-ab85-466773826bb2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_3c9703d3-52e6-4b8c-99ce-40e846ef53aa" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_53d8d9ce-5324-4764-bd26-3970f0661ea1" xlink:to="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_3c9703d3-52e6-4b8c-99ce-40e846ef53aa" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hfwa_EquityinUndistributedIncomeofSubsidiaries_35efe9c0-ef7f-401a-a4f7-b32d30143046" xlink:href="hfwa-20211231.xsd#hfwa_EquityinUndistributedIncomeofSubsidiaries"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_3c9703d3-52e6-4b8c-99ce-40e846ef53aa" xlink:to="loc_hfwa_EquityinUndistributedIncomeofSubsidiaries_35efe9c0-ef7f-401a-a4f7-b32d30143046" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeBenefitsAndShareBasedCompensation_fdb135f4-d80d-435b-82f9-09adb8046f59" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EmployeeBenefitsAndShareBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_3c9703d3-52e6-4b8c-99ce-40e846ef53aa" xlink:to="loc_us-gaap_EmployeeBenefitsAndShareBasedCompensation_fdb135f4-d80d-435b-82f9-09adb8046f59" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherCurrentAssetsAndLiabilitiesNet_7ce60a1e-bd2f-43df-b68b-5b97d3d47377" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInOtherCurrentAssetsAndLiabilitiesNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_3c9703d3-52e6-4b8c-99ce-40e846ef53aa" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherCurrentAssetsAndLiabilitiesNet_7ce60a1e-bd2f-43df-b68b-5b97d3d47377" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e4829b46-2df1-4996-9013-66c873989a0d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_53d8d9ce-5324-4764-bd26-3970f0661ea1" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e4829b46-2df1-4996-9013-66c873989a0d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_416e2af6-6b82-4f23-a5ed-e3b03dfce590" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedCashFlowStatementsCaptionsLineItems_8184c177-e08e-428f-8ad0-fa375b044a47" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_416e2af6-6b82-4f23-a5ed-e3b03dfce590" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_80cb7f70-7af5-4140-b0ce-336d78a6bd6e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsOfDividendsCommonStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_416e2af6-6b82-4f23-a5ed-e3b03dfce590" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_80cb7f70-7af5-4140-b0ce-336d78a6bd6e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_b0f6f77d-2e04-4c8c-b99b-597696f6c90f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromStockOptionsExercised"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_416e2af6-6b82-4f23-a5ed-e3b03dfce590" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_b0f6f77d-2e04-4c8c-b99b-597696f6c90f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_84fd4eac-f781-49cc-afa8-1b54005120d5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_416e2af6-6b82-4f23-a5ed-e3b03dfce590" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_84fd4eac-f781-49cc-afa8-1b54005120d5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_3e90460c-9cd5-4254-8e60-ad911b448a29" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_416e2af6-6b82-4f23-a5ed-e3b03dfce590" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_3e90460c-9cd5-4254-8e60-ad911b448a29" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_f606fad1-4073-433a-a6d9-50889a69b187" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedCashFlowStatementsCaptionsLineItems_8184c177-e08e-428f-8ad0-fa375b044a47" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_f606fad1-4073-433a-a6d9-50889a69b187" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashEquivalentsAtCarryingValue_88981666-c9d5-434e-8b0c-7344ff03569f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CashEquivalentsAtCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedCashFlowStatementsCaptionsLineItems_8184c177-e08e-428f-8ad0-fa375b044a47" xlink:to="loc_us-gaap_CashEquivalentsAtCarryingValue_88981666-c9d5-434e-8b0c-7344ff03569f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashEquivalentsAtCarryingValue_cc207be4-1504-4bfc-a59d-2586cdfffafd" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CashEquivalentsAtCarryingValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CondensedCashFlowStatementTable_5288dfaf-b656-4926-af56-7f5fb581c9b3" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_CondensedCashFlowStatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_srt_CondensedCashFlowStatementsCaptionsLineItems_8184c177-e08e-428f-8ad0-fa375b044a47" xlink:to="loc_srt_CondensedCashFlowStatementTable_5288dfaf-b656-4926-af56-7f5fb581c9b3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesAxis_5dfba6c6-354e-427c-856d-b14ddc370d77" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_srt_CondensedCashFlowStatementTable_5288dfaf-b656-4926-af56-7f5fb581c9b3" xlink:to="loc_srt_ConsolidatedEntitiesAxis_5dfba6c6-354e-427c-856d-b14ddc370d77" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_5dfba6c6-354e-427c-856d-b14ddc370d77_default" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_5dfba6c6-354e-427c-856d-b14ddc370d77" xlink:to="loc_srt_ConsolidatedEntitiesDomain_5dfba6c6-354e-427c-856d-b14ddc370d77_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_2a92ddfb-28fd-499c-b5b3-3392b5ac0531" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_5dfba6c6-354e-427c-856d-b14ddc370d77" xlink:to="loc_srt_ConsolidatedEntitiesDomain_2a92ddfb-28fd-499c-b5b3-3392b5ac0531" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ParentCompanyMember_6ec40be1-b9fb-452d-a49a-8c5f0b195dca" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ParentCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_2a92ddfb-28fd-499c-b5b3-3392b5ac0531" xlink:to="loc_srt_ParentCompanyMember_6ec40be1-b9fb-452d-a49a-8c5f0b195dca" xlink:type="arc" order="0"/>
  </link:definitionLink>
</link:linkbase>
