#401B4D#401B4D

#401B4D is a dark, moderate purple. Relative luminance 0.024; OKLCH L 30.0% C 0.095 H 316.4°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#401B4D
RGBrgb(64, 27, 77)
HSLhsl(284, 48%, 20%)
HSVhsv(284, 65%, 30%)
CMYKcmyk(16.9%, 64.9%, 0%, 69.8%)
CIE-LABlab(17.51, 27.23, -23.41)
CIE-LCHlch(17.51, 35.91, 319.31°)
OKLaboklab(30.04% 0.0688 -0.0655)
OKLCHoklch(30.04% 0.095 316.4)
XYZxyz(3.8456, 2.4098, 7.2823)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B4D #284D1B
analogous
#271B4D #401B4D #4D1B41
triadic
#401B4D #4D401B #1B4D40
tetradic
#401B4D #4D271B #284D1B #1B414D
square
#401B4D #4D271B #284D1B #1B414D
split-complementary
#401B4D #414D1B #1B4D27
monochromatic
#130817 #1A0B20 #401B4D #662B7A #8B3BA8

Accessibility & contrast

On white

14.17
#401B4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401B4D
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B4D#FFFFFF#000000##FFFFFF
##401B4D1.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D294F
Deuteranopia (green-blind)
#1C2C4C
Tritanopia (blue-blind)
#3F2331
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #401b4d;
/* rgb */ color: rgb(64, 27, 77);
/* oklch */ color: oklch(30.0% 0.095 316.4);
Tailwind
colors: {
  custom: {
    50: '#775a7f',
    500: '#401b4d',
    950: '#000000',
  },
}
SCSS
$custom: #401b4d;
$custom-light: #775a7f;
$custom-dark: #000000;
JSON
{
  "hex": "#401b4d",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 77
  },
  "hsl": {
    "h": 284.4,
    "s": 48.077,
    "l": 20.392
  },
  "oklch": {
    "l": 0.30044,
    "c": 0.09493,
    "h": 316.4
  },
  "luminance": 0.0241
}

Semantic roles & 50–950 ramp

primary
#401B4D
secondary
#528341
accent
#D85073
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09040A
muted
#7B797C

Preview Lab

Preview with #401B4D

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

Preview Lab → · Contrast checker → · Palette generator →

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