#401E4A#401E4A

#401E4A is a dark, moderate purple. Relative luminance 0.025; OKLCH L 30.3% C 0.086 H 318.1°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#401E4A
RGBrgb(64, 30, 74)
HSLhsl(286, 42%, 20%)
HSVhsv(286, 59%, 29%)
CMYKcmyk(13.5%, 59.5%, 0%, 71%)
CIE-LABlab(17.98, 24.73, -20.62)
CIE-LCHlch(17.98, 32.20, 320.18°)
OKLaboklab(30.33% 0.0639 -0.0573)
OKLCHoklch(30.33% 0.086 318.1)
XYZxyz(3.8145, 2.5131, 6.7614)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E4A #284A1E
analogous
#2A1E4A #401E4A #4A1E3E
triadic
#401E4A #4A401E #1E4A40
tetradic
#401E4A #4A2A1E #284A1E #1E3E4A
square
#401E4A #4A2A1E #284A1E #1E3E4A
split-complementary
#401E4A #3E4A1E #1E4A2A
monochromatic
#130916 #1A0C1E #401E4A #663076 #8B41A1

Accessibility & contrast

On white

13.98
#401E4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#401E4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401E4A
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E4A#FFFFFF#000000##FFFFFF
##401E4A1.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152A4B
Deuteranopia (green-blind)
#202D49
Tritanopia (blue-blind)
#402530
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #401e4a;
/* rgb */ color: rgb(64, 30, 74);
/* oklch */ color: oklch(30.3% 0.086 318.1);
Tailwind
colors: {
  custom: {
    50: '#765b7d',
    500: '#401e4a',
    950: '#000000',
  },
}
SCSS
$custom: #401e4a;
$custom-light: #765b7d;
$custom-dark: #000000;
JSON
{
  "hex": "#401e4a",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 74
  },
  "hsl": {
    "h": 286.364,
    "s": 42.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.30329,
    "c": 0.08582,
    "h": 318.1
  },
  "luminance": 0.02513
}

Semantic roles & 50–950 ramp

primary
#401E4A
secondary
#527F45
accent
#D25672
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#090409
muted
#7B797B

Preview Lab

Preview with #401E4A

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

Preview Lab → · Contrast checker → · Palette generator →

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