#401E4E#401E4E

#401E4E is a dark, moderate purple. Relative luminance 0.026; OKLCH L 30.6% C 0.091 H 315.0°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#401E4E
RGBrgb(64, 30, 78)
HSLhsl(283, 44%, 21%)
HSVhsv(283, 62%, 31%)
CMYKcmyk(17.9%, 61.5%, 0%, 69.4%)
CIE-LABlab(18.23, 25.71, -22.95)
CIE-LCHlch(18.23, 34.47, 318.25°)
OKLaboklab(30.59% 0.0642 -0.0641)
OKLCHoklch(30.59% 0.091 315)
XYZxyz(3.9536, 2.5687, 7.4938)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E4E #2C4E1E
analogous
#281E4E #401E4E #4E1E44
triadic
#401E4E #4E401E #1E4E40
tetradic
#401E4E #4E281E #2C4E1E #1E444E
square
#401E4E #4E281E #2C4E1E #1E444E
split-complementary
#401E4E #444E1E #1E4E28
monochromatic
#120916 #1C0D22 #401E4E #642F7A #8940A6

Accessibility & contrast

On white

13.87
#401E4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#401E4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401E4E
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E4E#FFFFFF#000000##FFFFFF
##401E4E1.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122A50
Deuteranopia (green-blind)
#1E2D4D
Tritanopia (blue-blind)
#3F2632
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #401e4e;
/* rgb */ color: rgb(64, 30, 78);
/* oklch */ color: oklch(30.6% 0.091 315.0);
Tailwind
colors: {
  custom: {
    50: '#765c80',
    500: '#401e4e',
    950: '#000000',
  },
}
SCSS
$custom: #401e4e;
$custom-light: #765c80;
$custom-dark: #000000;
JSON
{
  "hex": "#401e4e",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 78
  },
  "hsl": {
    "h": 282.5,
    "s": 44.444,
    "l": 21.176
  },
  "oklch": {
    "l": 0.30592,
    "c": 0.09076,
    "h": 315
  },
  "luminance": 0.02569
}

Semantic roles & 50–950 ramp

primary
#401E4E
secondary
#578345
accent
#D45479
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09040A
muted
#7B797C

Preview Lab

Preview with #401E4E

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

Preview Lab → · Contrast checker → · Palette generator →

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