HSA contribution for 2024 tax year in 2025

My understanding is that I have until the tax filing deadline (Apr 15, 2025) to make HSA contributions for 2024. However, I'm only on a health plan with HSA/HDHP until December 31st, 2024

 

Will I have any penalties or excess contribution if I make an HSA contribution in Feb 2025 but designate it for 2024 tax year?