#401E81#401E81

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

Color values

HEX#401E81
RGBrgb(64, 30, 129)
HSLhsl(261, 62%, 31%)
HSVhsv(261, 77%, 51%)
CMYKcmyk(50.4%, 76.7%, 0%, 49.4%)
CIE-LABlab(22.31, 39.74, -49.71)
CIE-LCHlch(22.31, 63.64, 308.64°)
OKLaboklab(34.81% 0.0579 -0.1426)
OKLCHoklch(34.81% 0.154 292.1)
XYZxyz(6.5400, 3.6033, 21.1155)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E81 #5F811E
analogous
#1E2D81 #401E81 #711E81
triadic
#401E81 #81401E #1E8140
tetradic
#401E81 #811E2D #5F811E #1E8171
square
#401E81 #811E2D #5F811E #1E8171
split-complementary
#401E81 #81711E #2D811E
monochromatic
#0F071E #27124F #401E81 #592AB3 #7646D4

Accessibility & contrast

On white

12.20
#401E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401E81
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E81#FFFFFF#000000##FFFFFF
##401E811.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401e81;
/* rgb */ color: rgb(64, 30, 129);
/* oklch */ color: oklch(34.8% 0.154 292.1);
Tailwind
colors: {
  custom: {
    50: '#7c5ea6',
    500: '#401e81',
    950: '#000000',
  },
}
SCSS
$custom: #401e81;
$custom-light: #7c5ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#401e81",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 129
  },
  "hsl": {
    "h": 260.606,
    "s": 62.264,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3481,
    "c": 0.15395,
    "h": 292.1
  },
  "luminance": 0.03604
}

Semantic roles & 50–950 ramp

primary
#401E81
secondary
#8FB447
accent
#E542AD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401E81

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

Preview Lab → · Contrast checker → · Palette generator →

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