#21209D#21209D

#21209D is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.5% C 0.192 H 271.4°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#21209D
RGBrgb(33, 32, 157)
HSLhsl(240, 66%, 37%)
HSVhsv(240, 80%, 62%)
CMYKcmyk(79%, 79.6%, 0%, 38.4%)
CIE-LABlab(22.96, 43.88, -66.13)
CIE-LCHlch(22.96, 79.36, 303.57°)
OKLaboklab(35.49% 0.0046 -0.1914)
OKLCHoklch(35.49% 0.192 271.4)
XYZxyz(7.2275, 3.7899, 32.2424)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21209D #9C9D20
analogous
#205E9D #21209D #60209D
triadic
#21209D #9D2120 #209D21
tetradic
#21209D #9D205E #9C9D20 #209D60
square
#21209D #9D205E #9C9D20 #209D60
split-complementary
#21209D #9D6020 #5E9D20
monochromatic
#0C0B37 #16166A #21209D #2C2AD0 #5B5ADD

Accessibility & contrast

On white

11.94
#21209D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#21209D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21209D
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21209D#FFFFFF#000000##FFFFFF
##21209D1.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA0
Deuteranopia (green-blind)
#00309B
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #21209d;
/* rgb */ color: rgb(33, 32, 157);
/* oklch */ color: oklch(35.5% 0.192 271.4);
Tailwind
colors: {
  custom: {
    50: '#745ebb',
    500: '#21209d',
    950: '#000000',
  },
}
SCSS
$custom: #21209d;
$custom-light: #745ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#21209d",
  "rgb": {
    "r": 33,
    "g": 32,
    "b": 157
  },
  "hsl": {
    "h": 240.48,
    "s": 66.138,
    "l": 37.059
  },
  "oklch": {
    "l": 0.35485,
    "c": 0.1915,
    "h": 271.4
  },
  "luminance": 0.03791
}

Semantic roles & 50–950 ramp

primary
#21209D
secondary
#C1C157
accent
#E93FE8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #21209D

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

Preview Lab → · Contrast checker → · Palette generator →

#21209D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva