#401E9A#401E9A

#401E9A is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.183 H 286.0°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#401E9A
RGBrgb(64, 30, 154)
HSLhsl(256, 67%, 36%)
HSVhsv(256, 81%, 60%)
CMYKcmyk(58.4%, 80.5%, 0%, 39.6%)
CIE-LABlab(24.80, 46.94, -61.17)
CIE-LCHlch(24.80, 77.11, 307.50°)
OKLaboklab(37.3% 0.0504 -0.1762)
OKLCHoklch(37.3% 0.183 286)
XYZxyz(8.4096, 4.3511, 30.9623)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E9A #789A1E
analogous
#1E3A9A #401E9A #7E1E9A
triadic
#401E9A #9A401E #1E9A40
tetradic
#401E9A #9A1E3A #789A1E #1E9A7E
square
#401E9A #9A1E3A #789A1E #1E9A7E
split-complementary
#401E9A #9A7E1E #3A9A1E
monochromatic
#150A34 #2B1467 #401E9A #5528CD #7A55DE

Accessibility & contrast

On white

11.23
#401E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#401E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401E9A
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E9A#FFFFFF#000000##FFFFFF
##401E9A1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9D
Deuteranopia (green-blind)
#003798
Tritanopia (blue-blind)
#11435C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #401e9a;
/* rgb */ color: rgb(64, 30, 154);
/* oklch */ color: oklch(37.3% 0.183 286.0);
Tailwind
colors: {
  custom: {
    50: '#805fb9',
    500: '#401e9a',
    950: '#000000',
  },
}
SCSS
$custom: #401e9a;
$custom-light: #805fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#401e9a",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 154
  },
  "hsl": {
    "h": 256.452,
    "s": 67.391,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37299,
    "c": 0.18327,
    "h": 286
  },
  "luminance": 0.04352
}

Semantic roles & 50–950 ramp

primary
#401E9A
secondary
#A3C153
accent
#EA3EBB
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #401E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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