#401D80#401D80

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

Color values

HEX#401D80
RGBrgb(64, 29, 128)
HSLhsl(261, 63%, 31%)
HSVhsv(261, 77%, 50%)
CMYKcmyk(50%, 77.3%, 0%, 49.8%)
CIE-LABlab(22.04, 39.96, -49.52)
CIE-LCHlch(22.04, 63.63, 308.90°)
OKLaboklab(34.59% 0.059 -0.1421)
OKLCHoklch(34.59% 0.154 292.6)
XYZxyz(6.4489, 3.5270, 20.7589)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D80 #5D801D
analogous
#1D2B80 #401D80 #711D80
triadic
#401D80 #80401D #1D8040
tetradic
#401D80 #801D2B #5D801D #1D8071
square
#401D80 #801D2B #5D801D #1D8071
split-complementary
#401D80 #80711D #2B801D
monochromatic
#0E061C #27124E #401D80 #5928B2 #7643D4

Accessibility & contrast

On white

12.31
#401D80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401D80
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D80#FFFFFF#000000##FFFFFF
##401D801.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003683
Deuteranopia (green-blind)
#00337E
Tritanopia (blue-blind)
#2C384D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #401d80;
/* rgb */ color: rgb(64, 29, 128);
/* oklch */ color: oklch(34.6% 0.154 292.6);
Tailwind
colors: {
  custom: {
    50: '#7c5da6',
    500: '#401d80',
    950: '#000000',
  },
}
SCSS
$custom: #401d80;
$custom-light: #7c5da6;
$custom-dark: #000000;
JSON
{
  "hex": "#401d80",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 128
  },
  "hsl": {
    "h": 261.212,
    "s": 63.057,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34589,
    "c": 0.15387,
    "h": 292.6
  },
  "luminance": 0.03527
}

Semantic roles & 50–950 ramp

primary
#401D80
secondary
#8CB345
accent
#E642AC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401D80

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

Preview Lab → · Contrast checker → · Palette generator →

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