#401D86#401D86

#401D86 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.161 H 290.9°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#401D86
RGBrgb(64, 29, 134)
HSLhsl(260, 64%, 32%)
HSVhsv(260, 78%, 53%)
CMYKcmyk(52.2%, 78.4%, 0%, 47.5%)
CIE-LABlab(22.62, 41.68, -52.36)
CIE-LCHlch(22.62, 66.92, 308.52°)
OKLaboklab(35.17% 0.0574 -0.1504)
OKLCHoklch(35.17% 0.161 290.9)
XYZxyz(6.8556, 3.6897, 22.9006)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D86 #63861D
analogous
#1D2F86 #401D86 #751D86
triadic
#401D86 #86401D #1D8640
tetradic
#401D86 #861D2F #63861D #1D8675
square
#401D86 #861D2F #63861D #1D8675
split-complementary
#401D86 #86751D #2F861D
monochromatic
#100721 #281254 #401D86 #5828B8 #7746D7

Accessibility & contrast

On white

12.08
#401D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#401D86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401D86
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D86#FFFFFF#000000##FFFFFF
##401D861.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#003484
Tritanopia (blue-blind)
#283A50
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #401d86;
/* rgb */ color: rgb(64, 29, 134);
/* oklch */ color: oklch(35.2% 0.161 290.9);
Tailwind
colors: {
  custom: {
    50: '#7d5daa',
    500: '#401d86',
    950: '#000000',
  },
}
SCSS
$custom: #401d86;
$custom-light: #7d5daa;
$custom-dark: #000000;
JSON
{
  "hex": "#401d86",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 134
  },
  "hsl": {
    "h": 260,
    "s": 64.417,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35169,
    "c": 0.16097,
    "h": 290.9
  },
  "luminance": 0.0369
}

Semantic roles & 50–950 ramp

primary
#401D86
secondary
#93B946
accent
#E740B0
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #401D86

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

Preview Lab → · Contrast checker → · Palette generator →

#401D86 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva