#21225D#21225D

#21225D is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.1% C 0.103 H 277.1°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#21225D
RGBrgb(33, 34, 93)
HSLhsl(239, 48%, 25%)
HSVhsv(239, 65%, 36%)
CMYKcmyk(64.5%, 63.4%, 0%, 63.5%)
CIE-LABlab(16.78, 19.71, -35.54)
CIE-LCHlch(16.78, 40.64, 299.01°)
OKLaboklab(29.06% 0.0128 -0.1021)
OKLCHoklch(29.06% 0.103 277.1)
XYZxyz(3.1744, 2.2575, 10.6223)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21225D #5D5C21
analogous
#21405D #21225D #3E215D
triadic
#21225D #5D2122 #225D21
tetradic
#21225D #5D2140 #5D5C21 #215D3E
square
#21225D #5D2140 #5D5C21 #215D3E
split-complementary
#21225D #5D3E21 #405D21
monochromatic
#080817 #111130 #21225D #31338A #4143B7

Accessibility & contrast

On white

14.47
#21225D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#21225D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21225D
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21225D#FFFFFF#000000##FFFFFF
##21225D1.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5F
Deuteranopia (green-blind)
#00275C
Tritanopia (blue-blind)
#00303B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #21225d;
/* rgb */ color: rgb(33, 34, 93);
/* oklch */ color: oklch(29.1% 0.103 277.1);
Tailwind
colors: {
  custom: {
    50: '#645d8b',
    500: '#21225d',
    950: '#000000',
  },
}
SCSS
$custom: #21225d;
$custom-light: #645d8b;
$custom-dark: #000000;
JSON
{
  "hex": "#21225d",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 93
  },
  "hsl": {
    "h": 239,
    "s": 47.619,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29057,
    "c": 0.10295,
    "h": 277.1
  },
  "luminance": 0.02258
}

Semantic roles & 50–950 ramp

primary
#21225D
secondary
#919049
accent
#D551D7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #21225D

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

Preview Lab → · Contrast checker → · Palette generator →

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