#401D89#401D89

#401D89 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.164 H 290.1°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#401D89
RGBrgb(64, 29, 137)
HSLhsl(259, 65%, 33%)
HSVhsv(259, 79%, 54%)
CMYKcmyk(53.3%, 78.8%, 0%, 46.3%)
CIE-LABlab(22.91, 42.53, -53.75)
CIE-LCHlch(22.91, 68.55, 308.35°)
OKLaboklab(35.46% 0.0565 -0.1545)
OKLCHoklch(35.46% 0.164 290.1)
XYZxyz(7.0678, 3.7746, 24.0182)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D89 #66891D
analogous
#1D3089 #401D89 #761D89
triadic
#401D89 #89401D #1D8940
tetradic
#401D89 #891D30 #66891D #1D8976
square
#401D89 #891D30 #66891D #1D8976
split-complementary
#401D89 #89761D #30891D
monochromatic
#110824 #281256 #401D89 #5828BC #7748D8

Accessibility & contrast

On white

11.97
#401D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401D89
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D89#FFFFFF#000000##FFFFFF
##401D891.0011.971.7611.97
#FFFFFF11.971.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401d89;
/* rgb */ color: rgb(64, 29, 137);
/* oklch */ color: oklch(35.5% 0.164 290.1);
Tailwind
colors: {
  custom: {
    50: '#7d5dac',
    500: '#401d89',
    950: '#000000',
  },
}
SCSS
$custom: #401d89;
$custom-light: #7d5dac;
$custom-dark: #000000;
JSON
{
  "hex": "#401d89",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 137
  },
  "hsl": {
    "h": 259.444,
    "s": 65.06,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35464,
    "c": 0.16449,
    "h": 290.1
  },
  "luminance": 0.03775
}

Semantic roles & 50–950 ramp

primary
#401D89
secondary
#95BA47
accent
#E840B2
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #401D89

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

Preview Lab → · Contrast checker → · Palette generator →

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