#401E91#401E91

#401E91 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.173 H 287.9°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#401E91
RGBrgb(64, 30, 145)
HSLhsl(258, 66%, 34%)
HSVhsv(258, 79%, 57%)
CMYKcmyk(55.9%, 79.3%, 0%, 43.1%)
CIE-LABlab(23.88, 44.35, -57.15)
CIE-LCHlch(23.88, 72.34, 307.81°)
OKLaboklab(36.38% 0.0533 -0.1644)
OKLCHoklch(36.38% 0.173 287.9)
XYZxyz(7.6879, 4.0625, 27.1616)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E91 #6F911E
analogous
#1E3691 #401E91 #7A1E91
triadic
#401E91 #91401E #1E9140
tetradic
#401E91 #911E36 #6F911E #1E917A
square
#401E91 #911E36 #6F911E #1E917A
split-complementary
#401E91 #917A1E #36911E
monochromatic
#13092C #2A145E #401E91 #5628C4 #784FDB

Accessibility & contrast

On white

11.59
#401E91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#401E91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401E91
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E91#FFFFFF#000000##FFFFFF
##401E911.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B94
Deuteranopia (green-blind)
#00368F
Tritanopia (blue-blind)
#1E3F57
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #401e91;
/* rgb */ color: rgb(64, 30, 145);
/* oklch */ color: oklch(36.4% 0.173 287.9);
Tailwind
colors: {
  custom: {
    50: '#7f5eb2',
    500: '#401e91',
    950: '#000000',
  },
}
SCSS
$custom: #401e91;
$custom-light: #7f5eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#401e91",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 145
  },
  "hsl": {
    "h": 257.739,
    "s": 65.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3638,
    "c": 0.17285,
    "h": 287.9
  },
  "luminance": 0.04063
}

Semantic roles & 50–950 ramp

primary
#401E91
secondary
#9CBD4D
accent
#E93FB7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #401E91

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

Preview Lab → · Contrast checker → · Palette generator →

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