#401A3D#401A3D

#401A3D is a dark, moderate purple. Relative luminance 0.022; OKLCH L 28.9% C 0.079 H 330.4°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#401A3D
RGBrgb(64, 26, 61)
HSLhsl(305, 42%, 18%)
HSVhsv(305, 59%, 25%)
CMYKcmyk(0%, 59.4%, 4.7%, 74.9%)
CIE-LABlab(16.33, 24.17, -14.19)
CIE-LCHlch(16.33, 28.03, 329.58°)
OKLaboklab(28.88% 0.0684 -0.0388)
OKLCHoklch(28.88% 0.079 330.4)
XYZxyz(3.3260, 2.1659, 4.6568)
Luminance0.0217 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401A3D #1A401D
analogous
#301A40 #401A3D #401A2A
triadic
#401A3D #3D401A #1A3D40
tetradic
#401A3D #40301A #1A401D #1A2A40
square
#401A3D #40301A #1A401D #1A2A40
split-complementary
#401A3D #2A401A #1A4030
monochromatic
#160915 #160915 #401A3D #6C2C66 #973D90

Accessibility & contrast

On white

14.65
#401A3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#401A3D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401A3D
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401A3D#FFFFFF#000000##FFFFFF
##401A3D1.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18253E
Deuteranopia (green-blind)
#232A3C
Tritanopia (blue-blind)
#421D28
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #401a3d;
/* rgb */ color: rgb(64, 26, 61);
/* oklch */ color: oklch(28.9% 0.079 330.4);
Tailwind
colors: {
  custom: {
    50: '#765872',
    500: '#401a3d',
    950: '#000000',
  },
}
SCSS
$custom: #401a3d;
$custom-light: #765872;
$custom-dark: #000000;
JSON
{
  "hex": "#401a3d",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 61
  },
  "hsl": {
    "h": 304.737,
    "s": 42.222,
    "l": 17.647
  },
  "oklch": {
    "l": 0.28875,
    "c": 0.07865,
    "h": 330.4
  },
  "luminance": 0.02166
}

Semantic roles & 50–950 ramp

primary
#401A3D
secondary
#407644
accent
#D26056
background
#F7F5F6
surface
#EDE9EC
border
#C8C5C7
text
#080308
muted
#7B787B

Preview Lab

Preview with #401A3D

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

Preview Lab → · Contrast checker → · Palette generator →

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