Skip to content

Royal Blue color #4169E1

rgb(65, 105, 225) · oklch(56% 0.188 266.4)

Royal Blue (#4169E1) is a medium, strong, cool blue. It mixes 25% red, 41% green and 88% blue, with a perceived lightness of 56% in OKLCH. White text reads best on it (4.84:1 vs 4.33:1). The closest other CSS color is Slate Blue (#6A5ACD). For people with tritanopia it shifts the most, toward #00869B.

Royal 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 royal blue

Shades mix royal 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)

Royal Blue as a UI color scale (50–950)

An 11-step scale for design systems, with royal blue placed at step 600. Copy it as a Tailwind v4 theme below.

Colors that go with royal blue

Harmonies are computed on the OKLCH hue wheel, keeping royal 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 royal blue accessible? Contrast with white and black

Royal Blue text on white

4.84:1

AA pass AA large pass AAA fail

Royal Blue text on black

4.33:1

AA fail AA large pass AAA fail

Check royal blue against any other color

How royal 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: #0879e5
Red-blind. Reds look dark and brownish; red and green are easily confused.
Deuteranopia: #006adf
Green-blind, the most common strong form. Red, green, orange and brown look similar.
Tritanopia: #00869b
Blue-blind and rare. Blue and green are confused, as are yellow and pink.
Achromatopsia: #717171
Total color blindness, very rare. Only lightness differences are visible.

Colors similar to royal blue

The closest CSS named colors by perceptual distance (ΔE OK; under 2 is hard to tell apart).

ΔE 6.4 Slate Blue
#6a5acd
ΔE 7.8 Medium Slate Blue
#7b68ee
ΔE 10.2 Dodger Blue
#1e90ff
ΔE 10.5 Steel Blue
#4682b4

Use royal blue in CSS and Tailwind

CSS custom properties

:root {
  --royalblue: #4169e1;
  --royalblue-rgb: 65 105 225;
}

.text-royalblue { color: var(--royalblue); }
.bg-royalblue { background-color: var(--royalblue); }

Tailwind v4 theme

@theme {
  --color-royalblue-50: #f6f7f7;
  --color-royalblue-100: #ebedf0;
  --color-royalblue-200: #d5dbe8;
  --color-royalblue-300: #b2c1e3;
  --color-royalblue-400: #83a0e4;
  --color-royalblue-500: #5a80e5;
  --color-royalblue-600: #4169e1;
  --color-royalblue-700: #2142d0;
  --color-royalblue-800: #1c389b;
  --color-royalblue-900: #192e71;
  --color-royalblue-950: #101c40;
}

Make a gradient from royal 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