#401B4C#401B4C

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

Color values

HEX#401B4C
RGBrgb(64, 27, 76)
HSLhsl(285, 48%, 20%)
HSVhsv(285, 64%, 30%)
CMYKcmyk(15.8%, 64.5%, 0%, 70.2%)
CIE-LABlab(17.44, 26.99, -22.84)
CIE-LCHlch(17.44, 35.35, 319.76°)
OKLaboklab(29.98% 0.0687 -0.0638)
OKLCHoklch(29.98% 0.094 317.1)
XYZxyz(3.8106, 2.3958, 7.0978)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B4C #274C1B
analogous
#271B4C #401B4C #4C1B3F
triadic
#401B4C #4C401B #1B4C40
tetradic
#401B4C #4C271B #274C1B #1B3F4C
square
#401B4C #4C271B #274C1B #1B3F4C
split-complementary
#401B4C #3F4C1B #1B4C27
monochromatic
#130817 #1A0B1F #401B4C #662B79 #8C3BA6

Accessibility & contrast

On white

14.20
#401B4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401B4C
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B4C#FFFFFF#000000##FFFFFF
##401B4C1.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401b4c;
/* rgb */ color: rgb(64, 27, 76);
/* oklch */ color: oklch(30.0% 0.094 317.1);
Tailwind
colors: {
  custom: {
    50: '#765a7e',
    500: '#401b4c',
    950: '#000000',
  },
}
SCSS
$custom: #401b4c;
$custom-light: #765a7e;
$custom-dark: #000000;
JSON
{
  "hex": "#401b4c",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 76
  },
  "hsl": {
    "h": 285.306,
    "s": 47.573,
    "l": 20.196
  },
  "oklch": {
    "l": 0.29976,
    "c": 0.09374,
    "h": 317.1
  },
  "luminance": 0.02396
}

Semantic roles & 50–950 ramp

primary
#401B4C
secondary
#518241
accent
#D75172
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09040A
muted
#7B797C

Preview Lab

Preview with #401B4C

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

Preview Lab → · Contrast checker → · Palette generator →

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