#21207B#21207B

#21207B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.148 H 274.4°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#21207B
RGBrgb(33, 32, 123)
HSLhsl(241, 59%, 30%)
HSVhsv(241, 74%, 48%)
CMYKcmyk(73.2%, 74%, 0%, 51.8%)
CIE-LABlab(19.17, 32.18, -51.18)
CIE-LCHlch(19.17, 60.45, 302.16°)
OKLaboklab(31.67% 0.0113 -0.148)
OKLCHoklch(31.67% 0.148 274.4)
XYZxyz(4.7177, 2.7860, 19.0242)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21207B #7A7B20
analogous
#204D7B #21207B #4E207B
triadic
#21207B #7B2120 #207B21
tetradic
#21207B #7B204D #7A7B20 #207B4E
square
#21207B #7B204D #7A7B20 #207B4E
split-complementary
#21207B #7B4E20 #4D7B20
monochromatic
#07071A #14134A #21207B #2E2DAC #4846CF

Accessibility & contrast

On white

13.49
#21207B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#21207B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21207B
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21207B#FFFFFF#000000##FFFFFF
##21207B1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #21207b;
/* rgb */ color: rgb(33, 32, 123);
/* oklch */ color: oklch(31.7% 0.148 274.4);
Tailwind
colors: {
  custom: {
    50: '#6b5ca2',
    500: '#21207b',
    950: '#000000',
  },
}
SCSS
$custom: #21207b;
$custom-light: #6b5ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#21207b",
  "rgb": {
    "r": 33,
    "g": 32,
    "b": 123
  },
  "hsl": {
    "h": 240.659,
    "s": 58.71,
    "l": 30.392
  },
  "oklch": {
    "l": 0.31674,
    "c": 0.1484,
    "h": 274.4
  },
  "luminance": 0.02786
}

Semantic roles & 50–950 ramp

primary
#21207B
secondary
#ADAE49
accent
#E246E0
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #21207B

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

Preview Lab → · Contrast checker → · Palette generator →

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