#21112E#21112E

#21112E is a very dark, muted violet. Relative luminance 0.009; OKLCH L 21.6% C 0.058 H 307.7°. Best body text is #FFFFFF at 17.73:1 contrast (WCAG AA passes).

Color values

HEX#21112E
RGBrgb(33, 17, 46)
HSLhsl(273, 46%, 12%)
HSVhsv(273, 63%, 18%)
CMYKcmyk(28.3%, 63%, 0%, 82%)
CIE-LABlab(8.32, 15.38, -16.34)
CIE-LCHlch(8.32, 22.44, 313.27°)
OKLaboklab(21.61% 0.0355 -0.0458)
OKLCHoklch(21.61% 0.058 307.7)
XYZxyz(1.3207, 0.9215, 2.6925)
Luminance0.0092 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21112E #1E2E11
analogous
#12112E #21112E #2E112D
triadic
#21112E #2E2111 #112E21
tetradic
#21112E #2E1211 #1E2E11 #112D2E
square
#21112E #2E1211 #1E2E11 #112D2E
split-complementary
#21112E #2D2E11 #112E12
monochromatic
#100816 #100816 #21112E #41225B #613287

Accessibility & contrast

On white

17.73
#21112E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#21112E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21112E
17.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21112E#FFFFFF#000000##FFFFFF
##21112E1.0017.731.1817.73
#FFFFFF17.731.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09182F
Deuteranopia (green-blind)
#0D182D
Tritanopia (blue-blind)
#1F161D
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #21112e;
/* rgb */ color: rgb(33, 17, 46);
/* oklch */ color: oklch(21.6% 0.058 307.7);
Tailwind
colors: {
  custom: {
    50: '#5d4f67',
    500: '#21112e',
    950: '#000000',
  },
}
SCSS
$custom: #21112e;
$custom-light: #5d4f67;
$custom-dark: #000000;
JSON
{
  "hex": "#21112e",
  "rgb": {
    "r": 33,
    "g": 17,
    "b": 46
  },
  "hsl": {
    "h": 273.103,
    "s": 46.032,
    "l": 12.353
  },
  "oklch": {
    "l": 0.21606,
    "c": 0.05792,
    "h": 307.7
  },
  "luminance": 0.00921
}

Semantic roles & 50–950 ramp

primary
#21112E
secondary
#4B6634
accent
#D6528D
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040206
muted
#79787A

Preview Lab

Preview with #21112E

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

Preview Lab → · Contrast checker → · Palette generator →

#21112E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva