#21208C#21208C

#21208C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.171 H 272.7°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#21208C
RGBrgb(33, 32, 140)
HSLhsl(241, 63%, 34%)
HSVhsv(241, 77%, 55%)
CMYKcmyk(76.4%, 77.1%, 0%, 45.1%)
CIE-LABlab(21.02, 38.15, -58.85)
CIE-LCHlch(21.02, 70.13, 302.96°)
OKLaboklab(33.54% 0.0081 -0.1703)
OKLCHoklch(33.54% 0.171 272.7)
XYZxyz(5.8757, 3.2492, 25.1234)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21208C #8B8C20
analogous
#20558C #21208C #57208C
triadic
#21208C #8C2120 #208C21
tetradic
#21208C #8C2055 #8B8C20 #208C57
square
#21208C #8C2055 #8B8C20 #208C57
split-complementary
#21208C #8C5720 #558C20
monochromatic
#0A0928 #15155A #21208C #2D2BBE #5150D7

Accessibility & contrast

On white

12.73
#21208C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#21208C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21208C
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21208C#FFFFFF#000000##FFFFFF
##21208C1.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#002D8A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #21208c;
/* rgb */ color: rgb(33, 32, 140);
/* oklch */ color: oklch(33.5% 0.171 272.7);
Tailwind
colors: {
  custom: {
    50: '#6f5daf',
    500: '#21208c',
    950: '#000000',
  },
}
SCSS
$custom: #21208c;
$custom-light: #6f5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#21208c",
  "rgb": {
    "r": 33,
    "g": 32,
    "b": 140
  },
  "hsl": {
    "h": 240.556,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.33542,
    "c": 0.1705,
    "h": 272.7
  },
  "luminance": 0.0325
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21208C

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

Preview Lab → · Contrast checker → · Palette generator →

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