#21408D#21408D

#21408D is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.6% C 0.133 H 264.5°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#21408D
RGBrgb(33, 64, 141)
HSLhsl(223, 62%, 34%)
HSVhsv(223, 77%, 55%)
CMYKcmyk(76.6%, 54.6%, 0%, 44.7%)
CIE-LABlab(29.19, 17.42, -46.09)
CIE-LCHlch(29.19, 49.27, 290.71°)
OKLaboklab(39.58% -0.0128 -0.1327)
OKLCHoklch(39.58% 0.133 264.5)
XYZxyz(7.2666, 5.9124, 25.9524)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21408D #8D6E21
analogous
#21768D #21408D #38218D
triadic
#21408D #8D2140 #408D21
tetradic
#21408D #8D2176 #8D6E21 #218D38
square
#21408D #8D2176 #8D6E21 #218D38
split-complementary
#21408D #8D3821 #768D21
monochromatic
#0A132A #15295B #21408D #2D57BF #5278D6

Accessibility & contrast

On white

9.62
#21408D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#21408D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21408D
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21408D#FFFFFF#000000##FFFFFF
##21408D1.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064A90
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #21408d;
/* rgb */ color: rgb(33, 64, 141);
/* oklch */ color: oklch(39.6% 0.133 264.5);
Tailwind
colors: {
  custom: {
    50: '#6d74af',
    500: '#21408d',
    950: '#000000',
  },
}
SCSS
$custom: #21408d;
$custom-light: #6d74af;
$custom-dark: #000000;
JSON
{
  "hex": "#21408d",
  "rgb": {
    "r": 33,
    "g": 64,
    "b": 141
  },
  "hsl": {
    "h": 222.778,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39578,
    "c": 0.13334,
    "h": 264.5
  },
  "luminance": 0.05913
}

Semantic roles & 50–950 ramp

primary
#21408D
secondary
#BA9B50
accent
#B743E5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #21408D

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

Preview Lab → · Contrast checker → · Palette generator →

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