Total investments were $483.9 million at December 31, 2023, compared to $569.0 million at December 31, 2022. At December 31, 2023, the available for sale securities totaled $398.9 million and the held to maturity securities totaled $84.9 million. The unrealized loss on the available for sale securities decreased $14.7 million from December 31, 2022 to $51.5 million at December 31, 2023. The unrealized losses on the held to maturity portfolio totaled $13.2 million and $14.6 million at December 31, 2023 and December 31, 2022, respectively. During the three month period ended March 31, 2023, $65.6 million in U.S. Treasury, tax-exempt municipals and mortgage-backed securities were sold at a net gain of $81 thousand. The proceeds were used to pay-down higher cost short-term borrowings.
Total deposits increased $232.4 million during the twelve months ending December 31, 2023. Noninterest-bearing deposits decreased $128.1 million and interest-bearing deposits increased $360.5 million during the twelve months ended December 31, 2023. The increase in deposits was due to a $237.4 million net increase in brokered deposits, $129.3 million in commercial deposits and a $9.0 million increase in municipal deposits, partially offset by $143.3 million in reduced retail deposits. The Company added $259.0 million of longer-term callable brokered CDs during the first six months of 2023 to improve its on-balance sheet liquidity position and mitigate risk of higher rates. The Company has the option to call the CDs. During the three months ended December 31, 2023, deposits declined $86.0 million due in part to seasonal outflows of municipal deposits and commercial and retail depositors drawing down their noninterest-bearing balances.
The deposit base consisted of 41.4% retail accounts, 33.4% commercial accounts, 17.2% municipal relationships and 8.0% brokered deposits at December 31, 2023. At December 31, 2023, total estimated uninsured deposits, were $883.5 million, or approximately 26.9% of total deposits as compared to $1.1 billion, or 36.9% of total deposits at December 31, 2022. Included in the uninsured total at December 31, 2023 is $424.5 million of municipal deposits collateralized by letters of credit issued by the FHLB and pledged investment securities, and $0.8 million of affiliate company deposits. As an additional resource to our uninsured depositors, we offer all depositors access to IntraFi's CDARS and ICS programs which allows deposit customers to obtain full FDIC deposit insurance while maintaining their relationship with our Bank.
During the twelve months ended December 31, 2023, the Company utilized a portion of its available line at the FHLB and increased its long-term debt $25.0 million due to favorable pricing on the borrowings versus alternative funding sources. There were no new long-term borrowings in the most recent three month period ended December 31, 2023.
In addition to deposit gathering and our current long term borrowings, we have additional sources of liquidity available such as cash and cash equivalents, overnight borrowings from the FHLB, the Federal Reserve’s Discount Window and Borrower-in-Custody program, correspondent bank lines of credit, brokered deposit capacity and unencumbered securities. At December 31, 2023, the Company had $187.4 million in cash and cash equivalents, an increase of $149.5 million from December 31, 2022. Also, we have $191.0 million in collateral availability with the Federal Reserve’s Bank Term Funding Program (BTFP) and an additional $177.9 million of borrowing capacity based on the par value of unencumbered securities available as collateral under this line which may be used if needed. At December 31, 2023, we had $1.6 billion in available additional liquidity representing 43.4% of total assets, 49.6% of total deposits and 184.0% of uninsured deposits. For additional information on our deposit portfolio and additional sources of liquidity, see the tables on page 17.
The Company maintained its well capitalized position at December 31, 2023. Stockholders' equity equaled $340.4 million or $48.35 per share at December 31, 2023, and $315.4 million or $44.06 per share at December 31, 2022. The increase in stockholders’ equity from December 31, 2022 is primarily attributable to net income and a decrease to accumulated other comprehensive loss (“AOCI”) resulting from a decrease in the unrealized loss on available for sale securities. The net after tax unrealized loss on available for sale securities included in AOCI at December 31, 2023 and December 31, 2022 was $40.3 million and $52.0 million, respectively.
Tangible stockholders' equity, a non-GAAP measure1, increased to $39.35 per share at December 31, 2023, from $35.19 per share at December 31, 2022. Dividends declared for the twelve months ended December 31, 2023 amounted to $1.64 per share, a 3.8% increase from the 2022 period, representing a dividend payout ratio of 42.8% of net income. During the twelve months ended December 31, 2023, 131,686 shares were purchased and retired under the Company’s common stock repurchase plan at an average price per share of $44.29.
1See reconciliation of non-GAAP financial measures on pg.19-21