#21237E#21237E

#21237E is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.149 H 273.4°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#21237E
RGBrgb(33, 35, 126)
HSLhsl(239, 58%, 31%)
HSVhsv(239, 74%, 49%)
CMYKcmyk(73.8%, 72.2%, 0%, 50.6%)
CIE-LABlab(20.17, 31.36, -51.44)
CIE-LCHlch(20.17, 60.24, 301.37°)
OKLaboklab(32.49% 0.0089 -0.1487)
OKLCHoklch(32.49% 0.149 273.4)
XYZxyz(4.9929, 3.0313, 20.0566)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21237E #7E7C21
analogous
#21517E #21237E #4D217E
triadic
#21237E #7E2123 #237E21
tetradic
#21237E #7E2151 #7E7C21 #217E4D
square
#21237E #7E2151 #7E7C21 #217E4D
split-complementary
#21237E #7E4D21 #517E21
monochromatic
#08081D #14164E #21237E #2E30AE #4A4DD0

Accessibility & contrast

On white

13.07
#21237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#21237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21237E
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21237E#FFFFFF#000000##FFFFFF
##21237E1.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #21237e;
/* rgb */ color: rgb(33, 35, 126);
/* oklch */ color: oklch(32.5% 0.149 273.4);
Tailwind
colors: {
  custom: {
    50: '#6b5ea4',
    500: '#21237e',
    950: '#000000',
  },
}
SCSS
$custom: #21237e;
$custom-light: #6b5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#21237e",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 238.71,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32488,
    "c": 0.149,
    "h": 273.4
  },
  "luminance": 0.03032
}

Semantic roles & 50–950 ramp

primary
#21237E
secondary
#B1AF4A
accent
#DE46E2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #21237E

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

Preview Lab → · Contrast checker → · Palette generator →

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