#401E85#401E85

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

Color values

HEX#401E85
RGBrgb(64, 30, 133)
HSLhsl(260, 63%, 32%)
HSVhsv(260, 77%, 52%)
CMYKcmyk(51.9%, 77.4%, 0%, 47.8%)
CIE-LABlab(22.69, 40.89, -51.60)
CIE-LCHlch(22.69, 65.84, 308.40°)
OKLaboklab(35.19% 0.0568 -0.1482)
OKLCHoklch(35.19% 0.159 291)
XYZxyz(6.8111, 3.7117, 22.5433)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E85 #63851E
analogous
#1E3085 #401E85 #741E85
triadic
#401E85 #85401E #1E8540
tetradic
#401E85 #851E30 #63851E #1E8574
square
#401E85 #851E30 #63851E #1E8574
split-complementary
#401E85 #85741E #30851E
monochromatic
#100721 #281353 #401E85 #5829B7 #7748D6

Accessibility & contrast

On white

12.05
#401E85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401E85
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E85#FFFFFF#000000##FFFFFF
##401E851.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401e85;
/* rgb */ color: rgb(64, 30, 133);
/* oklch */ color: oklch(35.2% 0.159 291.0);
Tailwind
colors: {
  custom: {
    50: '#7d5ea9',
    500: '#401e85',
    950: '#000000',
  },
}
SCSS
$custom: #401e85;
$custom-light: #7d5ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#401e85",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 133
  },
  "hsl": {
    "h": 259.806,
    "s": 63.19,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35194,
    "c": 0.15872,
    "h": 291
  },
  "luminance": 0.03712
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #401E85

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

Preview Lab → · Contrast checker → · Palette generator →

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