Color contrast answer
Does #000000 work on #5e5aa3?
#000000 text on a #5e5aa3 background has a contrast ratio of 3.47:1, so it passes WCAG AA for large text and UI graphics, but fails normal text.
Open this page with JavaScript enabled to edit the colors, tune the pair, and compare it against a full palette.