Blue color #0000FF
rgb(0, 0, 255) · oklch(45.2% 0.313 264.1)
Blue (#0000FF) is a dark, vivid, cool blue. It mixes 0% red, 0% green and 100% blue, with a perceived lightness of 45.2% in OKLCH. White text reads best on it (8.59:1 vs 2.44:1). The closest other CSS color is Medium Blue (#0000CD). For people with tritanopia it shifts the most, toward #006B96.
Blue color codes
| HEX | |
|---|---|
| RGB | |
| HSL | |
| HSV / HSB | |
| OKLCH | |
| CMYK | |
| CSS keyword |
Click a value to copy it. Convert any other color with the color converter.
Shades, tints and tones of blue
Shades mix blue with black, tints mix it with white, and tones mix it with gray. Mixing happens in OKLab, so the steps look evenly spaced.
Tints (lighter)
Shades (darker)
Tones (muted)
Blue as a UI color scale (50–950)
An 11-step scale for design systems, with blue placed at step 700. Copy it as a Tailwind v4 theme below.
Colors that go with blue
Harmonies are computed on the OKLCH hue wheel, keeping blue’s lightness and saturation where the sRGB gamut allows. Open any row in the palette generator to adjust it.
Complementary
EditThe base color and the hue directly opposite it. Maximum contrast; use one as the accent.
Split complementary
EditThe base plus the two hues beside its complement (±30°). Contrast with less tension than complementary.
Tetradic (rectangle)
EditTwo complementary pairs (rectangle: 0°, 60°, 180°, 240°). Rich; needs one dominant color.
Is blue accessible? Contrast with white and black
8.59:1
AA pass AA large pass AAA pass
2.44:1
AA fail AA large fail AAA fail
- As a background, blue works best with white text.
- For body text on black, use the lighter variant .
How blue looks with color blindness
Simulated with the Machado et al. (2009) model. Around 1 in 12 men and 1 in 200 women have some form of color vision deficiency.
#0059ff Red-blind. Reds look dark and brownish; red and green are easily confused.
#003dfb Green-blind, the most common strong form. Red, green, orange and brown look similar.
#006b96 Blue-blind and rare. Blue and green are confused, as are yellow and pink.
#4c4c4c Total color blindness, very rare. Only lightness differences are visible.
Colors similar to blue
The closest CSS named colors by perceptual distance (ΔE OK; under 2 is hard to tell apart).
Use blue in CSS and Tailwind
CSS custom properties
:root {
--blue: #0000ff;
--blue-rgb: 0 0 255;
}
.text-blue { color: var(--blue); }
.bg-blue { background-color: var(--blue); }
Tailwind v4 theme
@theme {
--color-blue-50: #f6f7f8;
--color-blue-100: #eaedf1;
--color-blue-200: #d3dbeb;
--color-blue-300: #abc1ed;
--color-blue-400: #769ff6;
--color-blue-500: #447cff;
--color-blue-600: #1b57ff;
--color-blue-700: #0000ff;
--color-blue-800: #0d35a5;
--color-blue-900: #102d78;
--color-blue-950: #0b1c43;
}
Make a gradient from blue: open the gradient generator.
Painting in Procreate or designing in Photoshop? See our palette packs: every color with HEX codes is free to browse, and the swatch files are a quick download.