#201840#201840

#201840 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.4% C 0.073 H 289.0°. Best body text is #FFFFFF at 16.59:1 contrast (WCAG AA passes).

Color values

HEX#201840
RGBrgb(32, 24, 64)
HSLhsl(252, 45%, 17%)
HSVhsv(252, 63%, 25%)
CMYKcmyk(50%, 62.5%, 0%, 74.9%)
CIE-LABlab(11.49, 15.96, -24.27)
CIE-LCHlch(11.49, 29.05, 303.33°)
OKLaboklab(24.35% 0.0238 -0.0691)
OKLCHoklch(24.35% 0.073 289)
XYZxyz(1.8475, 1.3304, 5.0090)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201840 #384018
analogous
#182440 #201840 #341840
triadic
#201840 #402018 #184020
tetradic
#201840 #401824 #384018 #184034
square
#201840 #401824 #384018 #184034
split-complementary
#201840 #403418 #244018
monochromatic
#0B0816 #0B0816 #201840 #36296D #4D3999

Accessibility & contrast

On white

16.59
#201840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#201840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #201840
16.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201840#FFFFFF#000000##FFFFFF
##2018401.0016.591.2716.59
#FFFFFF16.591.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041F41
Deuteranopia (green-blind)
#051D3F
Tritanopia (blue-blind)
#162129
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #201840;
/* rgb */ color: rgb(32, 24, 64);
/* oklch */ color: oklch(24.4% 0.073 289.0);
Tailwind
colors: {
  custom: {
    50: '#5e5575',
    500: '#201840',
    950: '#000000',
  },
}
SCSS
$custom: #201840;
$custom-light: #5e5575;
$custom-dark: #000000;
JSON
{
  "hex": "#201840",
  "rgb": {
    "r": 32,
    "g": 24,
    "b": 64
  },
  "hsl": {
    "h": 252,
    "s": 45.455,
    "l": 17.255
  },
  "oklch": {
    "l": 0.24353,
    "c": 0.07308,
    "h": 289
  },
  "luminance": 0.01331
}

Semantic roles & 50–950 ramp

primary
#201840
secondary
#6B773D
accent
#D553BB
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040308
muted
#79787B

Preview Lab

Preview with #201840

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

Preview Lab → · Contrast checker → · Palette generator →

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