#21237C#21237C

#21237C is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.3% C 0.146 H 273.6°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#21237C
RGBrgb(33, 35, 124)
HSLhsl(239, 58%, 31%)
HSVhsv(239, 73%, 49%)
CMYKcmyk(73.4%, 71.8%, 0%, 51.4%)
CIE-LABlab(19.96, 30.63, -50.50)
CIE-LCHlch(19.96, 59.06, 301.24°)
OKLaboklab(32.28% 0.0092 -0.146)
OKLCHoklch(32.28% 0.146 273.6)
XYZxyz(4.8651, 2.9802, 19.3837)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21237C #7C7A21
analogous
#21507C #21237C #4C217C
triadic
#21237C #7C2123 #237C21
tetradic
#21237C #7C2150 #7C7A21 #217C4C
square
#21237C #7C2150 #7C7A21 #217C4C
split-complementary
#21237C #7C4C21 #507C21
monochromatic
#07081B #14154C #21237C #2E31AC #494CCF

Accessibility & contrast

On white

13.16
#21237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21237C
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21237C#FFFFFF#000000##FFFFFF
##21237C1.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21237c;
/* rgb */ color: rgb(33, 35, 124);
/* oklch */ color: oklch(32.3% 0.146 273.6);
Tailwind
colors: {
  custom: {
    50: '#6b5ea3',
    500: '#21237c',
    950: '#000000',
  },
}
SCSS
$custom: #21237c;
$custom-light: #6b5ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#21237c",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 238.681,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32279,
    "c": 0.14629,
    "h": 273.6
  },
  "luminance": 0.02981
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21237C

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

Preview Lab → · Contrast checker → · Palette generator →

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