#401D50#401D50

#401D50 is a dark, moderate purple. Relative luminance 0.025; OKLCH L 30.6% C 0.095 H 313.9°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#401D50
RGBrgb(64, 29, 80)
HSLhsl(281, 47%, 21%)
HSVhsv(281, 64%, 31%)
CMYKcmyk(20%, 63.7%, 0%, 68.6%)
CIE-LABlab(18.13, 26.81, -24.45)
CIE-LCHlch(18.13, 36.29, 317.63°)
OKLaboklab(30.57% 0.0659 -0.0685)
OKLCHoklch(30.57% 0.095 313.9)
XYZxyz(4.0014, 2.5480, 7.8689)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D50 #2D501D
analogous
#271D50 #401D50 #501D47
triadic
#401D50 #50401D #1D5040
tetradic
#401D50 #50271D #2D501D #1D4750
square
#401D50 #50271D #2D501D #1D4750
split-complementary
#401D50 #47501D #1D5027
monochromatic
#120816 #1C0D23 #401D50 #642D7D #883EAA

Accessibility & contrast

On white

13.91
#401D50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#401D50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401D50
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D50#FFFFFF#000000##FFFFFF
##401D501.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2A52
Deuteranopia (green-blind)
#1B2D4F
Tritanopia (blue-blind)
#3F2633
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #401d50;
/* rgb */ color: rgb(64, 29, 80);
/* oklch */ color: oklch(30.6% 0.095 313.9);
Tailwind
colors: {
  custom: {
    50: '#775b81',
    500: '#401d50',
    950: '#000000',
  },
}
SCSS
$custom: #401d50;
$custom-light: #775b81;
$custom-dark: #000000;
JSON
{
  "hex": "#401d50",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 80
  },
  "hsl": {
    "h": 281.176,
    "s": 46.789,
    "l": 21.373
  },
  "oklch": {
    "l": 0.30567,
    "c": 0.09503,
    "h": 313.9
  },
  "luminance": 0.02548
}

Semantic roles & 50–950 ramp

primary
#401D50
secondary
#588544
accent
#D6517B
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09040A
muted
#7B797C

Preview Lab

Preview with #401D50

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

Preview Lab → · Contrast checker → · Palette generator →

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