#21215D#21215D

#21215D is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.9% C 0.104 H 277.6°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#21215D
RGBrgb(33, 33, 93)
HSLhsl(240, 48%, 25%)
HSVhsv(240, 65%, 36%)
CMYKcmyk(64.5%, 64.5%, 0%, 63.5%)
CIE-LABlab(16.51, 20.42, -35.99)
CIE-LCHlch(16.51, 41.38, 299.56°)
OKLaboklab(28.85% 0.0139 -0.1035)
OKLCHoklch(28.85% 0.104 277.6)
XYZxyz(3.1462, 2.2011, 10.6129)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21215D #5D5D21
analogous
#213F5D #21215D #3F215D
triadic
#21215D #5D2121 #215D21
tetradic
#21215D #5D213F #5D5D21 #215D3F
square
#21215D #5D213F #5D5D21 #215D3F
split-complementary
#21215D #5D3F21 #3F5D21
monochromatic
#080817 #111130 #21215D #31318A #4141B7

Accessibility & contrast

On white

14.58
#21215D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#21215D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21215D
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21215D#FFFFFF#000000##FFFFFF
##21215D1.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21215d;
/* rgb */ color: rgb(33, 33, 93);
/* oklch */ color: oklch(28.9% 0.104 277.6);
Tailwind
colors: {
  custom: {
    50: '#645c8b',
    500: '#21215d',
    950: '#000000',
  },
}
SCSS
$custom: #21215d;
$custom-light: #645c8b;
$custom-dark: #000000;
JSON
{
  "hex": "#21215d",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 93
  },
  "hsl": {
    "h": 240,
    "s": 47.619,
    "l": 24.706
  },
  "oklch": {
    "l": 0.28854,
    "c": 0.1044,
    "h": 277.6
  },
  "luminance": 0.02201
}

Semantic roles & 50–950 ramp

primary
#21215D
secondary
#919149
accent
#D751D7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #21215D

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

Preview Lab → · Contrast checker → · Palette generator →

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