#20102B#20102B

#20102B is a very dark, muted violet. Relative luminance 0.009; OKLCH L 21.0% C 0.055 H 309.8°. Best body text is #FFFFFF at 17.94:1 contrast (WCAG AA passes).

Color values

HEX#20102B
RGBrgb(32, 16, 43)
HSLhsl(276, 46%, 12%)
HSVhsv(276, 63%, 17%)
CMYKcmyk(25.6%, 62.8%, 0%, 83.1%)
CIE-LABlab(7.70, 14.83, -15.11)
CIE-LCHlch(7.70, 21.17, 314.47°)
OKLaboklab(21.04% 0.0352 -0.0423)
OKLCHoklch(21.04% 0.055 309.8)
XYZxyz(1.2169, 0.8521, 2.3854)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20102B #1B2B10
analogous
#13102B #20102B #2B1029
triadic
#20102B #2B2010 #102B20
tetradic
#20102B #2B1310 #1B2B10 #10292B
square
#20102B #2B1310 #1B2B10 #10292B
split-complementary
#20102B #292B10 #102B13
monochromatic
#110816 #110816 #20102B #412158 #623184

Accessibility & contrast

On white

17.94
#20102B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20102B
17.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20102B#FFFFFF#000000##FFFFFF
##20102B1.0017.941.1717.94
#FFFFFF17.941.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09162C
Deuteranopia (green-blind)
#0E172A
Tritanopia (blue-blind)
#1F151B
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #20102b;
/* rgb */ color: rgb(32, 16, 43);
/* oklch */ color: oklch(21.0% 0.055 309.8);
Tailwind
colors: {
  custom: {
    50: '#5c4e64',
    500: '#20102b',
    950: '#000000',
  },
}
SCSS
$custom: #20102b;
$custom-light: #5c4e64;
$custom-dark: #000000;
JSON
{
  "hex": "#20102b",
  "rgb": {
    "r": 32,
    "g": 16,
    "b": 43
  },
  "hsl": {
    "h": 275.556,
    "s": 45.763,
    "l": 11.569
  },
  "oklch": {
    "l": 0.21042,
    "c": 0.05503,
    "h": 309.8
  },
  "luminance": 0.00852
}

Semantic roles & 50–950 ramp

primary
#20102B
secondary
#476433
accent
#D55288
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040105
muted
#79777A

Preview Lab

Preview with #20102B

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

Preview Lab → · Contrast checker → · Palette generator →

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