#401B4B#401B4B

#401B4B is a dark, moderate purple. Relative luminance 0.024; OKLCH L 29.9% C 0.093 H 317.9°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#401B4B
RGBrgb(64, 27, 75)
HSLhsl(286, 47%, 20%)
HSVhsv(286, 64%, 29%)
CMYKcmyk(14.7%, 64%, 0%, 70.6%)
CIE-LABlab(17.38, 26.75, -22.25)
CIE-LCHlch(17.38, 34.79, 320.24°)
OKLaboklab(29.91% 0.0687 -0.0621)
OKLCHoklch(29.91% 0.093 317.9)
XYZxyz(3.7761, 2.3820, 6.9161)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B4B #264B1B
analogous
#281B4B #401B4B #4B1B3E
triadic
#401B4B #4B401B #1B4B40
tetradic
#401B4B #4B281B #264B1B #1B3E4B
square
#401B4B #4B281B #264B1B #1B3E4B
split-complementary
#401B4B #3E4B1B #1B4B28
monochromatic
#130817 #1A0B1E #401B4B #662B78 #8D3BA5

Accessibility & contrast

On white

14.22
#401B4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401B4B
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B4B#FFFFFF#000000##FFFFFF
##401B4B1.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F284D
Deuteranopia (green-blind)
#1D2C4A
Tritanopia (blue-blind)
#402330
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #401b4b;
/* rgb */ color: rgb(64, 27, 75);
/* oklch */ color: oklch(29.9% 0.093 317.9);
Tailwind
colors: {
  custom: {
    50: '#765a7d',
    500: '#401b4b',
    950: '#000000',
  },
}
SCSS
$custom: #401b4b;
$custom-light: #765a7d;
$custom-dark: #000000;
JSON
{
  "hex": "#401b4b",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 75
  },
  "hsl": {
    "h": 286.25,
    "s": 47.059,
    "l": 20
  },
  "oklch": {
    "l": 0.29908,
    "c": 0.09256,
    "h": 317.9
  },
  "luminance": 0.02382
}

Semantic roles & 50–950 ramp

primary
#401B4B
secondary
#508141
accent
#D75170
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09040A
muted
#7B797C

Preview Lab

Preview with #401B4B

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

Preview Lab → · Contrast checker → · Palette generator →

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