#20104A#20104A

#20104A is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.8% C 0.101 H 289.0°. Best body text is #FFFFFF at 17.01:1 contrast (WCAG AA passes).

Color values

HEX#20104A
RGBrgb(32, 16, 74)
HSLhsl(257, 64%, 18%)
HSVhsv(257, 78%, 29%)
CMYKcmyk(56.8%, 78.4%, 0%, 71%)
CIE-LABlab(10.35, 24.85, -33.12)
CIE-LCHlch(10.35, 41.41, 306.87°)
OKLaboklab(23.81% 0.0328 -0.0951)
OKLCHoklch(23.81% 0.101 289)
XYZxyz(2.0166, 1.1720, 6.5972)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20104A #3A4A10
analogous
#101D4A #20104A #3D104A
triadic
#20104A #4A2010 #104A20
tetradic
#20104A #4A101D #3A4A10 #104A3D
square
#20104A #4A101D #3A4A10 #104A3D
split-complementary
#20104A #4A3D10 #1D4A10
monochromatic
#0B0519 #0B0519 #20104A #361B7C #4C26AF

Accessibility & contrast

On white

17.01
#20104A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#20104A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20104A
17.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20104A#FFFFFF#000000##FFFFFF
##20104A1.0017.011.2317.01
#FFFFFF17.011.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4C
Deuteranopia (green-blind)
#001B49
Tritanopia (blue-blind)
#111F2B
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #20104a;
/* rgb */ color: rgb(32, 16, 74);
/* oklch */ color: oklch(23.8% 0.101 289.0);
Tailwind
colors: {
  custom: {
    50: '#614f7d',
    500: '#20104a',
    950: '#000000',
  },
}
SCSS
$custom: #20104a;
$custom-light: #614f7d;
$custom-dark: #000000;
JSON
{
  "hex": "#20104a",
  "rgb": {
    "r": 32,
    "g": 16,
    "b": 74
  },
  "hsl": {
    "h": 256.552,
    "s": 64.444,
    "l": 17.647
  },
  "oklch": {
    "l": 0.23807,
    "c": 0.10063,
    "h": 289
  },
  "luminance": 0.01172
}

Semantic roles & 50–950 ramp

primary
#20104A
secondary
#6D8432
accent
#E740B9
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #20104A

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

Preview Lab → · Contrast checker → · Palette generator →

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