#200840#200840

#200840 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.6% C 0.098 H 296.7°. Best body text is #FFFFFF at 17.95:1 contrast (WCAG AA passes).

Color values

HEX#200840
RGBrgb(32, 8, 64)
HSLhsl(266, 78%, 14%)
HSVhsv(266, 88%, 25%)
CMYKcmyk(50%, 87.5%, 0%, 74.9%)
CIE-LABlab(7.69, 26.25, -30.44)
CIE-LCHlch(7.69, 40.20, 310.78°)
OKLaboklab(21.61% 0.044 -0.0872)
OKLCHoklch(21.61% 0.098 296.7)
XYZxyz(1.6077, 0.8509, 4.9290)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#200840 #284008
analogous
#080C40 #200840 #3C0840
triadic
#200840 #402008 #084020
tetradic
#200840 #40080C #284008 #08403C
square
#200840 #40080C #284008 #08403C
split-complementary
#200840 #403C08 #0C4008
monochromatic
#0E031B #0E031B #200840 #3B0F76 #5616AD

Accessibility & contrast

On white

17.95
#200840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#200840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #200840
17.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##200840#FFFFFF#000000##FFFFFF
##2008401.0017.951.1717.95
#FFFFFF17.951.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001742
Deuteranopia (green-blind)
#00163F
Tritanopia (blue-blind)
#171724
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #200840;
/* rgb */ color: rgb(32, 8, 64);
/* oklch */ color: oklch(21.6% 0.098 296.7);
Tailwind
colors: {
  custom: {
    50: '#604a75',
    500: '#200840',
    950: '#000000',
  },
}
SCSS
$custom: #200840;
$custom-light: #604a75;
$custom-dark: #000000;
JSON
{
  "hex": "#200840",
  "rgb": {
    "r": 32,
    "g": 8,
    "b": 64
  },
  "hsl": {
    "h": 265.714,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.21608,
    "c": 0.09766,
    "h": 296.7
  },
  "luminance": 0.00851
}

Semantic roles & 50–950 ramp

primary
#200840
secondary
#587E25
accent
#F434A2
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #200840

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

Preview Lab → · Contrast checker → · Palette generator →

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