#21225B#21225B

#21225B is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.9% C 0.100 H 277.4°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#21225B
RGBrgb(33, 34, 91)
HSLhsl(239, 47%, 24%)
HSVhsv(239, 64%, 36%)
CMYKcmyk(63.7%, 62.6%, 0%, 64.3%)
CIE-LABlab(16.61, 18.95, -34.49)
CIE-LCHlch(16.61, 39.35, 298.78°)
OKLaboklab(28.88% 0.0128 -0.099)
OKLCHoklch(28.88% 0.1 277.4)
XYZxyz(3.0869, 2.2225, 10.1618)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21225B #5B5A21
analogous
#213F5B #21225B #3D215B
triadic
#21225B #5B2122 #225B21
tetradic
#21225B #5B213F #5B5A21 #215B3D
square
#21225B #5B213F #5B5A21 #215B3D
split-complementary
#21225B #5B3D21 #3F5B21
monochromatic
#080816 #11112E #21225B #313388 #4244B5

Accessibility & contrast

On white

14.54
#21225B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#21225B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21225B
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21225B#FFFFFF#000000##FFFFFF
##21225B1.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5D
Deuteranopia (green-blind)
#00275A
Tritanopia (blue-blind)
#00303A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #21225b;
/* rgb */ color: rgb(33, 34, 91);
/* oklch */ color: oklch(28.9% 0.100 277.4);
Tailwind
colors: {
  custom: {
    50: '#635d8a',
    500: '#21225b',
    950: '#000000',
  },
}
SCSS
$custom: #21225b;
$custom-light: #635d8a;
$custom-dark: #000000;
JSON
{
  "hex": "#21225b",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 91
  },
  "hsl": {
    "h": 238.966,
    "s": 46.774,
    "l": 24.314
  },
  "oklch": {
    "l": 0.28878,
    "c": 0.09988,
    "h": 277.4
  },
  "luminance": 0.02223
}

Semantic roles & 50–950 ramp

primary
#21225B
secondary
#8F8E49
accent
#D451D6
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #21225B

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

Preview Lab → · Contrast checker → · Palette generator →

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