#20104C#20104C

#20104C is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.0% C 0.103 H 288.2°. Best body text is #FFFFFF at 16.94:1 contrast (WCAG AA passes).

Color values

HEX#20104C
RGBrgb(32, 16, 76)
HSLhsl(256, 65%, 18%)
HSVhsv(256, 79%, 30%)
CMYKcmyk(57.9%, 78.9%, 0%, 70.2%)
CIE-LABlab(10.55, 25.52, -34.18)
CIE-LCHlch(10.55, 42.65, 306.74°)
OKLaboklab(24.02% 0.0324 -0.0982)
OKLCHoklch(24.02% 0.103 288.2)
XYZxyz(2.0851, 1.1994, 6.9577)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20104C #3C4C10
analogous
#101E4C #20104C #3E104C
triadic
#20104C #4C2010 #104C20
tetradic
#20104C #4C101E #3C4C10 #104C3E
square
#20104C #4C101E #3C4C10 #104C3E
split-complementary
#20104C #4C3E10 #1E4C10
monochromatic
#0B0519 #0B0519 #20104C #351B7F #4B25B1

Accessibility & contrast

On white

16.94
#20104C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20104C
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20104C#FFFFFF#000000##FFFFFF
##20104C1.0016.941.2416.94
#FFFFFF16.941.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4E
Deuteranopia (green-blind)
#001B4B
Tritanopia (blue-blind)
#0F202C
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #20104c;
/* rgb */ color: rgb(32, 16, 76);
/* oklch */ color: oklch(24.0% 0.103 288.2);
Tailwind
colors: {
  custom: {
    50: '#61507f',
    500: '#20104c',
    950: '#000000',
  },
}
SCSS
$custom: #20104c;
$custom-light: #61507f;
$custom-dark: #000000;
JSON
{
  "hex": "#20104c",
  "rgb": {
    "r": 32,
    "g": 16,
    "b": 76
  },
  "hsl": {
    "h": 256,
    "s": 65.217,
    "l": 18.039
  },
  "oklch": {
    "l": 0.24015,
    "c": 0.1034,
    "h": 288.2
  },
  "luminance": 0.01199
}

Semantic roles & 50–950 ramp

primary
#20104C
secondary
#6F8632
accent
#E840BB
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #20104C

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

Preview Lab → · Contrast checker → · Palette generator →

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