#401E94#401E94

#401E94 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.176 H 287.3°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#401E94
RGBrgb(64, 30, 148)
HSLhsl(257, 66%, 35%)
HSVhsv(257, 80%, 58%)
CMYKcmyk(56.8%, 79.7%, 0%, 42%)
CIE-LABlab(24.18, 45.22, -58.50)
CIE-LCHlch(24.18, 73.94, 307.70°)
OKLaboklab(36.68% 0.0523 -0.1684)
OKLCHoklch(36.68% 0.176 287.3)
XYZxyz(7.9223, 4.1562, 28.3960)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E94 #72941E
analogous
#1E3794 #401E94 #7B1E94
triadic
#401E94 #94401E #1E9440
tetradic
#401E94 #941E37 #72941E #1E947B
square
#401E94 #941E37 #72941E #1E947B
split-complementary
#401E94 #947B1E #37941E
monochromatic
#14092E #2A1461 #401E94 #5628C7 #7951DC

Accessibility & contrast

On white

11.47
#401E94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401E94
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E94#FFFFFF#000000##FFFFFF
##401E941.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C97
Deuteranopia (green-blind)
#003692
Tritanopia (blue-blind)
#1A4059
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #401e94;
/* rgb */ color: rgb(64, 30, 148);
/* oklch */ color: oklch(36.7% 0.176 287.3);
Tailwind
colors: {
  custom: {
    50: '#7f5fb5',
    500: '#401e94',
    950: '#000000',
  },
}
SCSS
$custom: #401e94;
$custom-light: #7f5fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#401e94",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 148
  },
  "hsl": {
    "h": 257.288,
    "s": 66.292,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36684,
    "c": 0.17635,
    "h": 287.3
  },
  "luminance": 0.04157
}

Semantic roles & 50–950 ramp

primary
#401E94
secondary
#9FBF4F
accent
#E93FB8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #401E94

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

Preview Lab → · Contrast checker → · Palette generator →

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