#401E9B#401E9B

#401E9B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.184 H 285.8°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#401E9B
RGBrgb(64, 30, 155)
HSLhsl(256, 68%, 36%)
HSVhsv(256, 81%, 61%)
CMYKcmyk(58.7%, 80.6%, 0%, 39.2%)
CIE-LABlab(24.90, 47.22, -61.62)
CIE-LCHlch(24.90, 77.63, 307.47°)
OKLaboklab(37.4% 0.0501 -0.1775)
OKLCHoklch(37.4% 0.184 285.8)
XYZxyz(8.4932, 4.3846, 31.4028)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E9B #799B1E
analogous
#1E3B9B #401E9B #7F1E9B
triadic
#401E9B #9B401E #1E9B40
tetradic
#401E9B #9B1E3B #799B1E #1E9B7F
square
#401E9B #9B1E3B #799B1E #1E9B7F
split-complementary
#401E9B #9B7F1E #3B9B1E
monochromatic
#160A34 #2B1468 #401E9B #5528CE #7A55DE

Accessibility & contrast

On white

11.19
#401E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#401E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401E9B
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E9B#FFFFFF#000000##FFFFFF
##401E9B1.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9E
Deuteranopia (green-blind)
#003799
Tritanopia (blue-blind)
#0F435D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #401e9b;
/* rgb */ color: rgb(64, 30, 155);
/* oklch */ color: oklch(37.4% 0.184 285.8);
Tailwind
colors: {
  custom: {
    50: '#805fba',
    500: '#401e9b',
    950: '#000000',
  },
}
SCSS
$custom: #401e9b;
$custom-light: #805fba;
$custom-dark: #000000;
JSON
{
  "hex": "#401e9b",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 155
  },
  "hsl": {
    "h": 256.32,
    "s": 67.568,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37403,
    "c": 0.18443,
    "h": 285.8
  },
  "luminance": 0.04385
}

Semantic roles & 50–950 ramp

primary
#401E9B
secondary
#A4C253
accent
#EA3DBB
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #401E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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