It depends on what drives the crash, and the relationship can change for years at a time. Measured from July 2016, long Treasuries (TLT) had a 0.19 correlation with the S&P 500 in this data. Over the last five years alone, to Sep 30, 2026, it was 0.56, and for the broad bond fund AGG 0.62. That five-year window includes 2022, when inflation pushed rates up and both fell.
When the shock is a growth scare, investors tend to buy Treasuries and the correlation turns down, as in early 2020. When the shock is inflation, the same rate moves that hurt stocks hurt bonds, and the correlation turns up. A single long-run number hides both regimes, which is why the 60/40 debate keeps returning.