#401C96#401C96

#401C96 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.180 H 287.1°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#401C96
RGBrgb(64, 28, 150)
HSLhsl(258, 69%, 35%)
HSVhsv(258, 81%, 59%)
CMYKcmyk(57.3%, 81.3%, 0%, 41.2%)
CIE-LABlab(24.07, 46.70, -59.92)
CIE-LCHlch(24.07, 75.97, 307.94°)
OKLaboklab(36.67% 0.053 -0.1725)
OKLCHoklch(36.67% 0.18 287.1)
XYZxyz(8.0330, 4.1221, 29.2206)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C96 #72961C
analogous
#1C3596 #401C96 #7D1C96
triadic
#401C96 #96401C #1C9640
tetradic
#401C96 #961C35 #72961C #1C967D
square
#401C96 #961C35 #72961C #1C967D
split-complementary
#401C96 #967D1C #35961C
monochromatic
#14092F #2A1262 #401C96 #5626CA #794EDE

Accessibility & contrast

On white

11.51
#401C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#401C96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401C96
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C96#FFFFFF#000000##FFFFFF
##401C961.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C99
Deuteranopia (green-blind)
#003694
Tritanopia (blue-blind)
#184059
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #401c96;
/* rgb */ color: rgb(64, 28, 150);
/* oklch */ color: oklch(36.7% 0.180 287.1);
Tailwind
colors: {
  custom: {
    50: '#805eb6',
    500: '#401c96',
    950: '#000000',
  },
}
SCSS
$custom: #401c96;
$custom-light: #805eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#401c96",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 150
  },
  "hsl": {
    "h": 257.705,
    "s": 68.539,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36669,
    "c": 0.18048,
    "h": 287.1
  },
  "luminance": 0.04123
}

Semantic roles & 50–950 ramp

primary
#401C96
secondary
#9FC14D
accent
#EB3CB8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #401C96

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

Preview Lab → · Contrast checker → · Palette generator →

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