#20022C#20022C

#20022C is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.6% C 0.085 H 314.5°. Best body text is #FFFFFF at 18.98:1 contrast (WCAG AA passes).

Color values

HEX#20022C
RGBrgb(32, 2, 44)
HSLhsl(283, 91%, 9%)
HSVhsv(283, 95%, 17%)
CMYKcmyk(27.3%, 95.5%, 0%, 82.7%)
CIE-LABlab(4.81, 22.43, -20.42)
CIE-LCHlch(4.81, 30.34, 317.69°)
OKLaboklab(18.59% 0.0594 -0.0605)
OKLCHoklch(18.59% 0.085 314.5)
XYZxyz(1.0719, 0.5324, 2.4287)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20022C #0E2C02
analogous
#0B022C #20022C #2C0223
triadic
#20022C #2C2002 #022C20
tetradic
#20022C #2C0B02 #0E2C02 #02232C
square
#20022C #2C0B02 #0E2C02 #02232C
split-complementary
#20022C #232C02 #022C0B
monochromatic
#15011D #15011D #20022C #4B0567 #7507A1

Accessibility & contrast

On white

18.98
#20022C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#20022C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20022C
18.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20022C#FFFFFF#000000##FFFFFF
##20022C1.0018.981.1118.98
#FFFFFF18.981.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2D
Deuteranopia (green-blind)
#00112B
Tritanopia (blue-blind)
#1F0A16
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #20022c;
/* rgb */ color: rgb(32, 2, 44);
/* oklch */ color: oklch(18.6% 0.085 314.5);
Tailwind
colors: {
  custom: {
    50: '#5d4765',
    500: '#20022c',
    950: '#000000',
  },
}
SCSS
$custom: #20022c;
$custom-light: #5d4765;
$custom-dark: #000000;
JSON
{
  "hex": "#20022c",
  "rgb": {
    "r": 32,
    "g": 2,
    "b": 44
  },
  "hsl": {
    "h": 282.857,
    "s": 91.304,
    "l": 9.02
  },
  "oklch": {
    "l": 0.18591,
    "c": 0.08476,
    "h": 314.5
  },
  "luminance": 0.00532
}

Semantic roles & 50–950 ramp

primary
#20022C
secondary
#327119
accent
#FF2966
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040005
muted
#79777A

Preview Lab

Preview with #20022C

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

Preview Lab → · Contrast checker → · Palette generator →

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