Skip to content

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

Edit

The base color and the hue directly opposite it. Maximum contrast; use one as the accent.

Analogous

Edit

Neighbors 30° either side on the hue wheel. Calm and cohesive, common in nature.

Triadic

Edit

Three hues spaced 120° apart. Vibrant but balanced; let one dominate.

Split complementary

Edit

The base plus the two hues beside its complement (±30°). Contrast with less tension than complementary.

Tetradic (rectangle)

Edit

Two complementary pairs (rectangle: 0°, 60°, 180°, 240°). Rich; needs one dominant color.

Monochromatic

Edit

One hue at different lightness levels. Safe, elegant, and easy to read.

Is blue accessible? Contrast with white and black

Blue text on white

8.59:1

AA pass AA large pass AAA pass

Blue text on black

2.44:1

AA fail AA large fail AAA fail

Check blue against any other color

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.

Protanopia: #0059ff
Red-blind. Reds look dark and brownish; red and green are easily confused.
Deuteranopia: #003dfb
Green-blind, the most common strong form. Red, green, orange and brown look similar.
Tritanopia: #006b96
Blue-blind and rare. Blue and green are confused, as are yellow and pink.
Achromatopsia: #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).

ΔE 8.3 Medium Blue
#0000cd
ΔE 16.5 Royal Blue
#4169e1
ΔE 19.0 Slate Blue
#6a5acd
ΔE 20.0 Dark Blue
#00008b

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.

More blue colors