#401B49#401B49

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

Color values

HEX#401B49
RGBrgb(64, 27, 73)
HSLhsl(288, 46%, 20%)
HSVhsv(288, 63%, 29%)
CMYKcmyk(12.3%, 63%, 0%, 71.4%)
CIE-LABlab(17.25, 26.27, -21.08)
CIE-LCHlch(17.25, 33.68, 321.25°)
OKLaboklab(29.78% 0.0685 -0.0587)
OKLCHoklch(29.78% 0.09 319.4)
XYZxyz(3.7087, 2.3550, 6.5612)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B49 #24491B
analogous
#291B49 #401B49 #491B3B
triadic
#401B49 #49401B #1B4940
tetradic
#401B49 #49291B #24491B #1B3B49
square
#401B49 #49291B #24491B #1B3B49
split-complementary
#401B49 #3B491B #1B4929
monochromatic
#140816 #190A1C #401B49 #672C76 #8E3CA2

Accessibility & contrast

On white

14.28
#401B49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401B49
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B49#FFFFFF#000000##FFFFFF
##401B491.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11284A
Deuteranopia (green-blind)
#1E2C48
Tritanopia (blue-blind)
#40222F
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #401b49;
/* rgb */ color: rgb(64, 27, 73);
/* oklch */ color: oklch(29.8% 0.090 319.4);
Tailwind
colors: {
  custom: {
    50: '#76597c',
    500: '#401b49',
    950: '#000000',
  },
}
SCSS
$custom: #401b49;
$custom-light: #76597c;
$custom-dark: #000000;
JSON
{
  "hex": "#401b49",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 73
  },
  "hsl": {
    "h": 288.261,
    "s": 46,
    "l": 19.608
  },
  "oklch": {
    "l": 0.29775,
    "c": 0.09019,
    "h": 319.4
  },
  "luminance": 0.02355
}

Semantic roles & 50–950 ramp

primary
#401B49
secondary
#4D7F41
accent
#D6526C
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#090409
muted
#7B797B

Preview Lab

Preview with #401B49

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

Preview Lab → · Contrast checker → · Palette generator →

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