#401E8E#401E8E

#401E8E is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.169 H 288.7°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#401E8E
RGBrgb(64, 30, 142)
HSLhsl(258, 65%, 34%)
HSVhsv(258, 79%, 56%)
CMYKcmyk(54.9%, 78.9%, 0%, 44.3%)
CIE-LABlab(23.58, 43.49, -55.78)
CIE-LCHlch(23.58, 70.73, 307.94°)
OKLaboklab(36.08% 0.0542 -0.1604)
OKLCHoklch(36.08% 0.169 288.7)
XYZxyz(7.4597, 3.9712, 25.9594)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E8E #6C8E1E
analogous
#1E348E #401E8E #781E8E
triadic
#401E8E #8E401E #1E8E40
tetradic
#401E8E #8E1E34 #6C8E1E #1E8E78
square
#401E8E #8E1E34 #6C8E1E #1E8E78
split-complementary
#401E8E #8E781E #348E1E
monochromatic
#120929 #29135B #401E8E #5729C1 #784DD9

Accessibility & contrast

On white

11.70
#401E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#401E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401E8E
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E8E#FFFFFF#000000##FFFFFF
##401E8E1.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#213E55
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #401e8e;
/* rgb */ color: rgb(64, 30, 142);
/* oklch */ color: oklch(36.1% 0.169 288.7);
Tailwind
colors: {
  custom: {
    50: '#7e5eb0',
    500: '#401e8e',
    950: '#000000',
  },
}
SCSS
$custom: #401e8e;
$custom-light: #7e5eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#401e8e",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 142
  },
  "hsl": {
    "h": 258.214,
    "s": 65.116,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36079,
    "c": 0.16934,
    "h": 288.7
  },
  "luminance": 0.03972
}

Semantic roles & 50–950 ramp

primary
#401E8E
secondary
#9ABC4C
accent
#E840B5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #401E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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