#401B82#401B82

#401B82 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.158 H 292.3°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#401B82
RGBrgb(64, 27, 130)
HSLhsl(262, 66%, 31%)
HSVhsv(262, 79%, 51%)
CMYKcmyk(50.8%, 79.2%, 0%, 49%)
CIE-LABlab(21.89, 41.51, -51.03)
CIE-LCHlch(21.89, 65.78, 309.12°)
OKLaboklab(34.54% 0.0602 -0.1465)
OKLCHoklch(34.54% 0.158 292.3)
XYZxyz(6.5344, 3.4853, 21.4432)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B82 #5D821B
analogous
#1B2A82 #401B82 #731B82
triadic
#401B82 #82401B #1B8240
tetradic
#401B82 #821B2A #5D821B #1B8273
square
#401B82 #821B2A #5D821B #1B8273
split-complementary
#401B82 #82731B #2A821B
monochromatic
#0E061D #27104F #401B82 #5926B5 #7640D7

Accessibility & contrast

On white

12.37
#401B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401B82
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B82#FFFFFF#000000##FFFFFF
##401B821.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003685
Deuteranopia (green-blind)
#003280
Tritanopia (blue-blind)
#2A384E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #401b82;
/* rgb */ color: rgb(64, 27, 130);
/* oklch */ color: oklch(34.5% 0.158 292.3);
Tailwind
colors: {
  custom: {
    50: '#7c5ca7',
    500: '#401b82',
    950: '#000000',
  },
}
SCSS
$custom: #401b82;
$custom-light: #7c5ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#401b82",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 261.553,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34542,
    "c": 0.15839,
    "h": 292.3
  },
  "luminance": 0.03486
}

Semantic roles & 50–950 ramp

primary
#401B82
secondary
#8CB643
accent
#E93FAC
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #401B82

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

Preview Lab → · Contrast checker → · Palette generator →

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