#20102F#20102F

#20102F is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.3% C 0.061 H 305.7°. Best body text is #FFFFFF at 17.85:1 contrast (WCAG AA passes).

Color values

HEX#20102F
RGBrgb(32, 16, 47)
HSLhsl(271, 49%, 12%)
HSVhsv(271, 66%, 18%)
CMYKcmyk(31.9%, 66%, 0%, 81.6%)
CIE-LABlab(7.98, 16.05, -17.63)
CIE-LCHlch(7.98, 23.84, 312.30°)
OKLaboklab(21.34% 0.0356 -0.0496)
OKLCHoklch(21.34% 0.061 305.7)
XYZxyz(1.2939, 0.8829, 2.7910)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20102F #1F2F10
analogous
#11102F #20102F #2F102E
triadic
#20102F #2F2010 #102F20
tetradic
#20102F #2F1110 #1F2F10 #102E2F
square
#20102F #2F1110 #1F2F10 #102E2F
split-complementary
#20102F #2E2F10 #102F11
monochromatic
#100817 #100817 #20102F #3F205D #5E2F8A

Accessibility & contrast

On white

17.85
#20102F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20102F
17.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20102F#FFFFFF#000000##FFFFFF
##20102F1.0017.851.1817.85
#FFFFFF17.851.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061730
Deuteranopia (green-blind)
#0B182E
Tritanopia (blue-blind)
#1E161D
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #20102f;
/* rgb */ color: rgb(32, 16, 47);
/* oklch */ color: oklch(21.3% 0.061 305.7);
Tailwind
colors: {
  custom: {
    50: '#5d4e67',
    500: '#20102f',
    950: '#000000',
  },
}
SCSS
$custom: #20102f;
$custom-light: #5d4e67;
$custom-dark: #000000;
JSON
{
  "hex": "#20102f",
  "rgb": {
    "r": 32,
    "g": 16,
    "b": 47
  },
  "hsl": {
    "h": 270.968,
    "s": 49.206,
    "l": 12.353
  },
  "oklch": {
    "l": 0.21342,
    "c": 0.06109,
    "h": 305.7
  },
  "luminance": 0.00883
}

Semantic roles & 50–950 ramp

primary
#20102F
secondary
#4D6833
accent
#D94F92
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A

Preview Lab

Preview with #20102F

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

Preview Lab → · Contrast checker → · Palette generator →

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