#401A84#401A84

#401A84 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.162 H 291.9°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#401A84
RGBrgb(64, 26, 132)
HSLhsl(262, 67%, 31%)
HSVhsv(262, 80%, 52%)
CMYKcmyk(51.5%, 80.3%, 0%, 48.2%)
CIE-LABlab(21.92, 42.54, -52.24)
CIE-LCHlch(21.92, 67.37, 309.15°)
OKLaboklab(34.63% 0.0604 -0.15)
OKLCHoklch(34.63% 0.162 291.9)
XYZxyz(6.6474, 3.4945, 22.1496)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401A84 #5E841A
analogous
#1A2984 #401A84 #751A84
triadic
#401A84 #84401A #1A8440
tetradic
#401A84 #841A29 #5E841A #1A8475
square
#401A84 #841A29 #5E841A #1A8475
split-complementary
#401A84 #84751A #29841A
monochromatic
#0E061E #271051 #401A84 #5924B7 #763FD9

Accessibility & contrast

On white

12.36
#401A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#401A84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401A84
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401A84#FFFFFF#000000##FFFFFF
##401A841.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003687
Deuteranopia (green-blind)
#003282
Tritanopia (blue-blind)
#29384F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #401a84;
/* rgb */ color: rgb(64, 26, 132);
/* oklch */ color: oklch(34.6% 0.162 291.9);
Tailwind
colors: {
  custom: {
    50: '#7d5ca9',
    500: '#401a84',
    950: '#000000',
  },
}
SCSS
$custom: #401a84;
$custom-light: #7d5ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#401a84",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 132
  },
  "hsl": {
    "h": 261.509,
    "s": 67.089,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34625,
    "c": 0.16172,
    "h": 291.9
  },
  "luminance": 0.03495
}

Semantic roles & 50–950 ramp

primary
#401A84
secondary
#8EB842
accent
#EA3EAC
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #401A84

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

Preview Lab → · Contrast checker → · Palette generator →

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