#401E99#401E99

#401E99 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.182 H 286.2°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#401E99
RGBrgb(64, 30, 153)
HSLhsl(257, 67%, 36%)
HSVhsv(257, 80%, 60%)
CMYKcmyk(58.2%, 80.4%, 0%, 40%)
CIE-LABlab(24.70, 46.65, -60.73)
CIE-LCHlch(24.70, 76.58, 307.53°)
OKLaboklab(37.2% 0.0508 -0.1749)
OKLCHoklch(37.2% 0.182 286.2)
XYZxyz(8.3267, 4.3180, 30.5255)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E99 #77991E
analogous
#1E3A99 #401E99 #7D1E99
triadic
#401E99 #99401E #1E9940
tetradic
#401E99 #991E3A #77991E #1E997D
square
#401E99 #991E3A #77991E #1E997D
split-complementary
#401E99 #997D1E #3A991E
monochromatic
#150A33 #2B1466 #401E99 #5528CC #7A54DD

Accessibility & contrast

On white

11.27
#401E99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#401E99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401E99
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E99#FFFFFF#000000##FFFFFF
##401E991.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9C
Deuteranopia (green-blind)
#003797
Tritanopia (blue-blind)
#13425C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #401e99;
/* rgb */ color: rgb(64, 30, 153);
/* oklch */ color: oklch(37.2% 0.182 286.2);
Tailwind
colors: {
  custom: {
    50: '#805fb8',
    500: '#401e99',
    950: '#000000',
  },
}
SCSS
$custom: #401e99;
$custom-light: #805fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#401e99",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 153
  },
  "hsl": {
    "h": 256.585,
    "s": 67.213,
    "l": 35.882
  },
  "oklch": {
    "l": 0.37196,
    "c": 0.18212,
    "h": 286.2
  },
  "luminance": 0.04318
}

Semantic roles & 50–950 ramp

primary
#401E99
secondary
#A2C152
accent
#EA3EBA
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #401E99

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

Preview Lab → · Contrast checker → · Palette generator →

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