#20052C#20052C

#20052C is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.1% C 0.078 H 313.4°. Best body text is #FFFFFF at 18.76:1 contrast (WCAG AA passes).

Color values

HEX#20052C
RGBrgb(32, 5, 44)
HSLhsl(282, 80%, 10%)
HSVhsv(282, 89%, 17%)
CMYKcmyk(27.3%, 88.6%, 0%, 82.7%)
CIE-LABlab(5.40, 21.02, -19.49)
CIE-LCHlch(5.40, 28.67, 317.17°)
OKLaboklab(19.15% 0.0537 -0.0567)
OKLCHoklch(19.15% 0.078 313.4)
XYZxyz(1.1045, 0.5975, 2.4395)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20052C #112C05
analogous
#0C052C #20052C #2C0525
triadic
#20052C #2C2005 #052C20
tetradic
#20052C #2C0C05 #112C05 #05252C
square
#20052C #2C0C05 #112C05 #05252C
split-complementary
#20052C #252C05 #052C0C
monochromatic
#14031B #14031B #20052C #480B63 #70119A

Accessibility & contrast

On white

18.76
#20052C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20052C
18.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20052C#FFFFFF#000000##FFFFFF
##20052C1.0018.761.1218.76
#FFFFFF18.761.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102D
Deuteranopia (green-blind)
#03122B
Tritanopia (blue-blind)
#1F0D17
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #20052c;
/* rgb */ color: rgb(32, 5, 44);
/* oklch */ color: oklch(19.1% 0.078 313.4);
Tailwind
colors: {
  custom: {
    50: '#5d4865',
    500: '#20052c',
    950: '#000000',
  },
}
SCSS
$custom: #20052c;
$custom-light: #5d4865;
$custom-dark: #000000;
JSON
{
  "hex": "#20052c",
  "rgb": {
    "r": 32,
    "g": 5,
    "b": 44
  },
  "hsl": {
    "h": 281.538,
    "s": 79.592,
    "l": 9.608
  },
  "oklch": {
    "l": 0.19149,
    "c": 0.07814,
    "h": 313.4
  },
  "luminance": 0.00597
}

Semantic roles & 50–950 ramp

primary
#20052C
secondary
#376E1F
accent
#F6326E
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040005
muted
#79777A

Preview Lab

Preview with #20052C

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

Preview Lab → · Contrast checker → · Palette generator →

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