#20043B#20043B

#20043B is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.5% C 0.098 H 301.3°. Best body text is #FFFFFF at 18.39:1 contrast (WCAG AA passes).

Color values

HEX#20043B
RGBrgb(32, 4, 59)
HSLhsl(271, 87%, 12%)
HSVhsv(271, 93%, 23%)
CMYKcmyk(45.8%, 93.2%, 0%, 76.9%)
CIE-LABlab(6.41, 26.79, -28.93)
CIE-LCHlch(6.41, 39.43, 312.80°)
OKLaboklab(20.48% 0.0507 -0.0833)
OKLCHoklch(20.48% 0.098 301.3)
XYZxyz(1.4283, 0.7097, 4.1986)
Luminance0.0071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20043B #1F3B04
analogous
#04043B #20043B #3B043B
triadic
#20043B #3B2004 #043B20
tetradic
#20043B #3B0404 #1F3B04 #043B3B
square
#20043B #3B0404 #1F3B04 #043B3B
split-complementary
#20043B #3B3B04 #043B04
monochromatic
#10021D #10021D #20043B #3F0874 #5E0CAE

Accessibility & contrast

On white

18.39
#20043B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#20043B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20043B
18.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20043B#FFFFFF#000000##FFFFFF
##20043B1.0018.391.1418.39
#FFFFFF18.391.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00143C
Deuteranopia (green-blind)
#00143A
Tritanopia (blue-blind)
#1A1320
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #20043b;
/* rgb */ color: rgb(32, 4, 59);
/* oklch */ color: oklch(20.5% 0.098 301.3);
Tailwind
colors: {
  custom: {
    50: '#5f4871',
    500: '#20043b',
    950: '#000000',
  },
}
SCSS
$custom: #20043b;
$custom-light: #5f4871;
$custom-dark: #000000;
JSON
{
  "hex": "#20043b",
  "rgb": {
    "r": 32,
    "g": 4,
    "b": 59
  },
  "hsl": {
    "h": 270.545,
    "s": 87.302,
    "l": 12.353
  },
  "oklch": {
    "l": 0.20478,
    "c": 0.0975,
    "h": 301.3
  },
  "luminance": 0.0071
}

Semantic roles & 50–950 ramp

primary
#20043B
secondary
#4D7D1E
accent
#FD2A92
background
#F5F4F6
surface
#EAE6EC
border
#C6C2C7
text
#050008
muted
#79777B

Preview Lab

Preview with #20043B

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

Preview Lab → · Contrast checker → · Palette generator →

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