Lighter and darker blue
Each step mixes in more white or black, in even steps for the eye. Tap a swatch to copy its code.
Lighter
Darker
Colors that go with blue
Complementary
Across the color wheel. Strong contrast, good for one button or one word.
Analogous
Its neighbors on the wheel. Calm, easy to use together.
Triadic
Three colors evenly spread. Lively, best with one in charge.
Pairs well in a brand
Blue and text
White text reads best on blue: 8.59:1. The same numbers hold for blue text on a white or a black page. Body text needs 4.5:1 for AA and 7:1 for AAA; large text needs 3:1.
| Text | Contrast | WCAG |
|---|---|---|
| AaWhite text on blue | 8.59:1 | AAA |
| AaBlack text on blue | 2.44:1 | Fails |
How blue looks with color blindness
Other blue hex codes
Pure blue is harsh on screen, so brands nearly always use a softer one. Royal blue #4169E1 and dodger blue #1E90FF are the bright blues most people picture, steel blue #4682B4 is calmer, and medium blue #0000CD is a step darker than pure blue. For a dark blue, see navy.
- BlueCSS named color: blue. The code on this page
#0000FF - Royal blueCSS named color: royalblue
#4169E1 - Dodger blueCSS named color: dodgerblue
#1E90FF - Medium blueCSS named color: mediumblue
#0000CD - Steel blueCSS named color: steelblue
#4682B4 - NavyCSS named color: navy
#000080
Blue in a small business brand
Blue reads as trust and calm: banks, clinics, cleaners, tech and many service businesses. It is a safe main color and carries white text well. Because so many brands are blue, pick a shade with a clear character and add a warm accent, like orange or coral, for buttons and sale badges.
FAQ
What is the hex code for blue?
Blue is #0000FF as the CSS named color blue. In RGB that is rgb(0, 0, 255), and in CMYK cmyk(100%, 100%, 0%, 0%).
What text color goes on blue?
White text, at a contrast of 8.59:1, which passes WCAG AAA. Black text reaches 2.44:1, too low for any text.
What is the hex code for royal blue?
CSS royal blue is #4169E1, which is rgb(65, 105, 225). It is lighter and friendlier than pure blue #0000FF.
Is white text on blue readable?
Yes on pure blue: white on #0000FF is 8.59:1, which passes AAA. On lighter blues, such as dodger blue, check the contrast first.