#401E8A#401E8A

#401E8A is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.165 H 289.7°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#401E8A
RGBrgb(64, 30, 138)
HSLhsl(259, 64%, 33%)
HSVhsv(259, 78%, 54%)
CMYKcmyk(53.6%, 78.3%, 0%, 45.9%)
CIE-LABlab(23.18, 42.33, -53.94)
CIE-LCHlch(23.18, 68.57, 308.13°)
OKLaboklab(35.68% 0.0554 -0.155)
OKLCHoklch(35.68% 0.165 289.7)
XYZxyz(7.1647, 3.8532, 24.4060)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E8A #688A1E
analogous
#1E328A #401E8A #761E8A
triadic
#401E8A #8A401E #1E8A40
tetradic
#401E8A #8A1E32 #688A1E #1E8A76
square
#401E8A #8A1E32 #688A1E #1E8A76
split-complementary
#401E8A #8A761E #328A1E
monochromatic
#110825 #291358 #401E8A #5729BC #774BD8

Accessibility & contrast

On white

11.86
#401E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#401E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401E8A
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E8A#FFFFFF#000000##FFFFFF
##401E8A1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#003588
Tritanopia (blue-blind)
#243C53
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #401e8a;
/* rgb */ color: rgb(64, 30, 138);
/* oklch */ color: oklch(35.7% 0.165 289.7);
Tailwind
colors: {
  custom: {
    50: '#7d5ead',
    500: '#401e8a',
    950: '#000000',
  },
}
SCSS
$custom: #401e8a;
$custom-light: #7d5ead;
$custom-dark: #000000;
JSON
{
  "hex": "#401e8a",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 258.889,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35682,
    "c": 0.16464,
    "h": 289.7
  },
  "luminance": 0.03854
}

Semantic roles & 50–950 ramp

primary
#401E8A
secondary
#97BA4A
accent
#E741B3
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #401E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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