#401E97#401E97

#401E97 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.180 H 286.6°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#401E97
RGBrgb(64, 30, 151)
HSLhsl(257, 67%, 35%)
HSVhsv(257, 80%, 59%)
CMYKcmyk(57.6%, 80.1%, 0%, 40.8%)
CIE-LABlab(24.49, 46.08, -59.84)
CIE-LCHlch(24.49, 75.53, 307.60°)
OKLaboklab(36.99% 0.0514 -0.1723)
OKLCHoklch(36.99% 0.18 286.6)
XYZxyz(8.1629, 4.2524, 29.6628)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E97 #75971E
analogous
#1E3897 #401E97 #7D1E97
triadic
#401E97 #97401E #1E9740
tetradic
#401E97 #971E38 #75971E #1E977D
square
#401E97 #971E38 #75971E #1E977D
split-complementary
#401E97 #977D1E #38971E
monochromatic
#150A31 #2A1464 #401E97 #5628CA #7953DD

Accessibility & contrast

On white

11.35
#401E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#401E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401E97
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E97#FFFFFF#000000##FFFFFF
##401E971.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003795
Tritanopia (blue-blind)
#16425A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #401e97;
/* rgb */ color: rgb(64, 30, 151);
/* oklch */ color: oklch(37.0% 0.180 286.6);
Tailwind
colors: {
  custom: {
    50: '#805fb7',
    500: '#401e97',
    950: '#000000',
  },
}
SCSS
$custom: #401e97;
$custom-light: #805fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#401e97",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 151
  },
  "hsl": {
    "h": 256.86,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.3699,
    "c": 0.17982,
    "h": 286.6
  },
  "luminance": 0.04253
}

Semantic roles & 50–950 ramp

primary
#401E97
secondary
#A1C051
accent
#EA3EBA
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #401E97

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

Preview Lab → · Contrast checker → · Palette generator →

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