#401C4D#401C4D

#401C4D is a dark, moderate purple. Relative luminance 0.025; OKLCH L 30.2% C 0.093 H 316.2°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#401C4D
RGBrgb(64, 28, 77)
HSLhsl(284, 47%, 21%)
HSVhsv(284, 64%, 30%)
CMYKcmyk(16.9%, 63.6%, 0%, 69.8%)
CIE-LABlab(17.72, 26.65, -23.07)
CIE-LCHlch(17.72, 35.25, 319.11°)
OKLaboklab(30.2% 0.0672 -0.0645)
OKLCHoklch(30.2% 0.093 316.2)
XYZxyz(3.8690, 2.4565, 7.2901)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C4D #294D1C
analogous
#271C4D #401C4D #4D1C41
triadic
#401C4D #4D401C #1C4D40
tetradic
#401C4D #4D271C #294D1C #1C414D
square
#401C4D #4D271C #294D1C #1C414D
split-complementary
#401C4D #414D1C #1C4D27
monochromatic
#130816 #1B0C20 #401C4D #652C7A #8B3DA7

Accessibility & contrast

On white

14.08
#401C4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401C4D
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C4D#FFFFFF#000000##FFFFFF
##401C4D1.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401c4d;
/* rgb */ color: rgb(64, 28, 77);
/* oklch */ color: oklch(30.2% 0.093 316.2);
Tailwind
colors: {
  custom: {
    50: '#765a7f',
    500: '#401c4d',
    950: '#000000',
  },
}
SCSS
$custom: #401c4d;
$custom-light: #765a7f;
$custom-dark: #000000;
JSON
{
  "hex": "#401c4d",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 77
  },
  "hsl": {
    "h": 284.082,
    "s": 46.667,
    "l": 20.588
  },
  "oklch": {
    "l": 0.30201,
    "c": 0.09315,
    "h": 316.2
  },
  "luminance": 0.02456
}

Semantic roles & 50–950 ramp

primary
#401C4D
secondary
#538342
accent
#D65175
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09040A
muted
#7B797C

Preview Lab

Preview with #401C4D

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

Preview Lab → · Contrast checker → · Palette generator →

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