Color contrast answer
Does #ffffff work on #1d4ed8?
#ffffff text on a #1d4ed8 background has a contrast ratio of 6.70:1, so it passes WCAG AA for normal text.
Open this page with JavaScript enabled to edit the colors, tune the pair, and compare it against a full palette.