#401B4E#401B4E

#401B4E is a dark, moderate purple. Relative luminance 0.024; OKLCH L 30.1% C 0.096 H 315.7°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#401B4E
RGBrgb(64, 27, 78)
HSLhsl(284, 49%, 21%)
HSVhsv(284, 65%, 31%)
CMYKcmyk(17.9%, 65.4%, 0%, 69.4%)
CIE-LABlab(17.57, 27.47, -23.99)
CIE-LCHlch(17.57, 36.48, 318.87°)
OKLaboklab(30.11% 0.0688 -0.0671)
OKLCHoklch(30.11% 0.096 315.7)
XYZxyz(3.8812, 2.4240, 7.4697)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B4E #294E1B
analogous
#261B4E #401B4E #4E1B42
triadic
#401B4E #4E401B #1B4E40
tetradic
#401B4E #4E261B #294E1B #1B424E
square
#401B4E #4E261B #294E1B #1B424E
split-complementary
#401B4E #424E1B #1B4E26
monochromatic
#130817 #1B0B21 #401B4E #652B7B #8B3AA9

Accessibility & contrast

On white

14.14
#401B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#401B4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B4E
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B4E#FFFFFF#000000##FFFFFF
##401B4E1.0014.141.4814.14
#FFFFFF14.141.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2950
Deuteranopia (green-blind)
#1B2C4D
Tritanopia (blue-blind)
#3F2431
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #401b4e;
/* rgb */ color: rgb(64, 27, 78);
/* oklch */ color: oklch(30.1% 0.096 315.7);
Tailwind
colors: {
  custom: {
    50: '#775a80',
    500: '#401b4e',
    950: '#000000',
  },
}
SCSS
$custom: #401b4e;
$custom-light: #775a80;
$custom-dark: #000000;
JSON
{
  "hex": "#401b4e",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 78
  },
  "hsl": {
    "h": 283.529,
    "s": 48.571,
    "l": 20.588
  },
  "oklch": {
    "l": 0.30114,
    "c": 0.09612,
    "h": 315.7
  },
  "luminance": 0.02424
}

Semantic roles & 50–950 ramp

primary
#401B4E
secondary
#538441
accent
#D85075
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09040A
muted
#7B797C

Preview Lab

Preview with #401B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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