#20102E#20102E

#20102E is a very dark, muted violet. Relative luminance 0.009; OKLCH L 21.3% C 0.060 H 306.6°. Best body text is #FFFFFF at 17.87:1 contrast (WCAG AA passes).

Color values

HEX#20102E
RGBrgb(32, 16, 46)
HSLhsl(272, 48%, 12%)
HSVhsv(272, 65%, 18%)
CMYKcmyk(30.4%, 65.2%, 0%, 82%)
CIE-LABlab(7.90, 15.74, -17.01)
CIE-LCHlch(7.90, 23.18, 312.78°)
OKLaboklab(21.27% 0.0356 -0.0478)
OKLCHoklch(21.27% 0.06 306.6)
XYZxyz(1.2740, 0.8749, 2.6860)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20102E #1E2E10
analogous
#11102E #20102E #2E102D
triadic
#20102E #2E2010 #102E20
tetradic
#20102E #2E1110 #1E2E10 #102D2E
square
#20102E #2E1110 #1E2E10 #102D2E
split-complementary
#20102E #2D2E10 #102E11
monochromatic
#100817 #100817 #20102E #40205B #5F3089

Accessibility & contrast

On white

17.87
#20102E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#20102E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20102E
17.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20102E#FFFFFF#000000##FFFFFF
##20102E1.0017.871.1817.87
#FFFFFF17.871.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07172F
Deuteranopia (green-blind)
#0C172D
Tritanopia (blue-blind)
#1E151D
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #20102e;
/* rgb */ color: rgb(32, 16, 46);
/* oklch */ color: oklch(21.3% 0.060 306.6);
Tailwind
colors: {
  custom: {
    50: '#5c4e67',
    500: '#20102e',
    950: '#000000',
  },
}
SCSS
$custom: #20102e;
$custom-light: #5c4e67;
$custom-dark: #000000;
JSON
{
  "hex": "#20102e",
  "rgb": {
    "r": 32,
    "g": 16,
    "b": 46
  },
  "hsl": {
    "h": 272,
    "s": 48.387,
    "l": 12.157
  },
  "oklch": {
    "l": 0.21266,
    "c": 0.05958,
    "h": 306.6
  },
  "luminance": 0.00875
}

Semantic roles & 50–950 ramp

primary
#20102E
secondary
#4B6733
accent
#D8508F
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A

Preview Lab

Preview with #20102E

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

Preview Lab → · Contrast checker → · Palette generator →

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