#401B86#401B86

#401B86 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.163 H 291.2°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#401B86
RGBrgb(64, 27, 134)
HSLhsl(261, 66%, 32%)
HSVhsv(261, 80%, 53%)
CMYKcmyk(52.2%, 79.9%, 0%, 47.5%)
CIE-LABlab(22.28, 42.63, -52.91)
CIE-LCHlch(22.28, 67.95, 308.86°)
OKLaboklab(34.94% 0.059 -0.152)
OKLCHoklch(34.94% 0.163 291.2)
XYZxyz(6.8081, 3.5948, 22.8848)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B86 #61861B
analogous
#1B2B86 #401B86 #761B86
triadic
#401B86 #86401B #1B8640
tetradic
#401B86 #861B2B #61861B #1B8676
square
#401B86 #861B2B #61861B #1B8676
split-complementary
#401B86 #86761B #2B861B
monochromatic
#0F0620 #281153 #401B86 #5825B9 #7642D9

Accessibility & contrast

On white

12.22
#401B86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#401B86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B86
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B86#FFFFFF#000000##FFFFFF
##401B861.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#003384
Tritanopia (blue-blind)
#283950
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #401b86;
/* rgb */ color: rgb(64, 27, 134);
/* oklch */ color: oklch(34.9% 0.163 291.2);
Tailwind
colors: {
  custom: {
    50: '#7d5caa',
    500: '#401b86',
    950: '#000000',
  },
}
SCSS
$custom: #401b86;
$custom-light: #7d5caa;
$custom-dark: #000000;
JSON
{
  "hex": "#401b86",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 134
  },
  "hsl": {
    "h": 260.748,
    "s": 66.46,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34936,
    "c": 0.16303,
    "h": 291.2
  },
  "luminance": 0.03595
}

Semantic roles & 50–950 ramp

primary
#401B86
secondary
#91B944
accent
#E93EAE
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #401B86

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

Preview Lab → · Contrast checker → · Palette generator →

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