#201731#201731

#201731 is a very dark, muted violet. Relative luminance 0.011; OKLCH L 23.0% C 0.050 H 298.3°. Best body text is #FFFFFF at 17.10:1 contrast (WCAG AA passes).

Color values

HEX#201731
RGBrgb(32, 23, 49)
HSLhsl(261, 36%, 14%)
HSVhsv(261, 53%, 19%)
CMYKcmyk(34.7%, 53.1%, 0%, 80.8%)
CIE-LABlab(10.12, 11.60, -15.70)
CIE-LCHlch(10.12, 19.52, 306.47°)
OKLaboklab(22.99% 0.0237 -0.044)
OKLCHoklch(22.99% 0.05 298.3)
XYZxyz(1.4563, 1.1416, 3.0488)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201731 #283117
analogous
#171B31 #201731 #2D1731
triadic
#201731 #312017 #173120
tetradic
#201731 #31171B #283117 #17312D
square
#201731 #31171B #283117 #17312D
split-complementary
#201731 #312D17 #1B3117
monochromatic
#0E0A15 #0E0A15 #201731 #3B2B5B #563E84

Accessibility & contrast

On white

17.10
#201731 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#201731 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #201731
17.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201731#FFFFFF#000000##FFFFFF
##2017311.0017.101.2317.10
#FFFFFF17.101.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F1C32
Deuteranopia (green-blind)
#111B30
Tritanopia (blue-blind)
#1D1C21
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #201731;
/* rgb */ color: rgb(32, 23, 49);
/* oklch */ color: oklch(23.0% 0.050 298.3);
Tailwind
colors: {
  custom: {
    50: '#5c5469',
    500: '#201731',
    950: '#000000',
  },
}
SCSS
$custom: #201731;
$custom-light: #5c5469;
$custom-dark: #000000;
JSON
{
  "hex": "#201731",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 49
  },
  "hsl": {
    "h": 260.769,
    "s": 36.111,
    "l": 14.118
  },
  "oklch": {
    "l": 0.22985,
    "c": 0.04998,
    "h": 298.3
  },
  "luminance": 0.01142
}

Semantic roles & 50–950 ramp

primary
#201731
secondary
#58673D
accent
#CC5CA5
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040206
muted
#79787A

Preview Lab

Preview with #201731

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

Preview Lab → · Contrast checker → · Palette generator →

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