#401E8F#401E8F

#401E8F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.171 H 288.4°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#401E8F
RGBrgb(64, 30, 143)
HSLhsl(258, 65%, 34%)
HSVhsv(258, 79%, 56%)
CMYKcmyk(55.2%, 79%, 0%, 43.9%)
CIE-LABlab(23.68, 43.78, -56.24)
CIE-LCHlch(23.68, 71.27, 307.90°)
OKLaboklab(36.18% 0.0539 -0.1618)
OKLCHoklch(36.18% 0.171 288.4)
XYZxyz(7.5351, 4.0013, 26.3566)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E8F #6D8F1E
analogous
#1E358F #401E8F #791E8F
triadic
#401E8F #8F401E #1E8F40
tetradic
#401E8F #8F1E35 #6D8F1E #1E8F79
square
#401E8F #8F1E35 #6D8F1E #1E8F79
split-complementary
#401E8F #8F791E #358F1E
monochromatic
#13092A #29135C #401E8F #5729C2 #784EDA

Accessibility & contrast

On white

11.66
#401E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#401E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401E8F
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E8F#FFFFFF#000000##FFFFFF
##401E8F1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00358D
Tritanopia (blue-blind)
#203E56
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #401e8f;
/* rgb */ color: rgb(64, 30, 143);
/* oklch */ color: oklch(36.2% 0.171 288.4);
Tailwind
colors: {
  custom: {
    50: '#7e5eb1',
    500: '#401e8f',
    950: '#000000',
  },
}
SCSS
$custom: #401e8f;
$custom-light: #7e5eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#401e8f",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 143
  },
  "hsl": {
    "h": 258.053,
    "s": 65.318,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36179,
    "c": 0.17052,
    "h": 288.4
  },
  "luminance": 0.04002
}

Semantic roles & 50–950 ramp

primary
#401E8F
secondary
#9BBC4C
accent
#E840B6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #401E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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