#21102B#21102B

#21102B is a very dark, muted violet. Relative luminance 0.009; OKLCH L 21.2% C 0.056 H 311.6°. Best body text is #FFFFFF at 17.89:1 contrast (WCAG AA passes).

Color values

HEX#21102B
RGBrgb(33, 16, 43)
HSLhsl(278, 46%, 12%)
HSVhsv(278, 63%, 17%)
CMYKcmyk(23.3%, 62.8%, 0%, 83.1%)
CIE-LABlab(7.84, 15.20, -14.86)
CIE-LCHlch(7.84, 21.26, 315.64°)
OKLaboklab(21.19% 0.0369 -0.0415)
OKLCHoklch(21.19% 0.056 311.6)
XYZxyz(1.2485, 0.8684, 2.3869)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21102B #1A2B10
analogous
#14102B #21102B #2B1028
triadic
#21102B #2B2110 #102B21
tetradic
#21102B #2B1410 #1A2B10 #10282B
square
#21102B #2B1410 #1A2B10 #10282B
split-complementary
#21102B #282B10 #102B14
monochromatic
#110816 #110816 #21102B #432158 #653184

Accessibility & contrast

On white

17.89
#21102B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#21102B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21102B
17.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21102B#FFFFFF#000000##FFFFFF
##21102B1.0017.891.1717.89
#FFFFFF17.891.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09162C
Deuteranopia (green-blind)
#0E182A
Tritanopia (blue-blind)
#20141B
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #21102b;
/* rgb */ color: rgb(33, 16, 43);
/* oklch */ color: oklch(21.2% 0.056 311.6);
Tailwind
colors: {
  custom: {
    50: '#5d4e64',
    500: '#21102b',
    950: '#000000',
  },
}
SCSS
$custom: #21102b;
$custom-light: #5d4e64;
$custom-dark: #000000;
JSON
{
  "hex": "#21102b",
  "rgb": {
    "r": 33,
    "g": 16,
    "b": 43
  },
  "hsl": {
    "h": 277.778,
    "s": 45.763,
    "l": 11.569
  },
  "oklch": {
    "l": 0.21187,
    "c": 0.05551,
    "h": 311.6
  },
  "luminance": 0.00868
}

Semantic roles & 50–950 ramp

primary
#21102B
secondary
#456433
accent
#D55283
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040105
muted
#79777A

Preview Lab

Preview with #21102B

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

Preview Lab → · Contrast checker → · Palette generator →

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