#401F88#401F88

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

Color values

HEX#401F88
RGBrgb(64, 31, 136)
HSLhsl(259, 63%, 33%)
HSVhsv(259, 77%, 53%)
CMYKcmyk(52.9%, 77.2%, 0%, 46.7%)
CIE-LABlab(23.16, 41.26, -52.72)
CIE-LCHlch(23.16, 66.95, 308.05°)
OKLaboklab(35.61% 0.0551 -0.1515)
OKLCHoklch(35.61% 0.161 290)
XYZxyz(7.0470, 3.8472, 23.6591)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401F88 #67881F
analogous
#1F3388 #401F88 #741F88
triadic
#401F88 #88401F #1F8840
tetradic
#401F88 #881F33 #67881F #1F8874
square
#401F88 #881F33 #67881F #1F8874
split-complementary
#401F88 #88741F #33881F
monochromatic
#110824 #291456 #401F88 #572ABA #774BD6

Accessibility & contrast

On white

11.87
#401F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401F88
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401F88#FFFFFF#000000##FFFFFF
##401F881.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398B
Deuteranopia (green-blind)
#003586
Tritanopia (blue-blind)
#263C52
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #401f88;
/* rgb */ color: rgb(64, 31, 136);
/* oklch */ color: oklch(35.6% 0.161 290.0);
Tailwind
colors: {
  custom: {
    50: '#7d5fac',
    500: '#401f88',
    950: '#000000',
  },
}
SCSS
$custom: #401f88;
$custom-light: #7d5fac;
$custom-dark: #000000;
JSON
{
  "hex": "#401f88",
  "rgb": {
    "r": 64,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 258.857,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35608,
    "c": 0.16121,
    "h": 290
  },
  "luminance": 0.03848
}

Semantic roles & 50–950 ramp

primary
#401F88
secondary
#96B94A
accent
#E642B2
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #401F88

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

Preview Lab → · Contrast checker → · Palette generator →

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