#401D96#401D96

#401D96 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.180 H 287.0°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#401D96
RGBrgb(64, 29, 150)
HSLhsl(257, 68%, 35%)
HSVhsv(257, 81%, 59%)
CMYKcmyk(57.3%, 80.7%, 0%, 41.2%)
CIE-LABlab(24.23, 46.25, -59.66)
CIE-LCHlch(24.23, 75.49, 307.78°)
OKLaboklab(36.78% 0.0524 -0.1718)
OKLCHoklch(36.78% 0.18 287)
XYZxyz(8.0571, 4.1703, 29.2286)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D96 #73961D
analogous
#1D3796 #401D96 #7C1D96
triadic
#401D96 #96401D #1D9640
tetradic
#401D96 #961D37 #73961D #1D967C
square
#401D96 #961D37 #73961D #1D967C
split-complementary
#401D96 #967C1D #37961D
monochromatic
#14092F #2A1363 #401D96 #5627C9 #7950DD

Accessibility & contrast

On white

11.45
#401D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#401D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401D96
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D96#FFFFFF#000000##FFFFFF
##401D961.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C99
Deuteranopia (green-blind)
#003694
Tritanopia (blue-blind)
#18415A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #401d96;
/* rgb */ color: rgb(64, 29, 150);
/* oklch */ color: oklch(36.8% 0.180 287.0);
Tailwind
colors: {
  custom: {
    50: '#805eb6',
    500: '#401d96',
    950: '#000000',
  },
}
SCSS
$custom: #401d96;
$custom-light: #805eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#401d96",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 150
  },
  "hsl": {
    "h": 257.355,
    "s": 67.598,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36777,
    "c": 0.17958,
    "h": 287
  },
  "luminance": 0.04171
}

Semantic roles & 50–950 ramp

primary
#401D96
secondary
#9FC04F
accent
#EA3DB8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #401D96

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

Preview Lab → · Contrast checker → · Palette generator →

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