#201827#201827

#201827 is a very dark, muted violet. Relative luminance 0.011; OKLCH L 22.6% C 0.031 H 308.4°. Best body text is #FFFFFF at 17.19:1 contrast (WCAG AA passes).

Color values

HEX#201827
RGBrgb(32, 24, 39)
HSLhsl(272, 24%, 12%)
HSVhsv(272, 38%, 15%)
CMYKcmyk(17.9%, 38.5%, 0%, 84.7%)
CIE-LABlab(9.85, 7.79, -8.76)
CIE-LCHlch(9.85, 11.72, 311.64°)
OKLaboklab(22.59% 0.0191 -0.024)
OKLCHoklch(22.59% 0.031 308.4)
XYZxyz(1.2884, 1.1068, 2.0648)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201827 #1F2718
analogous
#181827 #201827 #271827
triadic
#201827 #272018 #182720
tetradic
#201827 #271818 #1F2718 #182727
square
#201827 #271818 #1F2718 #182727
split-complementary
#201827 #272718 #182718
monochromatic
#100C13 #100C13 #201827 #3F2F4D #5E4773

Accessibility & contrast

On white

17.19
#201827 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#201827 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #201827
17.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201827#FFFFFF#000000##FFFFFF
##2018271.0017.191.2217.19
#FFFFFF17.191.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#151B28
Deuteranopia (green-blind)
#171B27
Tritanopia (blue-blind)
#1F1A1D
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #201827;
/* rgb */ color: rgb(32, 24, 39);
/* oklch */ color: oklch(22.6% 0.031 308.4);
Tailwind
colors: {
  custom: {
    50: '#5b5461',
    500: '#201827',
    950: '#000000',
  },
}
SCSS
$custom: #201827;
$custom-light: #5b5461;
$custom-dark: #000000;
JSON
{
  "hex": "#201827",
  "rgb": {
    "r": 32,
    "g": 24,
    "b": 39
  },
  "hsl": {
    "h": 272,
    "s": 23.81,
    "l": 12.353
  },
  "oklch": {
    "l": 0.22592,
    "c": 0.03067,
    "h": 308.4
  },
  "luminance": 0.01107
}

Semantic roles & 50–950 ramp

primary
#201827
secondary
#4D5A40
accent
#C06891
background
#F5F4F5
surface
#E9E7E9
border
#C5C3C5
text
#040205
muted
#797879

Preview Lab

Preview with #201827

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

Preview Lab → · Contrast checker → · Palette generator →

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