#401B4F#401B4F

#401B4F is a dark, moderate purple. Relative luminance 0.024; OKLCH L 30.2% C 0.097 H 315.0°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#401B4F
RGBrgb(64, 27, 79)
HSLhsl(283, 49%, 21%)
HSVhsv(283, 66%, 31%)
CMYKcmyk(19%, 65.8%, 0%, 69%)
CIE-LABlab(17.64, 27.72, -24.57)
CIE-LCHlch(17.64, 37.04, 318.45°)
OKLaboklab(30.18% 0.0688 -0.0688)
OKLCHoklch(30.18% 0.097 315)
XYZxyz(3.9173, 2.4385, 7.6599)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B4F #2A4F1B
analogous
#261B4F #401B4F #4F1B44
triadic
#401B4F #4F401B #1B4F40
tetradic
#401B4F #4F261B #2A4F1B #1B444F
square
#401B4F #4F261B #2A4F1B #1B444F
split-complementary
#401B4F #444F1B #1B4F26
monochromatic
#120817 #1B0B21 #401B4F #652B7D #8A3AAA

Accessibility & contrast

On white

14.12
#401B4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#401B4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B4F
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B4F#FFFFFF#000000##FFFFFF
##401B4F1.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2951
Deuteranopia (green-blind)
#1A2C4E
Tritanopia (blue-blind)
#3F2432
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #401b4f;
/* rgb */ color: rgb(64, 27, 79);
/* oklch */ color: oklch(30.2% 0.097 315.0);
Tailwind
colors: {
  custom: {
    50: '#775a80',
    500: '#401b4f',
    950: '#000000',
  },
}
SCSS
$custom: #401b4f;
$custom-light: #775a80;
$custom-dark: #000000;
JSON
{
  "hex": "#401b4f",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 79
  },
  "hsl": {
    "h": 282.692,
    "s": 49.057,
    "l": 20.784
  },
  "oklch": {
    "l": 0.30184,
    "c": 0.09732,
    "h": 315
  },
  "luminance": 0.02438
}

Semantic roles & 50–950 ramp

primary
#401B4F
secondary
#558541
accent
#D94F77
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09040A
muted
#7B797C

Preview Lab

Preview with #401B4F

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

Preview Lab → · Contrast checker → · Palette generator →

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