#401B4A#401B4A

#401B4A is a dark, moderate purple. Relative luminance 0.024; OKLCH L 29.8% C 0.091 H 318.6°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#401B4A
RGBrgb(64, 27, 74)
HSLhsl(287, 47%, 20%)
HSVhsv(287, 64%, 29%)
CMYKcmyk(13.5%, 63.5%, 0%, 71%)
CIE-LABlab(17.31, 26.51, -21.67)
CIE-LCHlch(17.31, 34.24, 320.74°)
OKLaboklab(29.84% 0.0686 -0.0604)
OKLCHoklch(29.84% 0.091 318.6)
XYZxyz(3.7422, 2.3684, 6.7373)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B4A #254A1B
analogous
#291B4A #401B4A #4A1B3D
triadic
#401B4A #4A401B #1B4A40
tetradic
#401B4A #4A291B #254A1B #1B3D4A
square
#401B4A #4A291B #254A1B #1B3D4A
split-complementary
#401B4A #3D4A1B #1B4A29
monochromatic
#130816 #190B1D #401B4A #672B77 #8E3CA4

Accessibility & contrast

On white

14.25
#401B4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#401B4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B4A
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B4A#FFFFFF#000000##FFFFFF
##401B4A1.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10284C
Deuteranopia (green-blind)
#1E2C49
Tritanopia (blue-blind)
#40222F
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #401b4a;
/* rgb */ color: rgb(64, 27, 74);
/* oklch */ color: oklch(29.8% 0.091 318.6);
Tailwind
colors: {
  custom: {
    50: '#76597d',
    500: '#401b4a',
    950: '#000000',
  },
}
SCSS
$custom: #401b4a;
$custom-light: #76597d;
$custom-dark: #000000;
JSON
{
  "hex": "#401b4a",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 74
  },
  "hsl": {
    "h": 287.234,
    "s": 46.535,
    "l": 19.804
  },
  "oklch": {
    "l": 0.29841,
    "c": 0.09137,
    "h": 318.6
  },
  "luminance": 0.02368
}

Semantic roles & 50–950 ramp

primary
#401B4A
secondary
#4E8041
accent
#D6526E
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#090409
muted
#7B797B

Preview Lab

Preview with #401B4A

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

Preview Lab → · Contrast checker → · Palette generator →

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