#20104B#20104B

#20104B is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.9% C 0.102 H 288.6°. Best body text is #FFFFFF at 16.97:1 contrast (WCAG AA passes).

Color values

HEX#20104B
RGBrgb(32, 16, 75)
HSLhsl(256, 65%, 18%)
HSVhsv(256, 79%, 29%)
CMYKcmyk(57.3%, 78.7%, 0%, 70.6%)
CIE-LABlab(10.45, 25.18, -33.65)
CIE-LCHlch(10.45, 42.03, 306.81°)
OKLaboklab(23.91% 0.0326 -0.0967)
OKLCHoklch(23.91% 0.102 288.6)
XYZxyz(2.0506, 1.1856, 6.7760)
Luminance0.0119 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20104B #3B4B10
analogous
#101D4B #20104B #3D104B
triadic
#20104B #4B2010 #104B20
tetradic
#20104B #4B101D #3B4B10 #104B3D
square
#20104B #4B101D #3B4B10 #104B3D
split-complementary
#20104B #4B3D10 #1D4B10
monochromatic
#0B0519 #0B0519 #20104B #361B7D #4B26B0

Accessibility & contrast

On white

16.97
#20104B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#20104B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20104B
16.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20104B#FFFFFF#000000##FFFFFF
##20104B1.0016.971.2416.97
#FFFFFF16.971.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4D
Deuteranopia (green-blind)
#001B4A
Tritanopia (blue-blind)
#10202C
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #20104b;
/* rgb */ color: rgb(32, 16, 75);
/* oklch */ color: oklch(23.9% 0.102 288.6);
Tailwind
colors: {
  custom: {
    50: '#61507e',
    500: '#20104b',
    950: '#000000',
  },
}
SCSS
$custom: #20104b;
$custom-light: #61507e;
$custom-dark: #000000;
JSON
{
  "hex": "#20104b",
  "rgb": {
    "r": 32,
    "g": 16,
    "b": 75
  },
  "hsl": {
    "h": 256.271,
    "s": 64.835,
    "l": 17.843
  },
  "oklch": {
    "l": 0.23911,
    "c": 0.10202,
    "h": 288.6
  },
  "luminance": 0.01186
}

Semantic roles & 50–950 ramp

primary
#20104B
secondary
#6E8532
accent
#E840BA
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #20104B

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

Preview Lab → · Contrast checker → · Palette generator →

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