#401B81#401B81

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

Color values

HEX#401B81
RGBrgb(64, 27, 129)
HSLhsl(262, 65%, 31%)
HSVhsv(262, 79%, 51%)
CMYKcmyk(50.4%, 79.1%, 0%, 49.4%)
CIE-LABlab(21.79, 41.22, -50.56)
CIE-LCHlch(21.79, 65.23, 309.19°)
OKLaboklab(34.45% 0.0605 -0.1451)
OKLCHoklch(34.45% 0.157 292.6)
XYZxyz(6.4676, 3.4586, 21.0914)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B81 #5C811B
analogous
#1B2981 #401B81 #731B81
triadic
#401B81 #81401B #1B8140
tetradic
#401B81 #811B29 #5C811B #1B8173
square
#401B81 #811B29 #5C811B #1B8173
split-complementary
#401B81 #81731B #29811B
monochromatic
#0E061C #27104E #401B81 #5926B4 #763FD7

Accessibility & contrast

On white

12.41
#401B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#401B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B81
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B81#FFFFFF#000000##FFFFFF
##401B811.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#00327F
Tritanopia (blue-blind)
#2B374D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #401b81;
/* rgb */ color: rgb(64, 27, 129);
/* oklch */ color: oklch(34.4% 0.157 292.6);
Tailwind
colors: {
  custom: {
    50: '#7c5ca7',
    500: '#401b81',
    950: '#000000',
  },
}
SCSS
$custom: #401b81;
$custom-light: #7c5ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#401b81",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 129
  },
  "hsl": {
    "h": 261.765,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34445,
    "c": 0.15722,
    "h": 292.6
  },
  "luminance": 0.03459
}

Semantic roles & 50–950 ramp

primary
#401B81
secondary
#8BB543
accent
#E83FAB
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401B81

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

Preview Lab → · Contrast checker → · Palette generator →

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