#21206B#21206B

#21206B is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.0% C 0.126 H 276.2°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#21206B
RGBrgb(33, 32, 107)
HSLhsl(241, 54%, 27%)
HSVhsv(241, 70%, 42%)
CMYKcmyk(69.2%, 70.1%, 0%, 58%)
CIE-LABlab(17.54, 26.34, -43.53)
CIE-LCHlch(17.54, 50.88, 301.18°)
OKLaboklab(30.01% 0.0137 -0.1256)
OKLCHoklch(30.01% 0.126 276.2)
XYZxyz(3.7967, 2.4176, 14.1736)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21206B #6A6B20
analogous
#20456B #21206B #47206B
triadic
#21206B #6B2120 #206B21
tetradic
#21206B #6B2045 #6A6B20 #206B47
square
#21206B #6B2045 #6A6B20 #206B47
split-complementary
#21206B #6B4720 #456B20
monochromatic
#070718 #12123C #21206B #302E9A #4140C6

Accessibility & contrast

On white

14.15
#21206B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#21206B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21206B
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21206B#FFFFFF#000000##FFFFFF
##21206B1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6D
Deuteranopia (green-blind)
#00286A
Tritanopia (blue-blind)
#003442
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #21206b;
/* rgb */ color: rgb(33, 32, 107);
/* oklch */ color: oklch(30.0% 0.126 276.2);
Tailwind
colors: {
  custom: {
    50: '#675c96',
    500: '#21206b',
    950: '#000000',
  },
}
SCSS
$custom: #21206b;
$custom-light: #675c96;
$custom-dark: #000000;
JSON
{
  "hex": "#21206b",
  "rgb": {
    "r": 33,
    "g": 32,
    "b": 107
  },
  "hsl": {
    "h": 240.8,
    "s": 53.957,
    "l": 27.255
  },
  "oklch": {
    "l": 0.3001,
    "c": 0.12635,
    "h": 276.2
  },
  "luminance": 0.02418
}

Semantic roles & 50–950 ramp

primary
#21206B
secondary
#9E9F48
accent
#DD4ADB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #21206B

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

Preview Lab → · Contrast checker → · Palette generator →

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