#201642#201642

#201642 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.1% C 0.080 H 289.5°. Best body text is #FFFFFF at 16.74:1 contrast (WCAG AA passes).

Color values

HEX#201642
RGBrgb(32, 22, 66)
HSLhsl(254, 50%, 17%)
HSVhsv(254, 67%, 26%)
CMYKcmyk(51.5%, 66.7%, 0%, 74.1%)
CIE-LABlab(11.09, 18.09, -26.31)
CIE-LCHlch(11.09, 31.93, 304.51°)
OKLaboklab(24.12% 0.0266 -0.0751)
OKLCHoklch(24.12% 0.08 289.5)
XYZxyz(1.8657, 1.2742, 5.3008)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201642 #384216
analogous
#162242 #201642 #361642
triadic
#201642 #422016 #164220
tetradic
#201642 #421622 #384216 #164236
square
#201642 #421622 #384216 #164236
split-complementary
#201642 #423616 #224216
monochromatic
#0B0817 #0B0817 #201642 #362570 #4D359E

Accessibility & contrast

On white

16.74
#201642 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#201642 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #201642
16.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201642#FFFFFF#000000##FFFFFF
##2016421.0016.741.2516.74
#FFFFFF16.741.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F43
Deuteranopia (green-blind)
#001D41
Tritanopia (blue-blind)
#162029
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #201642;
/* rgb */ color: rgb(32, 22, 66);
/* oklch */ color: oklch(24.1% 0.080 289.5);
Tailwind
colors: {
  custom: {
    50: '#5f5377',
    500: '#201642',
    950: '#000000',
  },
}
SCSS
$custom: #201642;
$custom-light: #5f5377;
$custom-dark: #000000;
JSON
{
  "hex": "#201642",
  "rgb": {
    "r": 32,
    "g": 22,
    "b": 66
  },
  "hsl": {
    "h": 253.636,
    "s": 50,
    "l": 17.255
  },
  "oklch": {
    "l": 0.24115,
    "c": 0.07969,
    "h": 289.5
  },
  "luminance": 0.01274
}

Semantic roles & 50–950 ramp

primary
#201642
secondary
#6B793A
accent
#DA4EBA
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050208
muted
#79787B

Preview Lab

Preview with #201642

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

Preview Lab → · Contrast checker → · Palette generator →

#201642 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva