#401C81#401C81

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

Color values

HEX#401C81
RGBrgb(64, 28, 129)
HSLhsl(261, 64%, 31%)
HSVhsv(261, 78%, 51%)
CMYKcmyk(50.4%, 78.3%, 0%, 49.4%)
CIE-LABlab(21.96, 40.74, -50.28)
CIE-LCHlch(21.96, 64.71, 309.02°)
OKLaboklab(34.56% 0.0596 -0.1443)
OKLCHoklch(34.56% 0.156 292.4)
XYZxyz(6.4909, 3.5052, 21.0992)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C81 #5D811C
analogous
#1C2A81 #401C81 #721C81
triadic
#401C81 #81401C #1C8140
tetradic
#401C81 #811C2A #5D811C #1C8172
square
#401C81 #811C2A #5D811C #1C8172
split-complementary
#401C81 #81721C #2A811C
monochromatic
#0E061C #27114F #401C81 #5927B3 #7642D6

Accessibility & contrast

On white

12.35
#401C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401C81
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C81#FFFFFF#000000##FFFFFF
##401C811.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401c81;
/* rgb */ color: rgb(64, 28, 129);
/* oklch */ color: oklch(34.6% 0.156 292.4);
Tailwind
colors: {
  custom: {
    50: '#7c5ca7',
    500: '#401c81',
    950: '#000000',
  },
}
SCSS
$custom: #401c81;
$custom-light: #7c5ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#401c81",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 129
  },
  "hsl": {
    "h": 261.386,
    "s": 64.331,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34563,
    "c": 0.15615,
    "h": 292.4
  },
  "luminance": 0.03505
}

Semantic roles & 50–950 ramp

primary
#401C81
secondary
#8CB444
accent
#E740AC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401C81

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

Preview Lab → · Contrast checker → · Palette generator →

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