#201828#201828

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

Color values

HEX#201828
RGBrgb(32, 24, 40)
HSLhsl(270, 25%, 13%)
HSVhsv(270, 40%, 16%)
CMYKcmyk(20%, 40%, 0%, 84.3%)
CIE-LABlab(9.90, 8.08, -9.42)
CIE-LCHlch(9.90, 12.41, 310.61°)
OKLaboklab(22.65% 0.0194 -0.0259)
OKLCHoklch(22.65% 0.032 306.9)
XYZxyz(1.3052, 1.1136, 2.1532)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201828 #202818
analogous
#181828 #201828 #281828
triadic
#201828 #282018 #182820
tetradic
#201828 #281818 #202818 #182828
square
#201828 #281818 #202818 #182828
split-complementary
#201828 #282818 #182818
monochromatic
#0F0B13 #0F0B13 #201828 #3F2F4E #5D4674

Accessibility & contrast

On white

17.17
#201828 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #201828
17.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201828#FFFFFF#000000##FFFFFF
##2018281.0017.171.2217.17
#FFFFFF17.171.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #201828;
/* rgb */ color: rgb(32, 24, 40);
/* oklch */ color: oklch(22.6% 0.032 306.9);
Tailwind
colors: {
  custom: {
    50: '#5b5462',
    500: '#201828',
    950: '#000000',
  },
}
SCSS
$custom: #201828;
$custom-light: #5b5462;
$custom-dark: #000000;
JSON
{
  "hex": "#201828",
  "rgb": {
    "r": 32,
    "g": 24,
    "b": 40
  },
  "hsl": {
    "h": 270,
    "s": 25,
    "l": 12.549
  },
  "oklch": {
    "l": 0.22649,
    "c": 0.03238,
    "h": 306.9
  },
  "luminance": 0.01114
}

Semantic roles & 50–950 ramp

primary
#201828
secondary
#4E5C40
accent
#C16694
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#040205
muted
#797879

Preview Lab

Preview with #201828

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

Preview Lab → · Contrast checker → · Palette generator →

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