#20104F#20104F

#20104F is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.3% C 0.108 H 287.1°. Best body text is #FFFFFF at 16.82:1 contrast (WCAG AA passes).

Color values

HEX#20104F
RGBrgb(32, 16, 79)
HSLhsl(255, 66%, 19%)
HSVhsv(255, 80%, 31%)
CMYKcmyk(59.5%, 79.7%, 0%, 69%)
CIE-LABlab(10.86, 26.52, -35.74)
CIE-LCHlch(10.86, 44.51, 306.58°)
OKLaboklab(24.33% 0.0316 -0.1028)
OKLCHoklch(24.33% 0.108 287.1)
XYZxyz(2.1918, 1.2421, 7.5199)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20104F #3F4F10
analogous
#101F4F #20104F #3F104F
triadic
#20104F #4F2010 #104F20
tetradic
#20104F #4F101F #3F4F10 #104F3F
square
#20104F #4F101F #3F4F10 #104F3F
split-complementary
#20104F #4F3F10 #1F4F10
monochromatic
#0A0519 #0B061C #20104F #351A82 #4925B5

Accessibility & contrast

On white

16.82
#20104F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#20104F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20104F
16.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20104F#FFFFFF#000000##FFFFFF
##20104F1.0016.821.2516.82
#FFFFFF16.821.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F51
Deuteranopia (green-blind)
#001B4E
Tritanopia (blue-blind)
#0C212E
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #20104f;
/* rgb */ color: rgb(32, 16, 79);
/* oklch */ color: oklch(24.3% 0.108 287.1);
Tailwind
colors: {
  custom: {
    50: '#625081',
    500: '#20104f',
    950: '#000000',
  },
}
SCSS
$custom: #20104f;
$custom-light: #625081;
$custom-dark: #000000;
JSON
{
  "hex": "#20104f",
  "rgb": {
    "r": 32,
    "g": 16,
    "b": 79
  },
  "hsl": {
    "h": 255.238,
    "s": 66.316,
    "l": 18.627
  },
  "oklch": {
    "l": 0.24331,
    "c": 0.10753,
    "h": 287.1
  },
  "luminance": 0.01242
}

Semantic roles & 50–950 ramp

primary
#20104F
secondary
#738932
accent
#E93FBE
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #20104F

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

Preview Lab → · Contrast checker → · Palette generator →

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