#20072E#20072E

#20072E is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.7% C 0.077 H 310.7°. Best body text is #FFFFFF at 18.56:1 contrast (WCAG AA passes).

Color values

HEX#20072E
RGBrgb(32, 7, 46)
HSLhsl(278, 74%, 10%)
HSVhsv(278, 85%, 18%)
CMYKcmyk(30.4%, 84.8%, 0%, 82%)
CIE-LABlab(5.93, 20.75, -20.15)
CIE-LCHlch(5.93, 28.93, 315.85°)
OKLaboklab(19.68% 0.0499 -0.058)
OKLCHoklch(19.68% 0.077 310.7)
XYZxyz(1.1647, 0.6563, 2.6496)
Luminance0.0066 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20072E #152E07
analogous
#0D072E #20072E #2E0728
triadic
#20072E #2E2007 #072E20
tetradic
#20072E #2E0D07 #152E07 #07282E
square
#20072E #2E0D07 #152E07 #07282E
split-complementary
#20072E #282E07 #072E0D
monochromatic
#12041B #12041B #20072E #450F63 #6A1798

Accessibility & contrast

On white

18.56
#20072E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#20072E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20072E
18.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20072E#FFFFFF#000000##FFFFFF
##20072E1.0018.561.1318.56
#FFFFFF18.561.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122F
Deuteranopia (green-blind)
#03142D
Tritanopia (blue-blind)
#1E0F19
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #20072e;
/* rgb */ color: rgb(32, 7, 46);
/* oklch */ color: oklch(19.7% 0.077 310.7);
Tailwind
colors: {
  custom: {
    50: '#5d4967',
    500: '#20072e',
    950: '#000000',
  },
}
SCSS
$custom: #20072e;
$custom-light: #5d4967;
$custom-dark: #000000;
JSON
{
  "hex": "#20072e",
  "rgb": {
    "r": 32,
    "g": 7,
    "b": 46
  },
  "hsl": {
    "h": 278.462,
    "s": 73.585,
    "l": 10.392
  },
  "oklch": {
    "l": 0.1968,
    "c": 0.07654,
    "h": 310.7
  },
  "luminance": 0.00656
}

Semantic roles & 50–950 ramp

primary
#20072E
secondary
#3E6E23
accent
#F0387A
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A

Preview Lab

Preview with #20072E

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

Preview Lab → · Contrast checker → · Palette generator →

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