#20042F#20042F

#20042F is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.2% C 0.084 H 310.9°. Best body text is #FFFFFF at 18.75:1 contrast (WCAG AA passes).

Color values

HEX#20042F
RGBrgb(32, 4, 47)
HSLhsl(279, 84%, 10%)
HSVhsv(279, 91%, 18%)
CMYKcmyk(31.9%, 91.5%, 0%, 81.6%)
CIE-LABlab(5.41, 22.56, -21.72)
CIE-LCHlch(5.41, 31.31, 316.09°)
OKLaboklab(19.25% 0.0548 -0.0632)
OKLCHoklch(19.25% 0.084 310.9)
XYZxyz(1.1521, 0.5992, 2.7437)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20042F #132F04
analogous
#0B042F #20042F #2F0428
triadic
#20042F #2F2004 #042F20
tetradic
#20042F #2F0B04 #132F04 #04282F
square
#20042F #2F0B04 #132F04 #04282F
split-complementary
#20042F #282F04 #042F0B
monochromatic
#13021C #13021C #20042F #460967 #6D0EA0

Accessibility & contrast

On white

18.75
#20042F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#20042F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20042F
18.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20042F#FFFFFF#000000##FFFFFF
##20042F1.0018.751.1218.75
#FFFFFF18.751.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001130
Deuteranopia (green-blind)
#00122E
Tritanopia (blue-blind)
#1E0D19
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #20042f;
/* rgb */ color: rgb(32, 4, 47);
/* oklch */ color: oklch(19.2% 0.084 310.9);
Tailwind
colors: {
  custom: {
    50: '#5d4868',
    500: '#20042f',
    950: '#000000',
  },
}
SCSS
$custom: #20042f;
$custom-light: #5d4868;
$custom-dark: #000000;
JSON
{
  "hex": "#20042f",
  "rgb": {
    "r": 32,
    "g": 4,
    "b": 47
  },
  "hsl": {
    "h": 279.07,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.19249,
    "c": 0.08369,
    "h": 310.9
  },
  "luminance": 0.00599
}

Semantic roles & 50–950 ramp

primary
#20042F
secondary
#3B721D
accent
#FB2D75
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #20042F

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

Preview Lab → · Contrast checker → · Palette generator →

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