#20043A#20043A

#20043A is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.4% C 0.096 H 302.0°. Best body text is #FFFFFF at 18.42:1 contrast (WCAG AA passes).

Color values

HEX#20043A
RGBrgb(32, 4, 58)
HSLhsl(271, 87%, 12%)
HSVhsv(271, 93%, 23%)
CMYKcmyk(44.8%, 93.1%, 0%, 77.3%)
CIE-LABlab(6.32, 26.44, -28.36)
CIE-LCHlch(6.32, 38.77, 313.00°)
OKLaboklab(20.37% 0.0511 -0.0817)
OKLCHoklch(20.37% 0.096 302)
XYZxyz(1.4026, 0.6994, 4.0633)
Luminance0.0070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20043A #1E3A04
analogous
#05043A #20043A #3A0439
triadic
#20043A #3A2004 #043A20
tetradic
#20043A #3A0504 #1E3A04 #04393A
square
#20043A #3A0504 #1E3A04 #04393A
split-complementary
#20043A #393A04 #043A05
monochromatic
#10021D #10021D #20043A #400873 #5F0CAD

Accessibility & contrast

On white

18.42
#20043A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20043A
18.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20043A#FFFFFF#000000##FFFFFF
##20043A1.0018.421.1418.42
#FFFFFF18.421.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00143B
Deuteranopia (green-blind)
#001439
Tritanopia (blue-blind)
#1A121F
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #20043a;
/* rgb */ color: rgb(32, 4, 58);
/* oklch */ color: oklch(20.4% 0.096 302.0);
Tailwind
colors: {
  custom: {
    50: '#5f4871',
    500: '#20043a',
    950: '#000000',
  },
}
SCSS
$custom: #20043a;
$custom-light: #5f4871;
$custom-dark: #000000;
JSON
{
  "hex": "#20043a",
  "rgb": {
    "r": 32,
    "g": 4,
    "b": 58
  },
  "hsl": {
    "h": 271.111,
    "s": 87.097,
    "l": 12.157
  },
  "oklch": {
    "l": 0.20371,
    "c": 0.09634,
    "h": 302
  },
  "luminance": 0.00699
}

Semantic roles & 50–950 ramp

primary
#20043A
secondary
#4B7C1E
accent
#FD2B90
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#050007
muted
#79777A

Preview Lab

Preview with #20043A

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

Preview Lab → · Contrast checker → · Palette generator →

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