#401E89#401E89

#401E89 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.163 H 289.9°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#401E89
RGBrgb(64, 30, 137)
HSLhsl(259, 64%, 33%)
HSVhsv(259, 78%, 54%)
CMYKcmyk(53.3%, 78.1%, 0%, 46.3%)
CIE-LABlab(23.08, 42.05, -53.47)
CIE-LCHlch(23.08, 68.03, 308.18°)
OKLaboklab(35.58% 0.0557 -0.1537)
OKLCHoklch(35.58% 0.163 289.9)
XYZxyz(7.0927, 3.8244, 24.0265)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E89 #67891E
analogous
#1E3289 #401E89 #751E89
triadic
#401E89 #89401E #1E8940
tetradic
#401E89 #891E32 #67891E #1E8975
square
#401E89 #891E32 #67891E #1E8975
split-complementary
#401E89 #89751E #32891E
monochromatic
#110825 #291357 #401E89 #5729BB #774AD7

Accessibility & contrast

On white

11.90
#401E89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#401E89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401E89
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E89#FFFFFF#000000##FFFFFF
##401E891.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398C
Deuteranopia (green-blind)
#003487
Tritanopia (blue-blind)
#253C52
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #401e89;
/* rgb */ color: rgb(64, 30, 137);
/* oklch */ color: oklch(35.6% 0.163 289.9);
Tailwind
colors: {
  custom: {
    50: '#7d5eac',
    500: '#401e89',
    950: '#000000',
  },
}
SCSS
$custom: #401e89;
$custom-light: #7d5eac;
$custom-dark: #000000;
JSON
{
  "hex": "#401e89",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 137
  },
  "hsl": {
    "h": 259.065,
    "s": 64.072,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35584,
    "c": 0.16346,
    "h": 289.9
  },
  "luminance": 0.03825
}

Semantic roles & 50–950 ramp

primary
#401E89
secondary
#96BA49
accent
#E741B2
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #401E89

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

Preview Lab → · Contrast checker → · Palette generator →

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