#21208F#21208F

#21208F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.9% C 0.174 H 272.5°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#21208F
RGBrgb(33, 32, 143)
HSLhsl(241, 63%, 34%)
HSVhsv(241, 78%, 56%)
CMYKcmyk(76.9%, 77.6%, 0%, 43.9%)
CIE-LABlab(21.35, 39.18, -60.16)
CIE-LCHlch(21.35, 71.79, 303.08°)
OKLaboklab(33.88% 0.0075 -0.1741)
OKLCHoklch(33.88% 0.174 272.5)
XYZxyz(6.1000, 3.3389, 26.3043)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21208F #8E8F20
analogous
#20568F #21208F #59208F
triadic
#21208F #8F2120 #208F21
tetradic
#21208F #8F2056 #8E8F20 #208F59
square
#21208F #8F2056 #8E8F20 #208F59
split-complementary
#21208F #8F5920 #568F20
monochromatic
#0A0A2B #15155D #21208F #2D2BC1 #5251D8

Accessibility & contrast

On white

12.59
#21208F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#21208F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21208F
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21208F#FFFFFF#000000##FFFFFF
##21208F1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#002E8D
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #21208f;
/* rgb */ color: rgb(33, 32, 143);
/* oklch */ color: oklch(33.9% 0.174 272.5);
Tailwind
colors: {
  custom: {
    50: '#705db1',
    500: '#21208f',
    950: '#000000',
  },
}
SCSS
$custom: #21208f;
$custom-light: #705db1;
$custom-dark: #000000;
JSON
{
  "hex": "#21208f",
  "rgb": {
    "r": 33,
    "g": 32,
    "b": 143
  },
  "hsl": {
    "h": 240.541,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3388,
    "c": 0.17428,
    "h": 272.5
  },
  "luminance": 0.0334
}

Semantic roles & 50–950 ramp

primary
#21208F
secondary
#BABB4F
accent
#E641E5
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #21208F

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

Preview Lab → · Contrast checker → · Palette generator →

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