#201040#201040

#201040 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.8% C 0.086 H 293.7°. Best body text is #FFFFFF at 17.36:1 contrast (WCAG AA passes).

Color values

HEX#201040
RGBrgb(32, 16, 64)
HSLhsl(260, 60%, 16%)
HSVhsv(260, 75%, 25%)
CMYKcmyk(50%, 75%, 0%, 74.9%)
CIE-LABlab(9.38, 21.50, -27.67)
CIE-LCHlch(9.38, 35.05, 307.85°)
OKLaboklab(22.82% 0.0348 -0.0791)
OKLCHoklch(22.82% 0.086 293.7)
XYZxyz(1.7061, 1.0478, 4.9618)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201040 #304010
analogous
#101840 #201040 #381040
triadic
#201040 #402010 #104020
tetradic
#201040 #401018 #304010 #104038
square
#201040 #401018 #304010 #104038
split-complementary
#201040 #403810 #184010
monochromatic
#0C0618 #0C0618 #201040 #381C71 #5128A2

Accessibility & contrast

On white

17.36
#201040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #201040
17.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201040#FFFFFF#000000##FFFFFF
##2010401.0017.361.2117.36
#FFFFFF17.361.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B41
Deuteranopia (green-blind)
#00193F
Tritanopia (blue-blind)
#171B26
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #201040;
/* rgb */ color: rgb(32, 16, 64);
/* oklch */ color: oklch(22.8% 0.086 293.7);
Tailwind
colors: {
  custom: {
    50: '#5f4f75',
    500: '#201040',
    950: '#000000',
  },
}
SCSS
$custom: #201040;
$custom-light: #5f4f75;
$custom-dark: #000000;
JSON
{
  "hex": "#201040",
  "rgb": {
    "r": 32,
    "g": 16,
    "b": 64
  },
  "hsl": {
    "h": 260,
    "s": 60,
    "l": 15.686
  },
  "oklch": {
    "l": 0.22816,
    "c": 0.08641,
    "h": 293.7
  },
  "luminance": 0.01048
}

Semantic roles & 50–950 ramp

primary
#201040
secondary
#627A32
accent
#E345AE
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050208
muted
#79787B

Preview Lab

Preview with #201040

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

Preview Lab → · Contrast checker → · Palette generator →

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