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