#20102A#20102A

#20102A is a very dark, muted violet. Relative luminance 0.008; OKLCH L 21.0% C 0.054 H 311.0°. Best body text is #FFFFFF at 17.96:1 contrast (WCAG AA passes).

Color values

HEX#20102A
RGBrgb(32, 16, 42)
HSLhsl(277, 45%, 11%)
HSVhsv(277, 62%, 16%)
CMYKcmyk(23.8%, 61.9%, 0%, 83.5%)
CIE-LABlab(7.63, 14.53, -14.46)
CIE-LCHlch(7.63, 20.50, 315.13°)
OKLaboklab(20.97% 0.0351 -0.0404)
OKLCHoklch(20.97% 0.054 311)
XYZxyz(1.1988, 0.8448, 2.2900)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20102A #1A2A10
analogous
#13102A #20102A #2A1027
triadic
#20102A #2A2010 #102A20
tetradic
#20102A #2A1310 #1A2A10 #10272A
square
#20102A #2A1310 #1A2A10 #10272A
split-complementary
#20102A #272A10 #102A13
monochromatic
#110816 #110816 #20102A #422156 #643283

Accessibility & contrast

On white

17.96
#20102A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#20102A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20102A
17.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20102A#FFFFFF#000000##FFFFFF
##20102A1.0017.961.1717.96
#FFFFFF17.961.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A162B
Deuteranopia (green-blind)
#0E1729
Tritanopia (blue-blind)
#1F141B
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #20102a;
/* rgb */ color: rgb(32, 16, 42);
/* oklch */ color: oklch(21.0% 0.054 311.0);
Tailwind
colors: {
  custom: {
    50: '#5c4e63',
    500: '#20102a',
    950: '#000000',
  },
}
SCSS
$custom: #20102a;
$custom-light: #5c4e63;
$custom-dark: #000000;
JSON
{
  "hex": "#20102a",
  "rgb": {
    "r": 32,
    "g": 16,
    "b": 42
  },
  "hsl": {
    "h": 276.923,
    "s": 44.828,
    "l": 11.373
  },
  "oklch": {
    "l": 0.20971,
    "c": 0.05352,
    "h": 311
  },
  "luminance": 0.00845
}

Semantic roles & 50–950 ramp

primary
#20102A
secondary
#456233
accent
#D55385
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#040105
muted
#797779

Preview Lab

Preview with #20102A

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

Preview Lab → · Contrast checker → · Palette generator →

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