#21207E#21207E

#21207E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.152 H 274.0°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#21207E
RGBrgb(33, 32, 126)
HSLhsl(241, 59%, 31%)
HSVhsv(241, 75%, 49%)
CMYKcmyk(73.8%, 74.6%, 0%, 50.6%)
CIE-LABlab(19.48, 33.25, -52.56)
CIE-LCHlch(19.48, 62.20, 302.32°)
OKLaboklab(32% 0.0107 -0.152)
OKLCHoklch(32% 0.152 274)
XYZxyz(4.9084, 2.8622, 20.0284)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21207E #7D7E20
analogous
#204E7E #21207E #50207E
triadic
#21207E #7E2120 #207E21
tetradic
#21207E #7E204E #7D7E20 #207E50
square
#21207E #7E204E #7D7E20 #207E50
split-complementary
#21207E #7E5020 #4E7E20
monochromatic
#07071C #14144D #21207E #2E2CAF #4948D0

Accessibility & contrast

On white

13.35
#21207E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#21207E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21207E
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21207E#FFFFFF#000000##FFFFFF
##21207E1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #21207e;
/* rgb */ color: rgb(33, 32, 126);
/* oklch */ color: oklch(32.0% 0.152 274.0);
Tailwind
colors: {
  custom: {
    50: '#6c5ca4',
    500: '#21207e',
    950: '#000000',
  },
}
SCSS
$custom: #21207e;
$custom-light: #6c5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#21207e",
  "rgb": {
    "r": 33,
    "g": 32,
    "b": 126
  },
  "hsl": {
    "h": 240.638,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.31997,
    "c": 0.15239,
    "h": 274
  },
  "luminance": 0.02863
}

Semantic roles & 50–950 ramp

primary
#21207E
secondary
#B0B149
accent
#E345E1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #21207E

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

Preview Lab → · Contrast checker → · Palette generator →

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