#20072F#20072F

#20072F is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.8% C 0.078 H 309.8°. Best body text is #FFFFFF at 18.54:1 contrast (WCAG AA passes).

Color values

HEX#20072F
RGBrgb(32, 7, 47)
HSLhsl(278, 74%, 11%)
HSVhsv(278, 85%, 18%)
CMYKcmyk(31.9%, 85.1%, 0%, 81.6%)
CIE-LABlab(6.00, 21.10, -20.78)
CIE-LCHlch(6.00, 29.61, 315.43°)
OKLaboklab(19.77% 0.0498 -0.0598)
OKLCHoklch(19.77% 0.078 309.8)
XYZxyz(1.1846, 0.6643, 2.7546)
Luminance0.0066 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20072F #162F07
analogous
#0C072F #20072F #2F072A
triadic
#20072F #2F2007 #072F20
tetradic
#20072F #2F0C07 #162F07 #072A2F
square
#20072F #2F0C07 #162F07 #072A2F
split-complementary
#20072F #2A2F07 #072F0C
monochromatic
#12041B #12041B #20072F #440F64 #69179A

Accessibility & contrast

On white

18.54
#20072F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20072F
18.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20072F#FFFFFF#000000##FFFFFF
##20072F1.0018.541.1318.54
#FFFFFF18.541.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001230
Deuteranopia (green-blind)
#02142E
Tritanopia (blue-blind)
#1E101A
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #20072f;
/* rgb */ color: rgb(32, 7, 47);
/* oklch */ color: oklch(19.8% 0.078 309.8);
Tailwind
colors: {
  custom: {
    50: '#5d4968',
    500: '#20072f',
    950: '#000000',
  },
}
SCSS
$custom: #20072f;
$custom-light: #5d4968;
$custom-dark: #000000;
JSON
{
  "hex": "#20072f",
  "rgb": {
    "r": 32,
    "g": 7,
    "b": 47
  },
  "hsl": {
    "h": 277.5,
    "s": 74.074,
    "l": 10.588
  },
  "oklch": {
    "l": 0.1977,
    "c": 0.07779,
    "h": 309.8
  },
  "luminance": 0.00664
}

Semantic roles & 50–950 ramp

primary
#20072F
secondary
#3F6F23
accent
#F1377D
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A

Preview Lab

Preview with #20072F

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

Preview Lab → · Contrast checker → · Palette generator →

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