#401B41#401B41

#401B41 is a dark, moderate purple. Relative luminance 0.023; OKLCH L 29.3% C 0.081 H 326.4°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#401B41
RGBrgb(64, 27, 65)
HSLhsl(298, 41%, 18%)
HSVhsv(298, 58%, 25%)
CMYKcmyk(1.5%, 58.5%, 0%, 74.5%)
CIE-LABlab(16.78, 24.44, -16.30)
CIE-LCHlch(16.78, 29.38, 326.30°)
OKLaboklab(29.27% 0.0675 -0.0448)
OKLCHoklch(29.27% 0.081 326.4)
XYZxyz(3.4604, 2.2557, 5.2531)
Luminance0.0226 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B41 #1C411B
analogous
#2D1B41 #401B41 #411B2F
triadic
#401B41 #41401B #1B4140
tetradic
#401B41 #412D1B #1C411B #1B2F41
square
#401B41 #412D1B #1C411B #1B2F41
split-complementary
#401B41 #2F411B #1B412D
monochromatic
#150916 #150916 #401B41 #6B2D6C #953F97

Accessibility & contrast

On white

14.47
#401B41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#401B41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B41
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B41#FFFFFF#000000##FFFFFF
##401B411.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172642
Deuteranopia (green-blind)
#222B40
Tritanopia (blue-blind)
#421F2B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #401b41;
/* rgb */ color: rgb(64, 27, 65);
/* oklch */ color: oklch(29.3% 0.081 326.4);
Tailwind
colors: {
  custom: {
    50: '#765975',
    500: '#401b41',
    950: '#000000',
  },
}
SCSS
$custom: #401b41;
$custom-light: #765975;
$custom-dark: #000000;
JSON
{
  "hex": "#401b41",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 65
  },
  "hsl": {
    "h": 298.421,
    "s": 41.304,
    "l": 18.039
  },
  "oklch": {
    "l": 0.29272,
    "c": 0.08104,
    "h": 326.4
  },
  "luminance": 0.02256
}

Semantic roles & 50–950 ramp

primary
#401B41
secondary
#437641
accent
#D1575A
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#080308
muted
#7B787B

Preview Lab

Preview with #401B41

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

Preview Lab → · Contrast checker → · Palette generator →

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