#401B48#401B48

#401B48 is a dark, moderate purple. Relative luminance 0.023; OKLCH L 29.7% C 0.089 H 320.2°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#401B48
RGBrgb(64, 27, 72)
HSLhsl(289, 45%, 19%)
HSVhsv(289, 63%, 28%)
CMYKcmyk(11.1%, 62.5%, 0%, 71.8%)
CIE-LABlab(17.19, 26.03, -20.49)
CIE-LCHlch(17.19, 33.13, 321.79°)
OKLaboklab(29.71% 0.0684 -0.057)
OKLCHoklch(29.71% 0.089 320.2)
XYZxyz(3.6758, 2.3419, 6.3880)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B48 #23481B
analogous
#2A1B48 #401B48 #481B3A
triadic
#401B48 #48401B #1B4840
tetradic
#401B48 #482A1B #23481B #1B3A48
square
#401B48 #482A1B #23481B #1B3A48
split-complementary
#401B48 #3A481B #1B482A
monochromatic
#140816 #180A1B #401B48 #682C75 #8F3CA1

Accessibility & contrast

On white

14.30
#401B48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401B48
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B48#FFFFFF#000000##FFFFFF
##401B481.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122849
Deuteranopia (green-blind)
#1F2C47
Tritanopia (blue-blind)
#40222E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #401b48;
/* rgb */ color: rgb(64, 27, 72);
/* oklch */ color: oklch(29.7% 0.089 320.2);
Tailwind
colors: {
  custom: {
    50: '#76597b',
    500: '#401b48',
    950: '#000000',
  },
}
SCSS
$custom: #401b48;
$custom-light: #76597b;
$custom-dark: #000000;
JSON
{
  "hex": "#401b48",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 72
  },
  "hsl": {
    "h": 289.333,
    "s": 45.455,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29709,
    "c": 0.08903,
    "h": 320.2
  },
  "luminance": 0.02342
}

Semantic roles & 50–950 ramp

primary
#401B48
secondary
#4C7E41
accent
#D5536A
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#090409
muted
#7B797B

Preview Lab

Preview with #401B48

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

Preview Lab → · Contrast checker → · Palette generator →

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