#21208B#21208B

#21208B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.169 H 272.8°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#21208B
RGBrgb(33, 32, 139)
HSLhsl(241, 63%, 34%)
HSVhsv(241, 77%, 55%)
CMYKcmyk(76.3%, 77%, 0%, 45.5%)
CIE-LABlab(20.90, 37.81, -58.41)
CIE-LCHlch(20.90, 69.58, 302.91°)
OKLaboklab(33.43% 0.0083 -0.169)
OKLCHoklch(33.43% 0.169 272.8)
XYZxyz(5.8023, 3.2198, 24.7368)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21208B #8A8B20
analogous
#20548B #21208B #56208B
triadic
#21208B #8B2120 #208B21
tetradic
#21208B #8B2054 #8A8B20 #208B56
square
#21208B #8B2054 #8A8B20 #208B56
split-complementary
#21208B #8B5620 #548B20
monochromatic
#090928 #151559 #21208B #2D2BBD #504FD6

Accessibility & contrast

On white

12.77
#21208B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#21208B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21208B
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21208B#FFFFFF#000000##FFFFFF
##21208B1.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#002D89
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #21208b;
/* rgb */ color: rgb(33, 32, 139);
/* oklch */ color: oklch(33.4% 0.169 272.8);
Tailwind
colors: {
  custom: {
    50: '#6f5dae',
    500: '#21208b',
    950: '#000000',
  },
}
SCSS
$custom: #21208b;
$custom-light: #6f5dae;
$custom-dark: #000000;
JSON
{
  "hex": "#21208b",
  "rgb": {
    "r": 33,
    "g": 32,
    "b": 139
  },
  "hsl": {
    "h": 240.561,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33429,
    "c": 0.16923,
    "h": 272.8
  },
  "luminance": 0.0322
}

Semantic roles & 50–950 ramp

primary
#21208B
secondary
#B9BA4D
accent
#E642E4
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #21208B

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

Preview Lab → · Contrast checker → · Palette generator →

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