#401D81#401D81

#401D81 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.155 H 292.3°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#401D81
RGBrgb(64, 29, 129)
HSLhsl(261, 63%, 31%)
HSVhsv(261, 78%, 51%)
CMYKcmyk(50.4%, 77.5%, 0%, 49.4%)
CIE-LABlab(22.14, 40.25, -50.00)
CIE-LCHlch(22.14, 64.18, 308.83°)
OKLaboklab(34.69% 0.0588 -0.1435)
OKLCHoklch(34.69% 0.155 292.3)
XYZxyz(6.5151, 3.5535, 21.1072)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D81 #5E811D
analogous
#1D2C81 #401D81 #721D81
triadic
#401D81 #81401D #1D8140
tetradic
#401D81 #811D2C #5E811D #1D8172
square
#401D81 #811D2C #5E811D #1D8172
split-complementary
#401D81 #81721D #2C811D
monochromatic
#0E071D #27124F #401D81 #5928B3 #7644D5

Accessibility & contrast

On white

12.27
#401D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#401D81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401D81
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D81#FFFFFF#000000##FFFFFF
##401D811.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#00337F
Tritanopia (blue-blind)
#2B384E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #401d81;
/* rgb */ color: rgb(64, 29, 129);
/* oklch */ color: oklch(34.7% 0.155 292.3);
Tailwind
colors: {
  custom: {
    50: '#7c5da6',
    500: '#401d81',
    950: '#000000',
  },
}
SCSS
$custom: #401d81;
$custom-light: #7c5da6;
$custom-dark: #000000;
JSON
{
  "hex": "#401d81",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 129
  },
  "hsl": {
    "h": 261,
    "s": 63.291,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34685,
    "c": 0.15506,
    "h": 292.3
  },
  "luminance": 0.03554
}

Semantic roles & 50–950 ramp

primary
#401D81
secondary
#8DB446
accent
#E641AD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401D81

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

Preview Lab → · Contrast checker → · Palette generator →

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