#401B3D#401B3D

#401B3D is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.0% C 0.077 H 330.5°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#401B3D
RGBrgb(64, 27, 61)
HSLhsl(305, 41%, 18%)
HSVhsv(305, 58%, 25%)
CMYKcmyk(0%, 57.8%, 4.7%, 74.9%)
CIE-LABlab(16.56, 23.58, -13.85)
CIE-LCHlch(16.56, 27.34, 329.58°)
OKLaboklab(29.04% 0.0667 -0.0378)
OKLCHoklch(29.04% 0.077 330.5)
XYZxyz(3.3486, 2.2110, 4.6644)
Luminance0.0221 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B3D #1B401E
analogous
#301B40 #401B3D #401B2A
triadic
#401B3D #3D401B #1B3D40
tetradic
#401B3D #40301B #1B401E #1B2A40
square
#401B3D #40301B #1B401E #1B2A40
split-complementary
#401B3D #2A401B #1B4030
monochromatic
#160915 #160915 #401B3D #6B2D66 #963F8F

Accessibility & contrast

On white

14.56
#401B3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#401B3D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B3D
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B3D#FFFFFF#000000##FFFFFF
##401B3D1.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19263E
Deuteranopia (green-blind)
#242B3C
Tritanopia (blue-blind)
#421E29
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #401b3d;
/* rgb */ color: rgb(64, 27, 61);
/* oklch */ color: oklch(29.0% 0.077 330.5);
Tailwind
colors: {
  custom: {
    50: '#765972',
    500: '#401b3d',
    950: '#000000',
  },
}
SCSS
$custom: #401b3d;
$custom-light: #765972;
$custom-dark: #000000;
JSON
{
  "hex": "#401b3d",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 61
  },
  "hsl": {
    "h": 304.865,
    "s": 40.659,
    "l": 17.843
  },
  "oklch": {
    "l": 0.2904,
    "c": 0.0767,
    "h": 330.5
  },
  "luminance": 0.02211
}

Semantic roles & 50–950 ramp

primary
#401B3D
secondary
#417546
accent
#D16157
background
#F7F5F6
surface
#EDE9EC
border
#C8C5C7
text
#080308
muted
#7B787B

Preview Lab

Preview with #401B3D

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

Preview Lab → · Contrast checker → · Palette generator →

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