#21209F#21209F

#21209F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.194 H 271.2°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#21209F
RGBrgb(33, 32, 159)
HSLhsl(240, 66%, 37%)
HSVhsv(240, 80%, 62%)
CMYKcmyk(79.2%, 79.9%, 0%, 37.6%)
CIE-LABlab(23.20, 44.54, -66.96)
CIE-LCHlch(23.20, 80.42, 303.63°)
OKLaboklab(35.72% 0.0042 -0.1938)
OKLCHoklch(35.72% 0.194 271.2)
XYZxyz(7.3996, 3.8587, 33.1490)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21209F #9E9F20
analogous
#205F9F #21209F #60209F
triadic
#21209F #9F2120 #209F21
tetradic
#21209F #9F205F #9E9F20 #209F60
square
#21209F #9F205F #9E9F20 #209F60
split-complementary
#21209F #9F6020 #5F9F20
monochromatic
#0C0B39 #16166C #21209F #2C2AD2 #5C5BDE

Accessibility & contrast

On white

11.85
#21209F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#21209F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21209F
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21209F#FFFFFF#000000##FFFFFF
##21209F1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00319D
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #21209f;
/* rgb */ color: rgb(33, 32, 159);
/* oklch */ color: oklch(35.7% 0.194 271.2);
Tailwind
colors: {
  custom: {
    50: '#745ebd',
    500: '#21209f',
    950: '#000000',
  },
}
SCSS
$custom: #21209f;
$custom-light: #745ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#21209f",
  "rgb": {
    "r": 33,
    "g": 32,
    "b": 159
  },
  "hsl": {
    "h": 240.472,
    "s": 66.492,
    "l": 37.451
  },
  "oklch": {
    "l": 0.35717,
    "c": 0.19389,
    "h": 271.2
  },
  "luminance": 0.0386
}

Semantic roles & 50–950 ramp

primary
#21209F
secondary
#C1C259
accent
#E93EE8
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #21209F

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

Preview Lab → · Contrast checker → · Palette generator →

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