#21408B#21408B

#21408B is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.4% C 0.130 H 264.3°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#21408B
RGBrgb(33, 64, 139)
HSLhsl(222, 62%, 34%)
HSVhsv(222, 76%, 55%)
CMYKcmyk(76.3%, 54%, 0%, 45.5%)
CIE-LABlab(29.04, 16.63, -45.10)
CIE-LCHlch(29.04, 48.07, 290.24°)
OKLaboklab(39.42% -0.013 -0.1298)
OKLCHoklch(39.42% 0.13 264.3)
XYZxyz(7.1191, 5.8534, 25.1757)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21408B #8B6C21
analogous
#21758B #21408B #37218B
triadic
#21408B #8B2140 #408B21
tetradic
#21408B #8B2175 #8B6C21 #218B37
square
#21408B #8B2175 #8B6C21 #218B37
split-complementary
#21408B #8B3721 #758B21
monochromatic
#0A1228 #15295A #21408B #2D57BC #5178D6

Accessibility & contrast

On white

9.67
#21408B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#21408B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21408B
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21408B#FFFFFF#000000##FFFFFF
##21408B1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4A8E
Deuteranopia (green-blind)
#00408A
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #21408b;
/* rgb */ color: rgb(33, 64, 139);
/* oklch */ color: oklch(39.4% 0.130 264.3);
Tailwind
colors: {
  custom: {
    50: '#6c74ad',
    500: '#21408b',
    950: '#000000',
  },
}
SCSS
$custom: #21408b;
$custom-light: #6c74ad;
$custom-dark: #000000;
JSON
{
  "hex": "#21408b",
  "rgb": {
    "r": 33,
    "g": 64,
    "b": 139
  },
  "hsl": {
    "h": 222.453,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39416,
    "c": 0.13047,
    "h": 264.3
  },
  "luminance": 0.05854
}

Semantic roles & 50–950 ramp

primary
#21408B
secondary
#B99A4F
accent
#B543E5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #21408B

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#21408B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva