#401B84#401B84

#401B84 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.161 H 291.8°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#401B84
RGBrgb(64, 27, 132)
HSLhsl(261, 66%, 31%)
HSVhsv(261, 80%, 52%)
CMYKcmyk(51.5%, 79.5%, 0%, 48.2%)
CIE-LABlab(22.09, 42.07, -51.97)
CIE-LCHlch(22.09, 66.87, 308.99°)
OKLaboklab(34.74% 0.0596 -0.1493)
OKLCHoklch(34.74% 0.161 291.8)
XYZxyz(6.6700, 3.5395, 22.1571)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B84 #5F841B
analogous
#1B2A84 #401B84 #741B84
triadic
#401B84 #84401B #1B8440
tetradic
#401B84 #841B2A #5F841B #1B8474
square
#401B84 #841B2A #5F841B #1B8474
split-complementary
#401B84 #84741B #2A841B
monochromatic
#0F061E #271151 #401B84 #5925B7 #7641D8

Accessibility & contrast

On white

12.30
#401B84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401B84
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B84#FFFFFF#000000##FFFFFF
##401B841.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401b84;
/* rgb */ color: rgb(64, 27, 132);
/* oklch */ color: oklch(34.7% 0.161 291.8);
Tailwind
colors: {
  custom: {
    50: '#7d5ca9',
    500: '#401b84',
    950: '#000000',
  },
}
SCSS
$custom: #401b84;
$custom-light: #7d5ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#401b84",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 132
  },
  "hsl": {
    "h": 261.143,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34738,
    "c": 0.16071,
    "h": 291.8
  },
  "luminance": 0.0354
}

Semantic roles & 50–950 ramp

primary
#401B84
secondary
#8FB743
accent
#E93FAD
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #401B84

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

Preview Lab → · Contrast checker → · Palette generator →

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