#401D94#401D94

#401D94 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.177 H 287.4°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#401D94
RGBrgb(64, 29, 148)
HSLhsl(258, 67%, 35%)
HSVhsv(258, 80%, 58%)
CMYKcmyk(56.8%, 80.4%, 0%, 42%)
CIE-LABlab(24.02, 45.68, -58.77)
CIE-LCHlch(24.02, 74.43, 307.86°)
OKLaboklab(36.57% 0.053 -0.1692)
OKLCHoklch(36.57% 0.177 287.4)
XYZxyz(7.8974, 4.1064, 28.3877)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D94 #71941D
analogous
#1D3694 #401D94 #7C1D94
triadic
#401D94 #94401D #1D9440
tetradic
#401D94 #941D36 #71941D #1D947C
square
#401D94 #941D36 #71941D #1D947C
split-complementary
#401D94 #947C1D #36941D
monochromatic
#14092E #2A1361 #401D94 #5627C7 #794FDC

Accessibility & contrast

On white

11.53
#401D94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401D94
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D94#FFFFFF#000000##FFFFFF
##401D941.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401d94;
/* rgb */ color: rgb(64, 29, 148);
/* oklch */ color: oklch(36.6% 0.177 287.4);
Tailwind
colors: {
  custom: {
    50: '#7f5eb5',
    500: '#401d94',
    950: '#000000',
  },
}
SCSS
$custom: #401d94;
$custom-light: #7f5eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#401d94",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 148
  },
  "hsl": {
    "h": 257.647,
    "s": 67.232,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36572,
    "c": 0.17728,
    "h": 287.4
  },
  "luminance": 0.04107
}

Semantic roles & 50–950 ramp

primary
#401D94
secondary
#9EBF4E
accent
#EA3EB7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #401D94

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

Preview Lab → · Contrast checker → · Palette generator →

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