#21237B#21237B

#21237B is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.2% C 0.145 H 273.7°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#21237B
RGBrgb(33, 35, 123)
HSLhsl(239, 58%, 31%)
HSVhsv(239, 73%, 48%)
CMYKcmyk(73.2%, 71.5%, 0%, 51.8%)
CIE-LABlab(19.86, 30.26, -50.03)
CIE-LCHlch(19.86, 58.47, 301.17°)
OKLaboklab(32.17% 0.0093 -0.1446)
OKLCHoklch(32.17% 0.145 273.7)
XYZxyz(4.8022, 2.9550, 19.0523)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21237B #7B7921
analogous
#21507B #21237B #4C217B
triadic
#21237B #7B2123 #237B21
tetradic
#21237B #7B2150 #7B7921 #217B4C
square
#21237B #7B2150 #7B7921 #217B4C
split-complementary
#21237B #7B4C21 #507B21
monochromatic
#07081A #14154B #21237B #2E31AB #484BCE

Accessibility & contrast

On white

13.20
#21237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#21237B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21237B
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21237B#FFFFFF#000000##FFFFFF
##21237B1.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#002C79
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #21237b;
/* rgb */ color: rgb(33, 35, 123);
/* oklch */ color: oklch(32.2% 0.145 273.7);
Tailwind
colors: {
  custom: {
    50: '#6b5ea2',
    500: '#21237b',
    950: '#000000',
  },
}
SCSS
$custom: #21237b;
$custom-light: #6b5ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#21237b",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 238.667,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32175,
    "c": 0.14492,
    "h": 273.7
  },
  "luminance": 0.02955
}

Semantic roles & 50–950 ramp

primary
#21237B
secondary
#AEAC4A
accent
#DE47E1
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #21237B

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

Preview Lab → · Contrast checker → · Palette generator →

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