#20112E#20112E

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

Color values

HEX#20112E
RGBrgb(32, 17, 46)
HSLhsl(271, 46%, 12%)
HSVhsv(271, 63%, 18%)
CMYKcmyk(30.4%, 63%, 0%, 82%)
CIE-LABlab(8.18, 15.04, -16.58)
CIE-LCHlch(8.18, 22.38, 312.22°)
OKLaboklab(21.47% 0.0338 -0.0465)
OKLCHoklch(21.47% 0.058 306)
XYZxyz(1.2892, 0.9052, 2.6911)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20112E #1F2E11
analogous
#11112E #20112E #2E112E
triadic
#20112E #2E2011 #112E20
tetradic
#20112E #2E1111 #1F2E11 #112E2E
square
#20112E #2E1111 #1F2E11 #112E2E
split-complementary
#20112E #2E2E11 #112E11
monochromatic
#100816 #100816 #20112E #3F225B #5E3287

Accessibility & contrast

On white

17.78
#20112E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20112E
17.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20112E#FFFFFF#000000##FFFFFF
##20112E1.0017.781.1817.78
#FFFFFF17.781.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20112e;
/* rgb */ color: rgb(32, 17, 46);
/* oklch */ color: oklch(21.5% 0.058 306.0);
Tailwind
colors: {
  custom: {
    50: '#5c4f67',
    500: '#20112e',
    950: '#000000',
  },
}
SCSS
$custom: #20112e;
$custom-light: #5c4f67;
$custom-dark: #000000;
JSON
{
  "hex": "#20112e",
  "rgb": {
    "r": 32,
    "g": 17,
    "b": 46
  },
  "hsl": {
    "h": 271.034,
    "s": 46.032,
    "l": 12.353
  },
  "oklch": {
    "l": 0.21467,
    "c": 0.05753,
    "h": 306
  },
  "luminance": 0.00905
}

Semantic roles & 50–950 ramp

primary
#20112E
secondary
#4D6634
accent
#D65292
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040206
muted
#79787A

Preview Lab

Preview with #20112E

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

Preview Lab → · Contrast checker → · Palette generator →

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