#21237D#21237D

#21237D is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.4% C 0.148 H 273.5°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#21237D
RGBrgb(33, 35, 125)
HSLhsl(239, 58%, 31%)
HSVhsv(239, 74%, 49%)
CMYKcmyk(73.6%, 72%, 0%, 51%)
CIE-LABlab(20.07, 30.99, -50.97)
CIE-LCHlch(20.07, 59.65, 301.30°)
OKLaboklab(32.38% 0.0091 -0.1474)
OKLCHoklch(32.38% 0.148 273.5)
XYZxyz(4.9287, 3.0056, 19.7185)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21237D #7D7B21
analogous
#21517D #21237D #4D217D
triadic
#21237D #7D2123 #237D21
tetradic
#21237D #7D2151 #7D7B21 #217D4D
square
#21237D #7D2151 #7D7B21 #217D4D
split-complementary
#21237D #7D4D21 #517D21
monochromatic
#07081C #14154D #21237D #2E31AD #494CCF

Accessibility & contrast

On white

13.12
#21237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#21237D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21237D
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21237D#FFFFFF#000000##FFFFFF
##21237D1.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#002C7B
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #21237d;
/* rgb */ color: rgb(33, 35, 125);
/* oklch */ color: oklch(32.4% 0.148 273.5);
Tailwind
colors: {
  custom: {
    50: '#6b5ea4',
    500: '#21237d',
    950: '#000000',
  },
}
SCSS
$custom: #21237d;
$custom-light: #6b5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#21237d",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 238.696,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32383,
    "c": 0.14764,
    "h": 273.5
  },
  "luminance": 0.03006
}

Semantic roles & 50–950 ramp

primary
#21237D
secondary
#B0AE4A
accent
#DE46E1
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #21237D

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

Preview Lab → · Contrast checker → · Palette generator →

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