#20052F#20052F

#20052F is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.4% C 0.082 H 310.5°. Best body text is #FFFFFF at 18.68:1 contrast (WCAG AA passes).

Color values

HEX#20052F
RGBrgb(32, 5, 47)
HSLhsl(279, 81%, 10%)
HSVhsv(279, 89%, 18%)
CMYKcmyk(31.9%, 89.4%, 0%, 81.6%)
CIE-LABlab(5.61, 22.07, -21.41)
CIE-LCHlch(5.61, 30.75, 315.88°)
OKLaboklab(19.43% 0.0531 -0.0621)
OKLCHoklch(19.43% 0.082 310.5)
XYZxyz(1.1629, 0.6209, 2.7474)
Luminance0.0062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20052F #142F05
analogous
#0B052F #20052F #2F0529
triadic
#20052F #2F2005 #052F20
tetradic
#20052F #2F0B05 #142F05 #05292F
square
#20052F #2F0B05 #142F05 #05292F
split-complementary
#20052F #292F05 #052F0B
monochromatic
#13031C #13031C #20052F #460B66 #6B119E

Accessibility & contrast

On white

18.68
#20052F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20052F
18.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20052F#FFFFFF#000000##FFFFFF
##20052F1.0018.681.1218.68
#FFFFFF18.681.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20052f;
/* rgb */ color: rgb(32, 5, 47);
/* oklch */ color: oklch(19.4% 0.082 310.5);
Tailwind
colors: {
  custom: {
    50: '#5d4868',
    500: '#20052f',
    950: '#000000',
  },
}
SCSS
$custom: #20052f;
$custom-light: #5d4868;
$custom-dark: #000000;
JSON
{
  "hex": "#20052f",
  "rgb": {
    "r": 32,
    "g": 5,
    "b": 47
  },
  "hsl": {
    "h": 278.571,
    "s": 80.769,
    "l": 10.196
  },
  "oklch": {
    "l": 0.19426,
    "c": 0.08167,
    "h": 310.5
  },
  "luminance": 0.00621
}

Semantic roles & 50–950 ramp

primary
#20052F
secondary
#3C711F
accent
#F73178
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #20052F

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

Preview Lab → · Contrast checker → · Palette generator →

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