#201540#201540

#201540 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.7% C 0.078 H 291.0°. Best body text is #FFFFFF at 16.90:1 contrast (WCAG AA passes).

Color values

HEX#201540
RGBrgb(32, 21, 64)
HSLhsl(255, 51%, 17%)
HSVhsv(255, 67%, 25%)
CMYKcmyk(50%, 67.2%, 0%, 74.9%)
CIE-LABlab(10.66, 18.10, -25.61)
CIE-LCHlch(10.66, 31.36, 305.26°)
OKLaboklab(23.74% 0.0281 -0.073)
OKLCHoklch(23.74% 0.078 291)
XYZxyz(1.7890, 1.2135, 4.9895)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201540 #354015
analogous
#152040 #201540 #361540
triadic
#201540 #402015 #154020
tetradic
#201540 #401520 #354015 #154036
square
#201540 #401520 #354015 #154036
split-complementary
#201540 #403615 #204015
monochromatic
#0C0817 #0C0817 #201540 #37246E #4E339C

Accessibility & contrast

On white

16.90
#201540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #201540
16.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201540#FFFFFF#000000##FFFFFF
##2015401.0016.901.2416.90
#FFFFFF16.901.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E41
Deuteranopia (green-blind)
#001C3F
Tritanopia (blue-blind)
#171F28
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #201540;
/* rgb */ color: rgb(32, 21, 64);
/* oklch */ color: oklch(23.7% 0.078 291.0);
Tailwind
colors: {
  custom: {
    50: '#5e5275',
    500: '#201540',
    950: '#000000',
  },
}
SCSS
$custom: #201540;
$custom-light: #5e5275;
$custom-dark: #000000;
JSON
{
  "hex": "#201540",
  "rgb": {
    "r": 32,
    "g": 21,
    "b": 64
  },
  "hsl": {
    "h": 255.349,
    "s": 50.588,
    "l": 16.667
  },
  "oklch": {
    "l": 0.23741,
    "c": 0.07825,
    "h": 291
  },
  "luminance": 0.01214
}

Semantic roles & 50–950 ramp

primary
#201540
secondary
#687839
accent
#DA4EB6
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050208
muted
#79787B

Preview Lab

Preview with #201540

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

Preview Lab → · Contrast checker → · Palette generator →

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