#21208D#21208D

#21208D is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.172 H 272.6°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#21208D
RGBrgb(33, 32, 141)
HSLhsl(241, 63%, 34%)
HSVhsv(241, 77%, 55%)
CMYKcmyk(76.6%, 77.3%, 0%, 44.7%)
CIE-LABlab(21.13, 38.50, -59.29)
CIE-LCHlch(21.13, 70.69, 303.00°)
OKLaboklab(33.65% 0.0079 -0.1716)
OKLCHoklch(33.65% 0.172 272.6)
XYZxyz(5.9498, 3.2788, 25.5134)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21208D #8C8D20
analogous
#20568D #21208D #58208D
triadic
#21208D #8D2120 #208D21
tetradic
#21208D #8D2056 #8C8D20 #208D58
square
#21208D #8D2056 #8C8D20 #208D58
split-complementary
#21208D #8D5820 #568D20
monochromatic
#0A0929 #15155B #21208D #2D2BBF #5150D7

Accessibility & contrast

On white

12.68
#21208D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#21208D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21208D
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21208D#FFFFFF#000000##FFFFFF
##21208D1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#002D8B
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #21208d;
/* rgb */ color: rgb(33, 32, 141);
/* oklch */ color: oklch(33.7% 0.172 272.6);
Tailwind
colors: {
  custom: {
    50: '#705db0',
    500: '#21208d',
    950: '#000000',
  },
}
SCSS
$custom: #21208d;
$custom-light: #705db0;
$custom-dark: #000000;
JSON
{
  "hex": "#21208d",
  "rgb": {
    "r": 33,
    "g": 32,
    "b": 141
  },
  "hsl": {
    "h": 240.55,
    "s": 63.006,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33654,
    "c": 0.17176,
    "h": 272.6
  },
  "luminance": 0.03279
}

Semantic roles & 50–950 ramp

primary
#21208D
secondary
#B9BA4E
accent
#E642E5
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #21208D

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

Preview Lab → · Contrast checker → · Palette generator →

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