#21102C#21102C

#21102C is a very dark, muted violet. Relative luminance 0.009; OKLCH L 21.3% C 0.057 H 310.5°. Best body text is #FFFFFF at 17.87:1 contrast (WCAG AA passes).

Color values

HEX#21102C
RGBrgb(33, 16, 44)
HSLhsl(276, 47%, 12%)
HSVhsv(276, 64%, 17%)
CMYKcmyk(25%, 63.6%, 0%, 82.7%)
CIE-LABlab(7.91, 15.49, -15.50)
CIE-LCHlch(7.91, 21.91, 314.98°)
OKLaboklab(21.26% 0.037 -0.0434)
OKLCHoklch(21.26% 0.057 310.5)
XYZxyz(1.2670, 0.8758, 2.4847)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21102C #1B2C10
analogous
#13102C #21102C #2C1029
triadic
#21102C #2C2110 #102C21
tetradic
#21102C #2C1310 #1B2C10 #10292C
square
#21102C #2C1310 #1B2C10 #10292C
split-complementary
#21102C #292C10 #102C13
monochromatic
#110816 #110816 #21102C #432059 #643186

Accessibility & contrast

On white

17.87
#21102C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#21102C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21102C
17.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21102C#FFFFFF#000000##FFFFFF
##21102C1.0017.871.1817.87
#FFFFFF17.871.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09172D
Deuteranopia (green-blind)
#0E182B
Tritanopia (blue-blind)
#20151C
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #21102c;
/* rgb */ color: rgb(33, 16, 44);
/* oklch */ color: oklch(21.3% 0.057 310.5);
Tailwind
colors: {
  custom: {
    50: '#5d4e65',
    500: '#21102c',
    950: '#000000',
  },
}
SCSS
$custom: #21102c;
$custom-light: #5d4e65;
$custom-dark: #000000;
JSON
{
  "hex": "#21102c",
  "rgb": {
    "r": 33,
    "g": 16,
    "b": 44
  },
  "hsl": {
    "h": 276.429,
    "s": 46.667,
    "l": 11.765
  },
  "oklch": {
    "l": 0.21259,
    "c": 0.057,
    "h": 310.5
  },
  "luminance": 0.00876
}

Semantic roles & 50–950 ramp

primary
#21102C
secondary
#476533
accent
#D65186
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040105
muted
#79777A

Preview Lab

Preview with #21102C

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

Preview Lab → · Contrast checker → · Palette generator →

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