#401E48#401E48

#401E48 is a dark, moderate purple. Relative luminance 0.025; OKLCH L 30.2% C 0.083 H 319.7°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).

Color values

HEX#401E48
RGBrgb(64, 30, 72)
HSLhsl(289, 41%, 20%)
HSVhsv(289, 58%, 28%)
CMYKcmyk(11.1%, 58.3%, 0%, 71.8%)
CIE-LABlab(17.86, 24.25, -19.44)
CIE-LCHlch(17.86, 31.08, 321.29°)
OKLaboklab(30.2% 0.0636 -0.0539)
OKLCHoklch(30.2% 0.083 319.7)
XYZxyz(3.7482, 2.4866, 6.4122)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E48 #26481E
analogous
#2B1E48 #401E48 #481E3B
triadic
#401E48 #48401E #1E4840
tetradic
#401E48 #482B1E #26481E #1E3B48
square
#401E48 #482B1E #26481E #1E3B48
split-complementary
#401E48 #3B481E #1E482B
monochromatic
#130916 #1A0C1D #401E48 #663073 #8D429E

Accessibility & contrast

On white

14.03
#401E48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401E48
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E48#FFFFFF#000000##FFFFFF
##401E481.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162949
Deuteranopia (green-blind)
#212D47
Tritanopia (blue-blind)
#40242F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #401e48;
/* rgb */ color: rgb(64, 30, 72);
/* oklch */ color: oklch(30.2% 0.083 319.7);
Tailwind
colors: {
  custom: {
    50: '#765b7b',
    500: '#401e48',
    950: '#000000',
  },
}
SCSS
$custom: #401e48;
$custom-light: #765b7b;
$custom-dark: #000000;
JSON
{
  "hex": "#401e48",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 72
  },
  "hsl": {
    "h": 288.571,
    "s": 41.176,
    "l": 20
  },
  "oklch": {
    "l": 0.30201,
    "c": 0.08339,
    "h": 319.7
  },
  "luminance": 0.02486
}

Semantic roles & 50–950 ramp

primary
#401E48
secondary
#507D45
accent
#D1576E
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#080409
muted
#7B797B

Preview Lab

Preview with #401E48

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

Preview Lab → · Contrast checker → · Palette generator →

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