#201728#201728

#201728 is a very dark, muted violet. Relative luminance 0.011; OKLCH L 22.4% C 0.035 H 308.0°. Best body text is #FFFFFF at 17.29:1 contrast (WCAG AA passes).

Color values

HEX#201728
RGBrgb(32, 23, 40)
HSLhsl(272, 27%, 12%)
HSVhsv(272, 43%, 16%)
CMYKcmyk(20%, 42.5%, 0%, 84.3%)
CIE-LABlab(9.59, 8.83, -9.91)
CIE-LCHlch(9.59, 13.27, 311.68°)
OKLaboklab(22.41% 0.0214 -0.0273)
OKLCHoklch(22.41% 0.035 308)
XYZxyz(1.2850, 1.0731, 2.1465)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201728 #1F2817
analogous
#181728 #201728 #281728
triadic
#201728 #282017 #172820
tetradic
#201728 #281817 #1F2817 #172828
square
#201728 #281817 #1F2817 #172828
split-complementary
#201728 #282817 #172818
monochromatic
#100B13 #100B13 #201728 #3F2D4F #5E4476

Accessibility & contrast

On white

17.29
#201728 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#201728 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #201728
17.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201728#FFFFFF#000000##FFFFFF
##2017281.0017.291.2117.29
#FFFFFF17.291.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#141A29
Deuteranopia (green-blind)
#161B28
Tritanopia (blue-blind)
#1F191D
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #201728;
/* rgb */ color: rgb(32, 23, 40);
/* oklch */ color: oklch(22.4% 0.035 308.0);
Tailwind
colors: {
  custom: {
    50: '#5b5462',
    500: '#201728',
    950: '#000000',
  },
}
SCSS
$custom: #201728;
$custom-light: #5b5462;
$custom-dark: #000000;
JSON
{
  "hex": "#201728",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 40
  },
  "hsl": {
    "h": 271.765,
    "s": 26.984,
    "l": 12.353
  },
  "oklch": {
    "l": 0.22406,
    "c": 0.03466,
    "h": 308
  },
  "luminance": 0.01073
}

Semantic roles & 50–950 ramp

primary
#201728
secondary
#4D5C3F
accent
#C36491
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#040205
muted
#797879

Preview Lab

Preview with #201728

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

Preview Lab → · Contrast checker → · Palette generator →

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