#21239A#21239A

#21239A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.185 H 271.3°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#21239A
RGBrgb(33, 35, 154)
HSLhsl(239, 65%, 37%)
HSVhsv(239, 79%, 60%)
CMYKcmyk(78.6%, 77.3%, 0%, 39.6%)
CIE-LABlab(23.20, 41.23, -63.91)
CIE-LCHlch(23.20, 76.05, 302.83°)
OKLaboklab(35.55% 0.0041 -0.185)
OKLCHoklch(35.55% 0.185 271.3)
XYZxyz(7.0590, 3.8577, 30.9382)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21239A #9A9821
analogous
#21609A #21239A #5C219A
triadic
#21239A #9A2123 #239A21
tetradic
#21239A #9A2160 #9A9821 #219A5C
square
#21239A #9A2160 #9A9821 #219A5C
split-complementary
#21239A #9A5C21 #609A21
monochromatic
#0B0C35 #161868 #21239A #2C2ECC #5A5CDC

Accessibility & contrast

On white

11.85
#21239A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#21239A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21239A
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21239A#FFFFFF#000000##FFFFFF
##21239A1.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)
#003D9D
Deuteranopia (green-blind)
#003198
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #21239a;
/* rgb */ color: rgb(33, 35, 154);
/* oklch */ color: oklch(35.5% 0.185 271.3);
Tailwind
colors: {
  custom: {
    50: '#7360b9',
    500: '#21239a',
    950: '#000000',
  },
}
SCSS
$custom: #21239a;
$custom-light: #7360b9;
$custom-dark: #000000;
JSON
{
  "hex": "#21239a",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 154
  },
  "hsl": {
    "h": 239.008,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35547,
    "c": 0.18508,
    "h": 271.3
  },
  "luminance": 0.03858
}

Semantic roles & 50–950 ramp

primary
#21239A
secondary
#C0BE57
accent
#E540E8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090512
muted
#7B7981

Preview Lab

Preview with #21239A

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

Preview Lab → · Contrast checker → · Palette generator →

#21239A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva