#20104D#20104D

#20104D is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.1% C 0.105 H 287.8°. Best body text is #FFFFFF at 16.90:1 contrast (WCAG AA passes).

Color values

HEX#20104D
RGBrgb(32, 16, 77)
HSLhsl(256, 66%, 18%)
HSVhsv(256, 79%, 30%)
CMYKcmyk(58.4%, 79.2%, 0%, 69.8%)
CIE-LABlab(10.66, 25.85, -34.70)
CIE-LCHlch(10.66, 43.27, 306.69°)
OKLaboklab(24.12% 0.0321 -0.0997)
OKLCHoklch(24.12% 0.105 287.8)
XYZxyz(2.1201, 1.2134, 7.1422)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20104D #3D4D10
analogous
#101E4D #20104D #3E104D
triadic
#20104D #4D2010 #104D20
tetradic
#20104D #4D101E #3D4D10 #104D3E
square
#20104D #4D101E #3D4D10 #104D3E
split-complementary
#20104D #4D3E10 #1E4D10
monochromatic
#0B0519 #0B051A #20104D #351B80 #4A25B2

Accessibility & contrast

On white

16.90
#20104D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20104D
16.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20104D#FFFFFF#000000##FFFFFF
##20104D1.0016.901.2416.90
#FFFFFF16.901.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4F
Deuteranopia (green-blind)
#001B4C
Tritanopia (blue-blind)
#0E202D
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #20104d;
/* rgb */ color: rgb(32, 16, 77);
/* oklch */ color: oklch(24.1% 0.105 287.8);
Tailwind
colors: {
  custom: {
    50: '#61507f',
    500: '#20104d',
    950: '#000000',
  },
}
SCSS
$custom: #20104d;
$custom-light: #61507f;
$custom-dark: #000000;
JSON
{
  "hex": "#20104d",
  "rgb": {
    "r": 32,
    "g": 16,
    "b": 77
  },
  "hsl": {
    "h": 255.738,
    "s": 65.591,
    "l": 18.235
  },
  "oklch": {
    "l": 0.2412,
    "c": 0.10479,
    "h": 287.8
  },
  "luminance": 0.01213
}

Semantic roles & 50–950 ramp

primary
#20104D
secondary
#718732
accent
#E93FBC
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #20104D

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

Preview Lab → · Contrast checker → · Palette generator →

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