Loans
Loan balances totaled $10.1 billion as of June 30, 2024, compared to $10.1 billion and $10.6 billion as of March 31, 2024 and June 30, 2023, respectively. Loan fundings totaled $516 million, offset by loan payments and payoffs of $515 million, in the quarter. This compares to loan fundings totaling $302 million, offset by loan payments and payoffs of $393 million, in the prior quarter and loan fundings totaling $474 million, offset by loan payments and payoffs of $559 million in the second quarter of 2023. Commercial and industrial (“C&I”) loans accounted for 83% of total fundings for the quarter, and 86% of total fundings year to date. C&I loans consist primarily of commercial revolving lines of credit and term loans.
During the quarter, loans totaling $4.4 million in unpaid principal balance were sold, resulting in a net gain on sale of loans of $415 thousand.
Loan portfolio average yield increased to 4.77% in the quarter, compared to 4.70% in the prior quarter, and 4.69% in the second quarter of 2023. Average yields on new loan fundings were 8.19% in the quarter compared to 8.39% in the prior quarter and 7.90% in the second quarter of 2023.
Investment Securities
Investment securities were $1.9 billion as of June 30, 2024, compared to $1.6 billion and $1.0 billion as of March 31, 2024 and June 30, 2023, respectively. During the quarter, $459 million in investment securities were purchased, offset by $143 million in sales and maturities, resulting in a net gain on sale of securities available-for-sale of $983 thousand. The investment securities purchased during the quarter consisted of agency mortgage-backed securities.
The allowance for credit losses for investments was $7.3 million as of June 30, 2024, compared to $7.9 million and $8.5 million as of March 31, 2024 and June 30, 2023, respectively. Unrealized losses (tax-effected) on the available-for-sale portfolio totaled $16.6 million as of June 30, 2024, compared to $17.5 million as of March 31, 2024. Unrecognized losses (tax-effected) on the held-to-maturity portfolio totaled $56.4 million as of June 30, 2024, compared to $60.1 million as of March 31, 2024. Combined unrealized and unrecognized losses (tax-effected) on the available-for-sale and held-to-maturity portfolios totaled $73.0 million, or 3.91% of the combined portfolios as of June 30, 2024, compared to $77.6 million or 4.91% of the combined portfolios as of March 31, 2024.
Investment securities portfolio average yield was 4.00% in the quarter, compared to 4.06% in the prior quarter and 2.39% in the second quarter of 2023.
Deposits and Borrowings
Deposits were $10.8 billion as of June 30, 2024, compared to $10.6 billion and $10.8 billion as of March 31, 2024 and June 30, 2023, respectively. Noninterest-bearing demand deposits accounted for 20% of total deposits as of June 30, 2024, compared to 17% and 25% as of March 31, 2024 and June 30, 2023, respectively. Certificates of deposit accounted for 26% of total deposits as of June 30, 2024, relatively unchanged compared to March 31, 2024 and June 30, 2023, respectively. Core deposits accounted for 62% of total deposits as of June 30, 2024, compared to 64% and 71% as of March 31, 2024 and June 30, 2023, respectively. Brokered deposits accounted for 38% of total deposits as of June 30, 2024, compared to 36% and 29% as of March 31, 2024 and June 30, 2023, respectively.
Cost of deposits decreased to 3.49% for the quarter, compared to 3.63% for the prior quarter and 2.85% for the second quarter of 2023.