#401D88#401D88

#401D88 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.163 H 290.3°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#401D88
RGBrgb(64, 29, 136)
HSLhsl(260, 65%, 32%)
HSVhsv(260, 79%, 53%)
CMYKcmyk(52.9%, 78.7%, 0%, 46.7%)
CIE-LABlab(22.81, 42.25, -53.29)
CIE-LCHlch(22.81, 68.01, 308.41°)
OKLaboklab(35.37% 0.0568 -0.1531)
OKLCHoklch(35.37% 0.163 290.3)
XYZxyz(6.9964, 3.7460, 23.6422)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D88 #65881D
analogous
#1D3088 #401D88 #751D88
triadic
#401D88 #88401D #1D8840
tetradic
#401D88 #881D30 #65881D #1D8875
square
#401D88 #881D30 #65881D #1D8875
split-complementary
#401D88 #88751D #30881D
monochromatic
#110723 #281256 #401D88 #5828BA #7748D8

Accessibility & contrast

On white

12.01
#401D88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401D88
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D88#FFFFFF#000000##FFFFFF
##401D881.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388B
Deuteranopia (green-blind)
#003486
Tritanopia (blue-blind)
#263B52
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #401d88;
/* rgb */ color: rgb(64, 29, 136);
/* oklch */ color: oklch(35.4% 0.163 290.3);
Tailwind
colors: {
  custom: {
    50: '#7d5dac',
    500: '#401d88',
    950: '#000000',
  },
}
SCSS
$custom: #401d88;
$custom-light: #7d5dac;
$custom-dark: #000000;
JSON
{
  "hex": "#401d88",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 136
  },
  "hsl": {
    "h": 259.626,
    "s": 64.848,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35366,
    "c": 0.16332,
    "h": 290.3
  },
  "luminance": 0.03746
}

Semantic roles & 50–950 ramp

primary
#401D88
secondary
#94BA47
accent
#E840B1
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #401D88

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

Preview Lab → · Contrast checker → · Palette generator →

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