#20102C#20102C

#20102C is a very dark, muted violet. Relative luminance 0.009; OKLCH L 21.1% C 0.057 H 308.7°. Best body text is #FFFFFF at 17.92:1 contrast (WCAG AA passes).

Color values

HEX#20102C
RGBrgb(32, 16, 44)
HSLhsl(274, 47%, 12%)
HSVhsv(274, 64%, 17%)
CMYKcmyk(27.3%, 63.6%, 0%, 82.7%)
CIE-LABlab(7.76, 15.13, -15.74)
CIE-LCHlch(7.76, 21.84, 313.86°)
OKLaboklab(21.12% 0.0354 -0.0441)
OKLCHoklch(21.12% 0.057 308.7)
XYZxyz(1.2355, 0.8595, 2.4832)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20102C #1C2C10
analogous
#12102C #20102C #2C102A
triadic
#20102C #2C2010 #102C20
tetradic
#20102C #2C1210 #1C2C10 #102A2C
square
#20102C #2C1210 #1C2C10 #102A2C
split-complementary
#20102C #2A2C10 #102C12
monochromatic
#100816 #100816 #20102C #412059 #613186

Accessibility & contrast

On white

17.92
#20102C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20102C
17.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20102C#FFFFFF#000000##FFFFFF
##20102C1.0017.921.1717.92
#FFFFFF17.921.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08162D
Deuteranopia (green-blind)
#0D172B
Tritanopia (blue-blind)
#1E151C
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #20102c;
/* rgb */ color: rgb(32, 16, 44);
/* oklch */ color: oklch(21.1% 0.057 308.7);
Tailwind
colors: {
  custom: {
    50: '#5c4e65',
    500: '#20102c',
    950: '#000000',
  },
}
SCSS
$custom: #20102c;
$custom-light: #5c4e65;
$custom-dark: #000000;
JSON
{
  "hex": "#20102c",
  "rgb": {
    "r": 32,
    "g": 16,
    "b": 44
  },
  "hsl": {
    "h": 274.286,
    "s": 46.667,
    "l": 11.765
  },
  "oklch": {
    "l": 0.21116,
    "c": 0.05654,
    "h": 308.7
  },
  "luminance": 0.0086
}

Semantic roles & 50–950 ramp

primary
#20102C
secondary
#486533
accent
#D6518A
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040105
muted
#79777A

Preview Lab

Preview with #20102C

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

Preview Lab → · Contrast checker → · Palette generator →

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