<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.23.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>450</ContextCount>
  <ElementCount>430</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>93</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>6</UnitCount>
  <MyReports>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>100000 - Document - Cover Page</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DocumentCoverPage</Role>
      <ShortName>Cover Page</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>100010 - Statement - Consolidated Balance Sheets (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_StatementConsolidatedBalanceSheetsUnaudited</Role>
      <ShortName>Consolidated Balance Sheets (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>100020 - Statement - Consolidated Balance Sheets (Unaudited) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_StatementConsolidatedBalanceSheetsUnauditedParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Unaudited) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>100030 - Statement - Consolidated Statements of Income (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_StatementConsolidatedStatementsOfIncomeUnaudited</Role>
      <ShortName>Consolidated Statements of Income (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>100040 - Statement - Consolidated Statements of Comprehensive Income (Loss) (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveIncomeLossUnaudited</Role>
      <ShortName>Consolidated Statements of Comprehensive Income (Loss) (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>100050 - Statement - Consolidated Statements of Changes in Stockholders' Equity (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquityUnaudited</Role>
      <ShortName>Consolidated Statements of Changes in Stockholders' Equity (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>100060 - Statement - Consolidated Statements of Changes in Stockholders' Equity (Unaudited) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquityUnauditedParenthetical</Role>
      <ShortName>Consolidated Statements of Changes in Stockholders' Equity (Unaudited) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>100070 - Statement - Consolidated Statements of Cash Flows (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlowsUnaudited</Role>
      <ShortName>Consolidated Statements of Cash Flows (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>100080 - Disclosure - Organization and Basis of Presentation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureOrganizationAndBasisOfPresentation</Role>
      <ShortName>Organization and Basis of Presentation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>100090 - Disclosure - Securities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureSecurities</Role>
      <ShortName>Securities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>100100 - Disclosure - Loans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureLoans</Role>
      <ShortName>Loans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>100110 - Disclosure - Servicing Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureServicingAssets</Role>
      <ShortName>Servicing Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>100120 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureIncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>100130 - Disclosure - Goodwill and Other Intangibles</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndOtherIntangibles</Role>
      <ShortName>Goodwill and Other Intangibles</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>100140 - Disclosure - Deposits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureDeposits</Role>
      <ShortName>Deposits</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>100150 - Disclosure - Borrowings and Subordinated Debentures</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureBorrowingsAndSubordinatedDebentures</Role>
      <ShortName>Borrowings and Subordinated Debentures</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>100160 - Disclosure - Earnings per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureEarningsPerShare</Role>
      <ShortName>Earnings per Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>100170 - Disclosure - Regulatory Matters</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureRegulatoryMatters</Role>
      <ShortName>Regulatory Matters</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>100180 - Disclosure - Fair Value Measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureFairValueMeasurements</Role>
      <ShortName>Fair Value Measurements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>100190 - Disclosure - Off-Balance Sheet Commitments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureOffBalanceSheetCommitments</Role>
      <ShortName>Off-Balance Sheet Commitments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>100200 - Disclosure - Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureLeases</Role>
      <ShortName>Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>100210 - Disclosure - Liquidity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureLiquidity</Role>
      <ShortName>Liquidity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>100220 - Disclosure - Derivatives and Hedging Activities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureDerivativesAndHedgingActivities</Role>
      <ShortName>Derivatives and Hedging Activities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>100230 - Disclosure - Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureSubsequentEvents</Role>
      <ShortName>Subsequent Events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>100240 - Disclosure - Organization and Basis of Presentation (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureOrganizationAndBasisOfPresentationPolicies</Role>
      <ShortName>Organization and Basis of Presentation (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>100250 - Disclosure - Securities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureSecuritiesTables</Role>
      <ShortName>Securities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureSecurities</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>100260 - Disclosure - Loans (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureLoansTables</Role>
      <ShortName>Loans (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureLoans</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>100270 - Disclosure - Servicing Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureServicingAssetsTables</Role>
      <ShortName>Servicing Assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureServicingAssets</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>100280 - Disclosure - Goodwill and Other Intangibles (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndOtherIntangiblesTables</Role>
      <ShortName>Goodwill and Other Intangibles (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndOtherIntangibles</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>100290 - Disclosure - Deposits (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureDepositsTables</Role>
      <ShortName>Deposits (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureDeposits</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>100300 - Disclosure - Borrowings and Subordinated Debentures (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureBorrowingsAndSubordinatedDebenturesTables</Role>
      <ShortName>Borrowings and Subordinated Debentures (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureBorrowingsAndSubordinatedDebentures</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>100310 - Disclosure - Earnings per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureEarningsPerShareTables</Role>
      <ShortName>Earnings per Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureEarningsPerShare</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>100320 - Disclosure - Regulatory Matters (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureRegulatoryMattersTables</Role>
      <ShortName>Regulatory Matters (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureRegulatoryMatters</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>100330 - Disclosure - Fair Value Measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureFairValueMeasurementsTables</Role>
      <ShortName>Fair Value Measurements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureFairValueMeasurements</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>100340 - Disclosure - Off-Balance Sheet Commitments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureOffBalanceSheetCommitmentsTables</Role>
      <ShortName>Off-Balance Sheet Commitments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureOffBalanceSheetCommitments</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>100350 - Disclosure - Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureLeasesTables</Role>
      <ShortName>Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureLeases</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>100360 - Disclosure - Derivatives and Hedging Activities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureDerivativesAndHedgingActivitiesTables</Role>
      <ShortName>Derivatives and Hedging Activities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureDerivativesAndHedgingActivities</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>100370 - Disclosure - Securities - Summary of Investment Securities Available for Sale (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureSecuritiesSummaryOfInvestmentSecuritiesAvailableForSaleDetail</Role>
      <ShortName>Securities - Summary of Investment Securities Available for Sale (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>100380 - Disclosure - Securities - Schedule of Amortized Cost and Estimated Fair Value of Investment Securities by Contractual Maturity (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureSecuritiesScheduleOfAmortizedCostAndEstimatedFairValueOfInvestmentSecuritiesByContractualMaturityDetail</Role>
      <ShortName>Securities - Schedule of Amortized Cost and Estimated Fair Value of Investment Securities by Contractual Maturity (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>100390 - Disclosure - Securities - Summary of Debt Securities Available for Sale in an Unrealized Loss Position for Which an Allowance for Credit Losses Has Not Been Recorded (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureSecuritiesSummaryOfDebtSecuritiesAvailableForSaleInUnrealizedLossPositionForWhichAllowanceForCreditLossesHasNotBeenRecordedDetail</Role>
      <ShortName>Securities - Summary of Debt Securities Available for Sale in an Unrealized Loss Position for Which an Allowance for Credit Losses Has Not Been Recorded (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>100400 - Disclosure - Securities - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureSecuritiesAdditionalInformationDetail</Role>
      <ShortName>Securities - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>100410 - Disclosure - Loans - Loans (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureLoansLoansDetail</Role>
      <ShortName>Loans - Loans (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>100420 - Disclosure - Loans - Loans (Detail) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureLoansLoansDetailParenthetical</Role>
      <ShortName>Loans - Loans (Detail) (Parenthetical)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>100430 - Disclosure - Loans - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureLoansAdditionalInformationDetail</Role>
      <ShortName>Loans - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>100440 - Disclosure - Loans - Activity for Loans Held for Sale (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureLoansActivityForLoansHeldForSaleDetail</Role>
      <ShortName>Loans - Activity for Loans Held for Sale (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>100450 - Disclosure - Loans - Allowance for Credit Losses by Portfolio Segment (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureLoansAllowanceForCreditLossesByPortfolioSegmentDetail</Role>
      <ShortName>Loans - Allowance for Credit Losses by Portfolio Segment (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>100460 - Disclosure - Loans - Allowance for Credit Losses by Portfolio Segment as a Percentage of Recorded Total Allowance for Credit Losses and Aggregate Recorded Investment of Loans Receivable (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureLoansAllowanceForCreditLossesByPortfolioSegmentAsPercentageOfRecordedTotalAllowanceForCreditLossesAndAggregateRecordedInvestmentOfLoansReceivableDetail</Role>
      <ShortName>Loans - Allowance for Credit Losses by Portfolio Segment as a Percentage of Recorded Total Allowance for Credit Losses and Aggregate Recorded Investment of Loans Receivable (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>100470 - Disclosure - Loans - Summary of Amortized Cost Basis of Collateral Dependent Loans By Class of Loans (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureLoansSummaryOfAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansDetail</Role>
      <ShortName>Loans - Summary of Amortized Cost Basis of Collateral Dependent Loans By Class of Loans (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>100480 - Disclosure - Loans - Loans by Vintage Year and Risk Rating (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureLoansLoansByVintageYearAndRiskRatingDetail</Role>
      <ShortName>Loans - Loans by Vintage Year and Risk Rating (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>100490 - Disclosure - Loans - Loans by Vintage Year and Payment Performance (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureLoansLoansByVintageYearAndPaymentPerformanceDetail</Role>
      <ShortName>Loans - Loans by Vintage Year and Payment Performance (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>100500 - Disclosure - Loans - Analysis of Past Due Loans, Including Loans on Nonaccrual Status, Disaggregated by Loan Class, Non-PCI (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/DisclosureLoansAnalysisOfPastDueLoansIncludingLoansOnNonaccrualStatusDisaggregatedByLoanClassNonpciDetail</Role>
      <ShortName>Loans - Analysis of Past Due Loans, Including Loans on Nonaccrual Status, Disaggregated by Loan Class, Non-PCI (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>100510 - Disclosure - Loans - Schedule of Amortized Cost Basis of Loans on Nonaccrual Status and Loans Past Due 90 Days and Still Accruing (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureLoansScheduleOfAmortizedCostBasisOfLoansOnNonaccrualStatusAndLoansPastDue90DaysAndStillAccruingDetail</Role>
      <ShortName>Loans - Schedule of Amortized Cost Basis of Loans on Nonaccrual Status and Loans Past Due 90 Days and Still Accruing (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>100520 - Disclosure - Loans - Non-Performing Assets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureLoansNonPerformingAssetsDetail</Role>
      <ShortName>Loans - Non-Performing Assets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>100540 - Disclosure - Servicing Assets - Summary of Changes in Servicing Assets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureServicingAssetsSummaryOfChangesInServicingAssetsDetail</Role>
      <ShortName>Servicing Assets - Summary of Changes in Servicing Assets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>100550 - Disclosure - Servicing Assets - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureServicingAssetsAdditionalInformationDetail</Role>
      <ShortName>Servicing Assets - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>100560 - Disclosure - Income Taxes - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail</Role>
      <ShortName>Income Taxes - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>100570 - Disclosure - Goodwill and Other Intangibles - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndOtherIntangiblesAdditionalInformationDetail</Role>
      <ShortName>Goodwill and Other Intangibles - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>100580 - Disclosure - Goodwill and Other Intangibles - Summary of Other Intangible Assets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndOtherIntangiblesSummaryOfOtherIntangibleAssetsDetail</Role>
      <ShortName>Goodwill and Other Intangibles - Summary of Other Intangible Assets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>100590 - Disclosure - Deposits - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureDepositsAdditionalInformationDetail</Role>
      <ShortName>Deposits - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>100600 - Disclosure - Deposits - Scheduled Maturities of Time Deposits (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureDepositsScheduledMaturitiesOfTimeDepositsDetail</Role>
      <ShortName>Deposits - Scheduled Maturities of Time Deposits (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>100610 - Disclosure - Borrowings and Subordinated Debentures - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureBorrowingsAndSubordinatedDebenturesAdditionalInformationDetail</Role>
      <ShortName>Borrowings and Subordinated Debentures - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>100620 - Disclosure - Borrowings and Subordinated Debentures - Schedule of Borrowings (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureBorrowingsAndSubordinatedDebenturesScheduleOfBorrowingsDetail</Role>
      <ShortName>Borrowings and Subordinated Debentures - Schedule of Borrowings (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>100630 - Disclosure - Borrowings and Subordinated Debentures - Summary of Financial Data Pertaining to Federal Home Loan Bank Advances (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureBorrowingsAndSubordinatedDebenturesSummaryOfFinancialDataPertainingToFederalHomeLoanBankAdvancesDetail</Role>
      <ShortName>Borrowings and Subordinated Debentures - Summary of Financial Data Pertaining to Federal Home Loan Bank Advances (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>100640 - Disclosure - Earnings per Share - Reconciliation of Components Used to Derive Basic and Diluted EPS (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureEarningsPerShareReconciliationOfComponentsUsedToDeriveBasicAndDilutedEPSDetail</Role>
      <ShortName>Earnings per Share - Reconciliation of Components Used to Derive Basic and Diluted EPS (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>100650 - Disclosure - Earnings per Share - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureEarningsPerShareAdditionalInformationDetail</Role>
      <ShortName>Earnings per Share - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>100670 - Disclosure - Regulatory Matters - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureRegulatoryMattersAdditionalInformationDetail</Role>
      <ShortName>Regulatory Matters - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>100680 - Disclosure - Regulatory Matters - Capital Ratios of Hanmi Financial and Bank (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureRegulatoryMattersCapitalRatiosOfHanmiFinancialAndBankDetail</Role>
      <ShortName>Regulatory Matters - Capital Ratios of Hanmi Financial and Bank (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>100690 - Disclosure - Fair Value Measurements - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail</Role>
      <ShortName>Fair Value Measurements - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>100700 - Disclosure - Fair Value Measurements - Assets and Liabilities Measured at Fair Value on Recurring Basis (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureFairValueMeasurementsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetail</Role>
      <ShortName>Fair Value Measurements - Assets and Liabilities Measured at Fair Value on Recurring Basis (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>100710 - Disclosure - Fair Value Measurements - Assets and Liabilities Measured at Fair Value on Non-Recurring Basis (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureFairValueMeasurementsAssetsAndLiabilitiesMeasuredAtFairValueOnNonRecurringBasisDetail</Role>
      <ShortName>Fair Value Measurements - Assets and Liabilities Measured at Fair Value on Non-Recurring Basis (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>100720 - Disclosure - Fair Value Measurements - Assets and Liabilities Measured at Fair Value on Non-Recurring Basis (Parenthetical) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureFairValueMeasurementsAssetsAndLiabilitiesMeasuredAtFairValueOnNonRecurringBasisParentheticalDetail</Role>
      <ShortName>Fair Value Measurements - Assets and Liabilities Measured at Fair Value on Non-Recurring Basis (Parenthetical) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>100730 - Disclosure - Fair Value Measurements - Quantitative Information about Level 3 Fair Value Assumptions for Assets Measured at Fair Value on Non-Recurring Basis (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureFairValueMeasurementsQuantitativeInformationAboutLevel3FairValueAssumptionsForAssetsMeasuredAtFairValueOnNonRecurringBasisDetail</Role>
      <ShortName>Fair Value Measurements - Quantitative Information about Level 3 Fair Value Assumptions for Assets Measured at Fair Value on Non-Recurring Basis (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>100740 - Disclosure - Fair Value Measurements - Estimated Fair Values of Financial Instruments (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureFairValueMeasurementsEstimatedFairValuesOfFinancialInstrumentsDetail</Role>
      <ShortName>Fair Value Measurements - Estimated Fair Values of Financial Instruments (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>100750 - Disclosure - Off-Balance Sheet Commitments - Distribution of Total Loan Commitments (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureOffBalanceSheetCommitmentsDistributionOfTotalLoanCommitmentsDetail</Role>
      <ShortName>Off-Balance Sheet Commitments - Distribution of Total Loan Commitments (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>100760 - Disclosure - Off-Balance Sheet Commitments - Allowance for Credit Losses Related to Off-Balance Sheet Items (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureOffBalanceSheetCommitmentsAllowanceForCreditLossesRelatedToOffBalanceSheetItemsDetail</Role>
      <ShortName>Off-Balance Sheet Commitments - Allowance for Credit Losses Related to Off-Balance Sheet Items (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>100770 - Disclosure - Leases - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureLeasesAdditionalInformationDetail</Role>
      <ShortName>Leases - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>100780 - Disclosure - Leases - Future Minimum Rental Commitments Under Non-cancelable Operating Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureLeasesFutureMinimumRentalCommitmentsUnderNonCancelableOperatingLeasesDetails</Role>
      <ShortName>Leases - Future Minimum Rental Commitments Under Non-cancelable Operating Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>100790 - Disclosure - Liquidity - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureLiquidityAdditionalInformationDetail</Role>
      <ShortName>Liquidity - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>100800 - Disclosure - Derivatives and Hedging Activities - Schedule of Fair Value of Derivative Financial Instruments as well as their Location on Balance Sheet (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureDerivativesAndHedgingActivitiesScheduleOfFairValueOfDerivativeFinancialInstrumentsAsWellAsTheirLocationOnBalanceSheetDetail</Role>
      <ShortName>Derivatives and Hedging Activities - Schedule of Fair Value of Derivative Financial Instruments as well as their Location on Balance Sheet (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>100810 - Disclosure - Derivatives and Hedging Activities - Effect of Derivative Financial Instruments that are Not Designated as Hedging Instruments on Income Statement (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureDerivativesAndHedgingActivitiesEffectOfDerivativeFinancialInstrumentsThatAreNotDesignatedAsHedgingInstrumentsOnIncomeStatementDetail</Role>
      <ShortName>Derivatives and Hedging Activities - Effect of Derivative Financial Instruments that are Not Designated as Hedging Instruments on Income Statement (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>100830 - Disclosure - Derivatives and Hedging Activities - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureDerivativesAndHedgingActivitiesAdditionalInformationDetails</Role>
      <ShortName>Derivatives and Hedging Activities - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>100840 - Disclosure - Derivatives and Hedging Activities - Summary of Gross Presentation, Effects of Offsetting and a Net Presentation of Derivatives (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/Role_DisclosureDerivativesAndHedgingActivitiesSummaryOfGrossPresentationEffectsOfOffsettingAndNetPresentationOfDerivativesDetail</Role>
      <ShortName>Derivatives and Hedging Activities - Summary of Gross Presentation, Effects of Offsetting and a Net Presentation of Derivatives (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="hafc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>100850 - Disclosure - Subsequent Events - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hanmi.com/20230331/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails</Role>
      <ShortName>Subsequent Events - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <Logs>
    <Log type="Warning">[dq-0542-Deprecated-Concept] Concept TreasuryStockShares in us-gaap/2022 used in 6 facts was deprecated in us-gaap/2023 as of 2023 and should not be used. hafc-20230331.htm 867, 1643, 1916, 1985, 2336</Log>
    <Log type="Warning">[dq-0542-Deprecated-Concept] Concept TreasuryStockMember in us-gaap/2022 used in 16 facts was deprecated in us-gaap/2023 as of 2023 and should not be used. hafc-20230331.htm 1643, 1667, 1760, 1784, 1916, 1940, 1985, 2009, 2024, 2048, 2141, 2165, 2180, 2204, 2336, 2360</Log>
    <Log type="Warning">[ix-0514-Hidden-Fact-Eligible-For-Transform] WARN: 3 fact(s) appearing in ix:hidden were eligible for transformation: hafc:DebtInstrumentOptionalInterestPaymentDeferralPeriod, us-gaap:LesseeFinanceLeaseRemainingLeaseTerm, us-gaap:LesseeOperatingLeaseRemainingLeaseTerm -  hafc-20230331.htm 8</Log>
  </Logs>
  <InputFiles>
    <File doctype="10-Q" original="hafc-20230331.htm">hafc-20230331.htm</File>
    <File>hafc-20230331.xsd</File>
    <File>hafc-20230331_cal.xml</File>
    <File>hafc-20230331_def.xml</File>
    <File>hafc-20230331_lab.xml</File>
    <File>hafc-20230331_pre.xml</File>
    <File>hafc-ex31_1.htm</File>
    <File>hafc-ex31_2.htm</File>
    <File>hafc-ex32_1.htm</File>
    <File>hafc-ex32_2.htm</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="1843">http://fasb.org/us-gaap/2022</BaseTaxonomy>
    <BaseTaxonomy items="30">http://xbrl.sec.gov/dei/2022</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
