#20023B#20023B

#20023B is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.2% C 0.101 H 302.0°. Best body text is #FFFFFF at 18.53:1 contrast (WCAG AA passes).

Color values

HEX#20023B
RGBrgb(32, 2, 59)
HSLhsl(272, 93%, 12%)
HSVhsv(272, 97%, 23%)
CMYKcmyk(45.8%, 96.6%, 0%, 76.9%)
CIE-LABlab(6.02, 27.85, -29.57)
CIE-LCHlch(6.02, 40.62, 313.29°)
OKLaboklab(20.16% 0.0534 -0.0855)
OKLCHoklch(20.16% 0.101 302)
XYZxyz(1.4066, 0.6663, 4.1913)
Luminance0.0067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20023B #1D3B02
analogous
#04023B #20023B #3B023A
triadic
#20023B #3B2002 #023B20
tetradic
#20023B #3B0402 #1D3B02 #023A3B
square
#20023B #3B0402 #1D3B02 #023A3B
split-complementary
#20023B #3A3B02 #023B04
monochromatic
#10011E #10011E #20023B #400476 #6006B1

Accessibility & contrast

On white

18.53
#20023B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#20023B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20023B
18.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20023B#FFFFFF#000000##FFFFFF
##20023B1.0018.531.1318.53
#FFFFFF18.531.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00133D
Deuteranopia (green-blind)
#00133A
Tritanopia (blue-blind)
#1A121F
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #20023b;
/* rgb */ color: rgb(32, 2, 59);
/* oklch */ color: oklch(20.2% 0.101 302.0);
Tailwind
colors: {
  custom: {
    50: '#5f4771',
    500: '#20023b',
    950: '#000000',
  },
}
SCSS
$custom: #20023b;
$custom-light: #5f4771;
$custom-dark: #000000;
JSON
{
  "hex": "#20023b",
  "rgb": {
    "r": 32,
    "g": 2,
    "b": 59
  },
  "hsl": {
    "h": 271.579,
    "s": 93.443,
    "l": 11.961
  },
  "oklch": {
    "l": 0.20159,
    "c": 0.10081,
    "h": 302
  },
  "luminance": 0.00666
}

Semantic roles & 50–950 ramp

primary
#20023B
secondary
#4A7E1A
accent
#FF298E
background
#F5F4F6
surface
#EAE6EC
border
#C6C2C7
text
#050008
muted
#79777B

Preview Lab

Preview with #20023B

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

Preview Lab → · Contrast checker → · Palette generator →

#20023B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva