#201542#201542

#201542 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.9% C 0.081 H 290.1°. Best body text is #FFFFFF at 16.84:1 contrast (WCAG AA passes).

Color values

HEX#201542
RGBrgb(32, 21, 66)
HSLhsl(255, 52%, 17%)
HSVhsv(255, 68%, 26%)
CMYKcmyk(51.5%, 68.2%, 0%, 74.1%)
CIE-LABlab(10.83, 18.80, -26.75)
CIE-LCHlch(10.83, 32.69, 305.09°)
OKLaboklab(23.92% 0.028 -0.0764)
OKLCHoklch(23.92% 0.081 290.1)
XYZxyz(1.8469, 1.2367, 5.2946)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201542 #374215
analogous
#152142 #201542 #371542
triadic
#201542 #422015 #154220
tetradic
#201542 #421521 #374215 #154237
square
#201542 #421521 #374215 #154237
split-complementary
#201542 #423715 #214215
monochromatic
#0B0717 #0B0717 #201542 #372470 #4D339F

Accessibility & contrast

On white

16.84
#201542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#201542 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #201542
16.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201542#FFFFFF#000000##FFFFFF
##2015421.0016.841.2516.84
#FFFFFF16.841.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E43
Deuteranopia (green-blind)
#001C41
Tritanopia (blue-blind)
#161F29
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #201542;
/* rgb */ color: rgb(32, 21, 66);
/* oklch */ color: oklch(23.9% 0.081 290.1);
Tailwind
colors: {
  custom: {
    50: '#5f5277',
    500: '#201542',
    950: '#000000',
  },
}
SCSS
$custom: #201542;
$custom-light: #5f5277;
$custom-dark: #000000;
JSON
{
  "hex": "#201542",
  "rgb": {
    "r": 32,
    "g": 21,
    "b": 66
  },
  "hsl": {
    "h": 254.667,
    "s": 51.724,
    "l": 17.059
  },
  "oklch": {
    "l": 0.23918,
    "c": 0.08136,
    "h": 290.1
  },
  "luminance": 0.01237
}

Semantic roles & 50–950 ramp

primary
#201542
secondary
#6A7A39
accent
#DB4DB8
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050208
muted
#79787B

Preview Lab

Preview with #201542

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

Preview Lab → · Contrast checker → · Palette generator →

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