#401D84#401D84

#401D84 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.159 H 291.4°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#401D84
RGBrgb(64, 29, 132)
HSLhsl(260, 64%, 32%)
HSVhsv(260, 78%, 52%)
CMYKcmyk(51.5%, 78%, 0%, 48.2%)
CIE-LABlab(22.42, 41.10, -51.42)
CIE-LCHlch(22.42, 65.83, 308.64°)
OKLaboklab(34.97% 0.0579 -0.1477)
OKLCHoklch(34.97% 0.159 291.4)
XYZxyz(6.7174, 3.6344, 22.1729)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D84 #61841D
analogous
#1D2E84 #401D84 #741D84
triadic
#401D84 #84401D #1D8440
tetradic
#401D84 #841D2E #61841D #1D8474
square
#401D84 #841D2E #61841D #1D8474
split-complementary
#401D84 #84741D #2E841D
monochromatic
#0F0720 #281252 #401D84 #5828B6 #7645D6

Accessibility & contrast

On white

12.16
#401D84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#401D84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401D84
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D84#FFFFFF#000000##FFFFFF
##401D841.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003787
Deuteranopia (green-blind)
#003382
Tritanopia (blue-blind)
#29394F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #401d84;
/* rgb */ color: rgb(64, 29, 132);
/* oklch */ color: oklch(35.0% 0.159 291.4);
Tailwind
colors: {
  custom: {
    50: '#7d5da9',
    500: '#401d84',
    950: '#000000',
  },
}
SCSS
$custom: #401d84;
$custom-light: #7d5da9;
$custom-dark: #000000;
JSON
{
  "hex": "#401d84",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 132
  },
  "hsl": {
    "h": 260.388,
    "s": 63.975,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34974,
    "c": 0.15861,
    "h": 291.4
  },
  "luminance": 0.03635
}

Semantic roles & 50–950 ramp

primary
#401D84
secondary
#91B746
accent
#E741AF
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #401D84

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

Preview Lab → · Contrast checker → · Palette generator →

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