#201239#201239

#201239 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.5% C 0.073 H 296.7°. Best body text is #FFFFFF at 17.40:1 contrast (WCAG AA passes).

Color values

HEX#201239
RGBrgb(32, 18, 57)
HSLhsl(262, 52%, 15%)
HSVhsv(262, 68%, 22%)
CMYKcmyk(43.9%, 68.4%, 0%, 77.6%)
CIE-LABlab(9.28, 17.84, -22.83)
CIE-LCHlch(9.28, 28.97, 307.99°)
OKLaboklab(22.55% 0.0326 -0.0649)
OKLCHoklch(22.55% 0.073 296.7)
XYZxyz(1.5503, 1.0351, 3.9882)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201239 #2B3912
analogous
#121839 #201239 #341239
triadic
#201239 #392012 #123920
tetradic
#201239 #391218 #2B3912 #123934
square
#201239 #391218 #2B3912 #123934
split-complementary
#201239 #393412 #183912
monochromatic
#0D0717 #0D0717 #201239 #3A2168 #542F96

Accessibility & contrast

On white

17.40
#201239 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#201239 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #201239
17.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201239#FFFFFF#000000##FFFFFF
##2012391.0017.401.2117.40
#FFFFFF17.401.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011A3A
Deuteranopia (green-blind)
#041A38
Tritanopia (blue-blind)
#1A1A23
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #201239;
/* rgb */ color: rgb(32, 18, 57);
/* oklch */ color: oklch(22.5% 0.073 296.7);
Tailwind
colors: {
  custom: {
    50: '#5e5070',
    500: '#201239',
    950: '#000000',
  },
}
SCSS
$custom: #201239;
$custom-light: #5e5070;
$custom-dark: #000000;
JSON
{
  "hex": "#201239",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 57
  },
  "hsl": {
    "h": 261.538,
    "s": 52,
    "l": 14.706
  },
  "oklch": {
    "l": 0.22549,
    "c": 0.07262,
    "h": 296.7
  },
  "luminance": 0.01035
}

Semantic roles & 50–950 ramp

primary
#201239
secondary
#5C7235
accent
#DB4CA8
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040207
muted
#79787A

Preview Lab

Preview with #201239

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

Preview Lab → · Contrast checker → · Palette generator →

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