#401C86#401C86

#401C86 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.162 H 291.0°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#401C86
RGBrgb(64, 28, 134)
HSLhsl(260, 65%, 32%)
HSVhsv(260, 79%, 53%)
CMYKcmyk(52.2%, 79.1%, 0%, 47.5%)
CIE-LABlab(22.45, 42.16, -52.63)
CIE-LCHlch(22.45, 67.44, 308.70°)
OKLaboklab(35.05% 0.0582 -0.1512)
OKLCHoklch(35.05% 0.162 291)
XYZxyz(6.8315, 3.6414, 22.8926)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C86 #62861C
analogous
#1C2D86 #401C86 #751C86
triadic
#401C86 #86401C #1C8640
tetradic
#401C86 #861C2D #62861C #1C8675
square
#401C86 #861C2D #62861C #1C8675
split-complementary
#401C86 #86751C #2D861C
monochromatic
#100721 #281153 #401C86 #5827B9 #7744D8

Accessibility & contrast

On white

12.15
#401C86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#401C86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401C86
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C86#FFFFFF#000000##FFFFFF
##401C861.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401c86;
/* rgb */ color: rgb(64, 28, 134);
/* oklch */ color: oklch(35.1% 0.162 291.0);
Tailwind
colors: {
  custom: {
    50: '#7d5daa',
    500: '#401c86',
    950: '#000000',
  },
}
SCSS
$custom: #401c86;
$custom-light: #7d5daa;
$custom-dark: #000000;
JSON
{
  "hex": "#401c86",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 134
  },
  "hsl": {
    "h": 260.377,
    "s": 65.432,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35051,
    "c": 0.16201,
    "h": 291
  },
  "luminance": 0.03642
}

Semantic roles & 50–950 ramp

primary
#401C86
secondary
#92B945
accent
#E83FAF
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #401C86

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

Preview Lab → · Contrast checker → · Palette generator →

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