#401F89#401F89

#401F89 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.162 H 289.7°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#401F89
RGBrgb(64, 31, 137)
HSLhsl(259, 63%, 33%)
HSVhsv(259, 77%, 54%)
CMYKcmyk(53.3%, 77.4%, 0%, 46.3%)
CIE-LABlab(23.26, 41.55, -53.19)
CIE-LCHlch(23.26, 67.49, 308.00°)
OKLaboklab(35.71% 0.0549 -0.1529)
OKLCHoklch(35.71% 0.162 289.7)
XYZxyz(7.1184, 3.8758, 24.0351)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401F89 #68891F
analogous
#1F3389 #401F89 #751F89
triadic
#401F89 #89401F #1F8940
tetradic
#401F89 #891F33 #68891F #1F8975
square
#401F89 #891F33 #68891F #1F8975
split-complementary
#401F89 #89751F #33891F
monochromatic
#110825 #291457 #401F89 #572ABB #774CD6

Accessibility & contrast

On white

11.83
#401F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#401F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401F89
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401F89#FFFFFF#000000##FFFFFF
##401F891.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401f89;
/* rgb */ color: rgb(64, 31, 137);
/* oklch */ color: oklch(35.7% 0.162 289.7);
Tailwind
colors: {
  custom: {
    50: '#7d5fac',
    500: '#401f89',
    950: '#000000',
  },
}
SCSS
$custom: #401f89;
$custom-light: #7d5fac;
$custom-dark: #000000;
JSON
{
  "hex": "#401f89",
  "rgb": {
    "r": 64,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 258.679,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35706,
    "c": 0.1624,
    "h": 289.7
  },
  "luminance": 0.03876
}

Semantic roles & 50–950 ramp

primary
#401F89
secondary
#97B94B
accent
#E642B3
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #401F89

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

Preview Lab → · Contrast checker → · Palette generator →

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