#401D41#401D41

#401D41 is a dark, moderate purple. Relative luminance 0.024; OKLCH L 29.6% C 0.077 H 326.3°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#401D41
RGBrgb(64, 29, 65)
HSLhsl(298, 38%, 18%)
HSVhsv(298, 55%, 25%)
CMYKcmyk(1.5%, 55.4%, 0%, 74.5%)
CIE-LABlab(17.23, 23.24, -15.59)
CIE-LCHlch(17.23, 27.99, 326.15°)
OKLaboklab(29.61% 0.0641 -0.0428)
OKLCHoklch(29.61% 0.077 326.3)
XYZxyz(3.5078, 2.3506, 5.2689)
Luminance0.0235 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D41 #1E411D
analogous
#2E1D41 #401D41 #411D30
triadic
#401D41 #41401D #1D4140
tetradic
#401D41 #412E1D #1E411D #1D3041
square
#401D41 #412E1D #1E411D #1D3041
split-complementary
#401D41 #30411D #1D412E
monochromatic
#150915 #160A17 #401D41 #6A306B #934396

Accessibility & contrast

On white

14.29
#401D41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#401D41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401D41
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D41#FFFFFF#000000##FFFFFF
##401D411.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192842
Deuteranopia (green-blind)
#242C40
Tritanopia (blue-blind)
#42212C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #401d41;
/* rgb */ color: rgb(64, 29, 65);
/* oklch */ color: oklch(29.6% 0.077 326.3);
Tailwind
colors: {
  custom: {
    50: '#765b75',
    500: '#401d41',
    950: '#000000',
  },
}
SCSS
$custom: #401d41;
$custom-light: #765b75;
$custom-dark: #000000;
JSON
{
  "hex": "#401d41",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 65
  },
  "hsl": {
    "h": 298.333,
    "s": 38.298,
    "l": 18.431
  },
  "oklch": {
    "l": 0.29607,
    "c": 0.07712,
    "h": 326.3
  },
  "luminance": 0.0235
}

Semantic roles & 50–950 ramp

primary
#401D41
secondary
#457644
accent
#CE5A5D
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#080408
muted
#7B797B

Preview Lab

Preview with #401D41

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

Preview Lab → · Contrast checker → · Palette generator →

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