#21237A#21237A

#21237A is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.144 H 273.8°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#21237A
RGBrgb(33, 35, 122)
HSLhsl(239, 57%, 30%)
HSVhsv(239, 73%, 48%)
CMYKcmyk(73%, 71.3%, 0%, 52.2%)
CIE-LABlab(19.76, 29.90, -49.56)
CIE-LCHlch(19.76, 57.88, 301.10°)
OKLaboklab(32.07% 0.0095 -0.1432)
OKLCHoklch(32.07% 0.144 273.8)
XYZxyz(4.7399, 2.9301, 18.7243)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21237A #7A7821
analogous
#214F7A #21237A #4C217A
triadic
#21237A #7A2123 #237A21
tetradic
#21237A #7A214F #7A7821 #217A4C
square
#21237A #7A214F #7A7821 #217A4C
split-complementary
#21237A #7A4C21 #4F7A21
monochromatic
#07071A #14154A #21237A #2E31AA #484BCD

Accessibility & contrast

On white

13.24
#21237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21237A
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21237A#FFFFFF#000000##FFFFFF
##21237A1.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#002C78
Tritanopia (blue-blind)
#003B4B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #21237a;
/* rgb */ color: rgb(33, 35, 122);
/* oklch */ color: oklch(32.1% 0.144 273.8);
Tailwind
colors: {
  custom: {
    50: '#6a5ea1',
    500: '#21237a',
    950: '#000000',
  },
}
SCSS
$custom: #21237a;
$custom-light: #6a5ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#21237a",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 238.652,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32071,
    "c": 0.14356,
    "h": 273.8
  },
  "luminance": 0.02931
}

Semantic roles & 50–950 ramp

primary
#21237A
secondary
#ADAB4A
accent
#DD47E1
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #21237A

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

Preview Lab → · Contrast checker → · Palette generator →

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