#401E87#401E87

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

Color values

HEX#401E87
RGBrgb(64, 30, 135)
HSLhsl(259, 64%, 32%)
HSVhsv(259, 78%, 53%)
CMYKcmyk(52.6%, 77.8%, 0%, 47.1%)
CIE-LABlab(22.89, 41.47, -52.54)
CIE-LCHlch(22.89, 66.94, 308.28°)
OKLaboklab(35.39% 0.0562 -0.151)
OKLCHoklch(35.39% 0.161 290.4)
XYZxyz(6.9505, 3.7675, 23.2779)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E87 #65871E
analogous
#1E3087 #401E87 #751E87
triadic
#401E87 #87401E #1E8740
tetradic
#401E87 #871E30 #65871E #1E8775
square
#401E87 #871E30 #65871E #1E8775
split-complementary
#401E87 #87751E #30871E
monochromatic
#110823 #281355 #401E87 #5829B9 #7749D7

Accessibility & contrast

On white

11.98
#401E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#401E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401E87
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E87#FFFFFF#000000##FFFFFF
##401E871.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003485
Tritanopia (blue-blind)
#273B51
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #401e87;
/* rgb */ color: rgb(64, 30, 135);
/* oklch */ color: oklch(35.4% 0.161 290.4);
Tailwind
colors: {
  custom: {
    50: '#7d5eab',
    500: '#401e87',
    950: '#000000',
  },
}
SCSS
$custom: #401e87;
$custom-light: #7d5eab;
$custom-dark: #000000;
JSON
{
  "hex": "#401e87",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 259.429,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35388,
    "c": 0.1611,
    "h": 290.4
  },
  "luminance": 0.03768
}

Semantic roles & 50–950 ramp

primary
#401E87
secondary
#94B948
accent
#E741B1
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #401E87

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

Preview Lab → · Contrast checker → · Palette generator →

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