#201831#201831

#201831 is a very dark, muted violet. Relative luminance 0.012; OKLCH L 23.2% C 0.048 H 297.3°. Best body text is #FFFFFF at 16.98:1 contrast (WCAG AA passes).

Color values

HEX#201831
RGBrgb(32, 24, 49)
HSLhsl(259, 34%, 14%)
HSVhsv(259, 51%, 19%)
CMYKcmyk(34.7%, 51%, 0%, 80.8%)
CIE-LABlab(10.42, 10.86, -15.22)
CIE-LCHlch(10.42, 18.69, 305.51°)
OKLaboklab(23.22% 0.022 -0.0426)
OKLCHoklch(23.22% 0.048 297.3)
XYZxyz(1.4765, 1.1821, 3.0555)
Luminance0.0118 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201831 #293118
analogous
#181D31 #201831 #2D1831
triadic
#201831 #312018 #183120
tetradic
#201831 #31181D #293118 #18312D
square
#201831 #31181D #293118 #18312D
split-complementary
#201831 #312D18 #1D3118
monochromatic
#0D0A15 #0D0A15 #201831 #3B2C5A #564083

Accessibility & contrast

On white

16.98
#201831 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#201831 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #201831
16.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201831#FFFFFF#000000##FFFFFF
##2018311.0016.981.2416.98
#FFFFFF16.981.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#111C32
Deuteranopia (green-blind)
#121C30
Tritanopia (blue-blind)
#1C1C22
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #201831;
/* rgb */ color: rgb(32, 24, 49);
/* oklch */ color: oklch(23.2% 0.048 297.3);
Tailwind
colors: {
  custom: {
    50: '#5c5469',
    500: '#201831',
    950: '#000000',
  },
}
SCSS
$custom: #201831;
$custom-light: #5c5469;
$custom-dark: #000000;
JSON
{
  "hex": "#201831",
  "rgb": {
    "r": 32,
    "g": 24,
    "b": 49
  },
  "hsl": {
    "h": 259.2,
    "s": 34.247,
    "l": 14.314
  },
  "oklch": {
    "l": 0.23215,
    "c": 0.04793,
    "h": 297.3
  },
  "luminance": 0.01182
}

Semantic roles & 50–950 ramp

primary
#201831
secondary
#5A663F
accent
#CA5DA7
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040206
muted
#79787A

Preview Lab

Preview with #201831

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

Preview Lab → · Contrast checker → · Palette generator →

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