#401D4E#401D4E

#401D4E is a dark, moderate purple. Relative luminance 0.025; OKLCH L 30.4% C 0.093 H 315.3°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#401D4E
RGBrgb(64, 29, 78)
HSLhsl(283, 46%, 21%)
HSVhsv(283, 63%, 31%)
CMYKcmyk(17.9%, 62.8%, 0%, 69.4%)
CIE-LABlab(18.00, 26.31, -23.30)
CIE-LCHlch(18.00, 35.15, 318.47°)
OKLaboklab(30.43% 0.0658 -0.0651)
OKLCHoklch(30.43% 0.093 315.3)
XYZxyz(3.9286, 2.5189, 7.4855)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D4E #2B4E1D
analogous
#271D4E #401D4E #4E1D43
triadic
#401D4E #4E401D #1D4E40
tetradic
#401D4E #4E271D #2B4E1D #1D434E
square
#401D4E #4E271D #2B4E1D #1D434E
split-complementary
#401D4E #434E1D #1D4E27
monochromatic
#120816 #1B0C21 #401D4E #652E7B #893EA7

Accessibility & contrast

On white

13.96
#401D4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401D4E
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D4E#FFFFFF#000000##FFFFFF
##401D4E1.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102A50
Deuteranopia (green-blind)
#1D2D4D
Tritanopia (blue-blind)
#3F2532
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #401d4e;
/* rgb */ color: rgb(64, 29, 78);
/* oklch */ color: oklch(30.4% 0.093 315.3);
Tailwind
colors: {
  custom: {
    50: '#765b80',
    500: '#401d4e',
    950: '#000000',
  },
}
SCSS
$custom: #401d4e;
$custom-light: #765b80;
$custom-dark: #000000;
JSON
{
  "hex": "#401d4e",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 78
  },
  "hsl": {
    "h": 282.857,
    "s": 45.794,
    "l": 20.98
  },
  "oklch": {
    "l": 0.30429,
    "c": 0.09257,
    "h": 315.3
  },
  "luminance": 0.02519
}

Semantic roles & 50–950 ramp

primary
#401D4E
secondary
#568344
accent
#D55278
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09040A
muted
#7B797C

Preview Lab

Preview with #401D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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