#401E96#401E96

#401E96 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.179 H 286.8°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#401E96
RGBrgb(64, 30, 150)
HSLhsl(257, 67%, 35%)
HSVhsv(257, 80%, 59%)
CMYKcmyk(57.3%, 80%, 0%, 41.2%)
CIE-LABlab(24.39, 45.79, -59.40)
CIE-LCHlch(24.39, 75.00, 307.63°)
OKLaboklab(36.89% 0.0517 -0.171)
OKLCHoklch(36.89% 0.179 286.8)
XYZxyz(8.0820, 4.2201, 29.2369)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E96 #74961E
analogous
#1E3896 #401E96 #7C1E96
triadic
#401E96 #96401E #1E9640
tetradic
#401E96 #961E38 #74961E #1E967C
square
#401E96 #961E38 #74961E #1E967C
split-complementary
#401E96 #967C1E #38961E
monochromatic
#140A30 #2A1463 #401E96 #5628C9 #7952DC

Accessibility & contrast

On white

11.39
#401E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#401E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401E96
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E96#FFFFFF#000000##FFFFFF
##401E961.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401e96;
/* rgb */ color: rgb(64, 30, 150);
/* oklch */ color: oklch(36.9% 0.179 286.8);
Tailwind
colors: {
  custom: {
    50: '#805fb6',
    500: '#401e96',
    950: '#000000',
  },
}
SCSS
$custom: #401e96;
$custom-light: #805fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#401e96",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 150
  },
  "hsl": {
    "h": 257,
    "s": 66.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36888,
    "c": 0.17867,
    "h": 286.8
  },
  "luminance": 0.04221
}

Semantic roles & 50–950 ramp

primary
#401E96
secondary
#A0BF50
accent
#EA3EB9
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #401E96

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

Preview Lab → · Contrast checker → · Palette generator →

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