Color combinations / Yellow and Blue
Yellow and Blue color combination
These colors sit nearly opposite on the color wheel, so they are complementary and create strong contrast.
Do they work together?
Yes. Yellow and Blue have a contrast ratio of 8.00:1, which passes WCAG AA for body text.
Contrast is the same in both directions. Check other pairs in the contrast checker.
See it in use
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
Copy the colors
--yellow: #ffff00; --blue: #0000ff;
More with yellow
Common questions
Do yellow and blue go well together?
These colors sit nearly opposite on the color wheel, so they are complementary and create strong contrast. Yes. Yellow and Blue have a contrast ratio of 8.00:1, which passes WCAG AA for body text.
What are the hex codes for yellow and blue?
Yellow is #FFFF00 and Blue is #0000FF.
Can I use yellow text on blue?
Yes. Yellow and Blue have a contrast ratio of 8.00:1, which passes WCAG AA for body text.