#401D82#401D82

#401D82 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.156 H 292.0°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#401D82
RGBrgb(64, 29, 130)
HSLhsl(261, 64%, 31%)
HSVhsv(261, 78%, 51%)
CMYKcmyk(50.8%, 77.7%, 0%, 49%)
CIE-LABlab(22.23, 40.53, -50.47)
CIE-LCHlch(22.23, 64.73, 308.77°)
OKLaboklab(34.78% 0.0585 -0.1449)
OKLCHoklch(34.78% 0.156 292)
XYZxyz(6.5818, 3.5802, 21.4590)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D82 #5F821D
analogous
#1D2C82 #401D82 #721D82
triadic
#401D82 #82401D #1D8240
tetradic
#401D82 #821D2C #5F821D #1D8272
square
#401D82 #821D2C #5F821D #1D8272
split-complementary
#401D82 #82721D #2C821D
monochromatic
#0F071E #271250 #401D82 #5928B4 #7644D5

Accessibility & contrast

On white

12.24
#401D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#401D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401D82
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D82#FFFFFF#000000##FFFFFF
##401D821.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003785
Deuteranopia (green-blind)
#003380
Tritanopia (blue-blind)
#2A394E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #401d82;
/* rgb */ color: rgb(64, 29, 130);
/* oklch */ color: oklch(34.8% 0.156 292.0);
Tailwind
colors: {
  custom: {
    50: '#7c5da7',
    500: '#401d82',
    950: '#000000',
  },
}
SCSS
$custom: #401d82;
$custom-light: #7c5da7;
$custom-dark: #000000;
JSON
{
  "hex": "#401d82",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 130
  },
  "hsl": {
    "h": 260.792,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34781,
    "c": 0.15624,
    "h": 292
  },
  "luminance": 0.0358
}

Semantic roles & 50–950 ramp

primary
#401D82
secondary
#8FB546
accent
#E741AD
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #401D82

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

Preview Lab → · Contrast checker → · Palette generator →

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