#201231#201231

#201231 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 21.9% C 0.060 H 302.6°. Best body text is #FFFFFF at 17.61:1 contrast (WCAG AA passes).

Color values

HEX#201231
RGBrgb(32, 18, 49)
HSLhsl(267, 46%, 13%)
HSVhsv(267, 63%, 19%)
CMYKcmyk(34.7%, 63.3%, 0%, 80.8%)
CIE-LABlab(8.67, 15.25, -18.00)
CIE-LCHlch(8.67, 23.60, 310.27°)
OKLaboklab(21.9% 0.0324 -0.0507)
OKLCHoklch(21.9% 0.06 302.6)
XYZxyz(1.3662, 0.9614, 3.0187)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201231 #233112
analogous
#121331 #201231 #2F1231
triadic
#201231 #312012 #123120
tetradic
#201231 #311213 #233112 #12312F
square
#201231 #311213 #233112 #12312F
split-complementary
#201231 #312F12 #133112
monochromatic
#0F0816 #0F0816 #201231 #3D225E #5A338B

Accessibility & contrast

On white

17.61
#201231 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#201231 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #201231
17.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201231#FFFFFF#000000##FFFFFF
##2012311.0017.611.1917.61
#FFFFFF17.611.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071932
Deuteranopia (green-blind)
#0C1930
Tritanopia (blue-blind)
#1D181F
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #201231;
/* rgb */ color: rgb(32, 18, 49);
/* oklch */ color: oklch(21.9% 0.060 302.6);
Tailwind
colors: {
  custom: {
    50: '#5d5069',
    500: '#201231',
    950: '#000000',
  },
}
SCSS
$custom: #201231;
$custom-light: #5d5069;
$custom-dark: #000000;
JSON
{
  "hex": "#201231",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 49
  },
  "hsl": {
    "h": 267.097,
    "s": 46.269,
    "l": 13.137
  },
  "oklch": {
    "l": 0.219,
    "c": 0.06018,
    "h": 302.6
  },
  "luminance": 0.00961
}

Semantic roles & 50–950 ramp

primary
#201231
secondary
#526936
accent
#D6529A
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040206
muted
#79787A

Preview Lab

Preview with #201231

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

Preview Lab → · Contrast checker → · Palette generator →

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