About blue
blue (#0000FF) is pure blue, with only the blue channel switched on. It is one of the 16 HTML 4 color names.
Because the eye is much less sensitive to blue light than to green, pure blue is a very dark color in terms of luminance, so white text on it has high contrast. Softer blues in CSS include royalblue (#4169E1), dodgerblue (#1E90FF) and cornflowerblue (#6495ED).
Shades and tints of blue
Blue lands on the 800 step. The steps follow a lightness curve modeled on Tailwind CSS's default palette; build your own in the Tailwind color generator. For blue mixed with white, black or gray in even steps, use the tint and shade generator.
Colors that go with blue
Partner hues are picked on the OKLCH color wheel at a mid lightness, because blue itself is very dark.
Complementary: the opposite hue
Open in the palette generator · Compare the screen and painter's complements of blue
Analogous: neighboring hues 30° either side
Open in the palette generator · See analogous and monochromatic colors of blue on three wheels
Triadic: three hues 120° apart
Split complementary: the two hues beside the complement
Text on blue
| Text | Ratio | AA normal | AA large | AAA normal |
|---|---|---|---|---|
| White | 8.59:1 | Pass | Pass | Pass |
| Black | 2.44:1 | Fail | Fail | Fail |
The ratio is the same either way round, so blue text on a white background is also 8.59:1. Check other pairs in the color contrast checker.
Similar named colors
The CSS named colors closest to blue, by deltaE OK distance.
See all 148 on the color names page.
Closest Tailwind CSS colors
blue-700 v4: blue-700, #1447E6, deltaE OK 0.079
blue-700 v3: blue-700, #1D4ED8, deltaE OK 0.103
No default Tailwind color is a close match: the nearest are blue-700 in v4 and blue-700 in v3. Use an arbitrary value instead: bg-[#0000ff]. A deltaE OK of around 0.02 is roughly the smallest difference most people notice side by side. Browse every shade on the Tailwind CSS colors page.
Blue with color vision deficiency
An approximation of how blue may look with protanopia, deuteranopia and tritanopia (simulated with Machado, Oliveira and Fernandes, 2009), and with achromatopsia, shown as a gray of the same luminance.
Test a whole palette or image in the color blindness simulator.
Using blue in code
.example {
color: blue; /* named color */
background-color: #0000ff; /* hex */
border-color: rgb(0, 0, 255);
}
