#21104D#21104D

#21104D is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.2% C 0.105 H 288.8°. Best body text is #FFFFFF at 16.85:1 contrast (WCAG AA passes).

Color values

HEX#21104D
RGBrgb(33, 16, 77)
HSLhsl(257, 66%, 18%)
HSVhsv(257, 79%, 30%)
CMYKcmyk(57.1%, 79.2%, 0%, 69.8%)
CIE-LABlab(10.77, 26.04, -34.50)
CIE-LCHlch(10.77, 43.23, 307.04°)
OKLaboklab(24.23% 0.0338 -0.0991)
OKLCHoklch(24.23% 0.105 288.8)
XYZxyz(2.1517, 1.2296, 7.1437)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21104D #3C4D10
analogous
#101D4D #21104D #3F104D
triadic
#21104D #4D2110 #104D21
tetradic
#21104D #4D101D #3C4D10 #104D3F
square
#21104D #4D101D #3C4D10 #104D3F
split-complementary
#21104D #4D3F10 #1D4D10
monochromatic
#0B0519 #0B051A #21104D #371B80 #4C25B2

Accessibility & contrast

On white

16.85
#21104D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#21104D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21104D
16.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21104D#FFFFFF#000000##FFFFFF
##21104D1.0016.851.2516.85
#FFFFFF16.851.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4F
Deuteranopia (green-blind)
#001B4C
Tritanopia (blue-blind)
#11202D
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #21104d;
/* rgb */ color: rgb(33, 16, 77);
/* oklch */ color: oklch(24.2% 0.105 288.8);
Tailwind
colors: {
  custom: {
    50: '#62507f',
    500: '#21104d',
    950: '#000000',
  },
}
SCSS
$custom: #21104d;
$custom-light: #62507f;
$custom-dark: #000000;
JSON
{
  "hex": "#21104d",
  "rgb": {
    "r": 33,
    "g": 16,
    "b": 77
  },
  "hsl": {
    "h": 256.721,
    "s": 65.591,
    "l": 18.235
  },
  "oklch": {
    "l": 0.24232,
    "c": 0.10473,
    "h": 288.8
  },
  "luminance": 0.0123
}

Semantic roles & 50–950 ramp

primary
#21104D
secondary
#6F8732
accent
#E93FB9
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #21104D

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

Preview Lab → · Contrast checker → · Palette generator →

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