#401E86#401E86

#401E86 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.160 H 290.7°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#401E86
RGBrgb(64, 30, 134)
HSLhsl(260, 63%, 32%)
HSVhsv(260, 78%, 53%)
CMYKcmyk(52.2%, 77.6%, 0%, 47.5%)
CIE-LABlab(22.79, 41.18, -52.07)
CIE-LCHlch(22.79, 66.39, 308.34°)
OKLaboklab(35.29% 0.0565 -0.1496)
OKLCHoklch(35.29% 0.16 290.7)
XYZxyz(6.8805, 3.7395, 22.9089)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E86 #64861E
analogous
#1E3086 #401E86 #741E86
triadic
#401E86 #86401E #1E8640
tetradic
#401E86 #861E30 #64861E #1E8674
square
#401E86 #861E30 #64861E #1E8674
split-complementary
#401E86 #86741E #30861E
monochromatic
#100822 #281354 #401E86 #5829B8 #7748D6

Accessibility & contrast

On white

12.01
#401E86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#401E86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401E86
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E86#FFFFFF#000000##FFFFFF
##401E861.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401e86;
/* rgb */ color: rgb(64, 30, 134);
/* oklch */ color: oklch(35.3% 0.160 290.7);
Tailwind
colors: {
  custom: {
    50: '#7d5eaa',
    500: '#401e86',
    950: '#000000',
  },
}
SCSS
$custom: #401e86;
$custom-light: #7d5eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#401e86",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 134
  },
  "hsl": {
    "h": 259.615,
    "s": 63.415,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35291,
    "c": 0.1599,
    "h": 290.7
  },
  "luminance": 0.0374
}

Semantic roles & 50–950 ramp

primary
#401E86
secondary
#93B847
accent
#E641B0
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #401E86

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

Preview Lab → · Contrast checker → · Palette generator →

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