#401F86#401F86

#401F86 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.159 H 290.5°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#401F86
RGBrgb(64, 31, 134)
HSLhsl(259, 62%, 32%)
HSVhsv(259, 77%, 53%)
CMYKcmyk(52.2%, 76.9%, 0%, 47.5%)
CIE-LABlab(22.97, 40.68, -51.78)
CIE-LCHlch(22.97, 65.85, 308.15°)
OKLaboklab(35.42% 0.0557 -0.1487)
OKLCHoklch(35.42% 0.159 290.5)
XYZxyz(6.9062, 3.7909, 22.9175)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401F86 #65861F
analogous
#1F3286 #401F86 #731F86
triadic
#401F86 #86401F #1F8640
tetradic
#401F86 #861F32 #65861F #1F8673
square
#401F86 #861F32 #65861F #1F8673
split-complementary
#401F86 #86731F #32861F
monochromatic
#110823 #281454 #401F86 #582AB8 #774AD5

Accessibility & contrast

On white

11.94
#401F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#401F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401F86
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401F86#FFFFFF#000000##FFFFFF
##401F861.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003989
Deuteranopia (green-blind)
#003484
Tritanopia (blue-blind)
#273B51
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #401f86;
/* rgb */ color: rgb(64, 31, 134);
/* oklch */ color: oklch(35.4% 0.159 290.5);
Tailwind
colors: {
  custom: {
    50: '#7d5eaa',
    500: '#401f86',
    950: '#000000',
  },
}
SCSS
$custom: #401f86;
$custom-light: #7d5eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#401f86",
  "rgb": {
    "r": 64,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 259.223,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35415,
    "c": 0.15882,
    "h": 290.5
  },
  "luminance": 0.03791
}

Semantic roles & 50–950 ramp

primary
#401F86
secondary
#94B849
accent
#E542B1
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #401F86

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

Preview Lab → · Contrast checker → · Palette generator →

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