#401E95#401E95

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

Color values

HEX#401E95
RGBrgb(64, 30, 149)
HSLhsl(257, 66%, 35%)
HSVhsv(257, 80%, 58%)
CMYKcmyk(57%, 79.9%, 0%, 41.6%)
CIE-LABlab(24.28, 45.50, -58.95)
CIE-LCHlch(24.28, 74.47, 307.66°)
OKLaboklab(36.79% 0.052 -0.1697)
OKLCHoklch(36.79% 0.178 287)
XYZxyz(8.0018, 4.1880, 28.8147)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E95 #73951E
analogous
#1E3795 #401E95 #7B1E95
triadic
#401E95 #95401E #1E9540
tetradic
#401E95 #951E37 #73951E #1E957B
square
#401E95 #951E37 #73951E #1E957B
split-complementary
#401E95 #957B1E #37951E
monochromatic
#14092F #2A1462 #401E95 #5628C8 #7951DC

Accessibility & contrast

On white

11.43
#401E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401E95
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E95#FFFFFF#000000##FFFFFF
##401E951.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C98
Deuteranopia (green-blind)
#003693
Tritanopia (blue-blind)
#194159
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #401e95;
/* rgb */ color: rgb(64, 30, 149);
/* oklch */ color: oklch(36.8% 0.178 287.0);
Tailwind
colors: {
  custom: {
    50: '#7f5fb5',
    500: '#401e95',
    950: '#000000',
  },
}
SCSS
$custom: #401e95;
$custom-light: #7f5fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#401e95",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 149
  },
  "hsl": {
    "h": 257.143,
    "s": 66.48,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36786,
    "c": 0.17751,
    "h": 287
  },
  "luminance": 0.04188
}

Semantic roles & 50–950 ramp

primary
#401E95
secondary
#9FBF50
accent
#E93EB9
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #401E95

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

Preview Lab → · Contrast checker → · Palette generator →

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