Most people who understand even a little about color know they should not use red text on a blue background Hard to read or blue text on a red background Hard to read because the normal human eye with normal lenses cannot focus on certain shades of red and blue at the same time.
What colour text on blue background. While Yellow text is a bad choice. Purple and some variants of green white or grey are also acceptable as background colors. Or place the text in a box where you have better control of the background.
In this case the message. The font color changes the text from black to some other color but has no effect on the blue. For Level AA conformance WCAG 20 Success Criterion 143 recommends that regular text has a minimum contrast ratio of 451 and that large text 18-point or 14-point bold has a minimum contrast ratio of 31.
Background and Text Color Picker. Red letters distract and red backgrounds attract attention. The text highlight color control will override it with any color but white which isnt shown.
Blue is one of mankind favorite color as is represents sky heaven trust and faith. Try black text on light blue pale green or gray background. The color blue is good recognized with white lettering as information sign.
Example with darks on a lighter background. Its good to identify some additional color combinations for attention-grabbing call-outs and other possible needs. Dark Blue text is a good choice.
The ratios have been scientifically calculated to ensure that text can be read by those with moderate low vision and that contrast is sufficient enough for those who have color. Shown are the corresponding Red Green Blue RGB values as well as the long color number used in Microsoft Office Word and Excel coding. Turn down the opacity if you must place text directly on an image.