#201742#201742

#201742 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.3% C 0.078 H 288.9°. Best body text is #FFFFFF at 16.63:1 contrast (WCAG AA passes).

Color values

HEX#201742
RGBrgb(32, 23, 66)
HSLhsl(253, 48%, 17%)
HSVhsv(253, 65%, 26%)
CMYKcmyk(51.5%, 65.2%, 0%, 74.1%)
CIE-LABlab(11.37, 17.38, -25.87)
CIE-LCHlch(11.37, 31.17, 303.89°)
OKLaboklab(24.32% 0.0252 -0.0738)
OKLCHoklch(24.32% 0.078 288.9)
XYZxyz(1.8851, 1.3131, 5.3073)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201742 #394217
analogous
#172442 #201742 #361742
triadic
#201742 #422017 #174220
tetradic
#201742 #421724 #394217 #174236
square
#201742 #421724 #394217 #174236
split-complementary
#201742 #423617 #244217
monochromatic
#0B0817 #0B0817 #201742 #36276F #4C379D

Accessibility & contrast

On white

16.63
#201742 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#201742 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #201742
16.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201742#FFFFFF#000000##FFFFFF
##2017421.0016.631.2616.63
#FFFFFF16.631.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #201742;
/* rgb */ color: rgb(32, 23, 66);
/* oklch */ color: oklch(24.3% 0.078 288.9);
Tailwind
colors: {
  custom: {
    50: '#5f5477',
    500: '#201742',
    950: '#000000',
  },
}
SCSS
$custom: #201742;
$custom-light: #5f5477;
$custom-dark: #000000;
JSON
{
  "hex": "#201742",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 66
  },
  "hsl": {
    "h": 252.558,
    "s": 48.315,
    "l": 17.451
  },
  "oklch": {
    "l": 0.24316,
    "c": 0.07801,
    "h": 288.9
  },
  "luminance": 0.01313
}

Semantic roles & 50–950 ramp

primary
#201742
secondary
#6C793C
accent
#D850BB
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050208
muted
#79787B

Preview Lab

Preview with #201742

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

Preview Lab → · Contrast checker → · Palette generator →

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