#401C50#401C50

#401C50 is a dark, moderate purple. Relative luminance 0.025; OKLCH L 30.4% C 0.097 H 314.1°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).

Color values

HEX#401C50
RGBrgb(64, 28, 80)
HSLhsl(282, 48%, 21%)
HSVhsv(282, 65%, 31%)
CMYKcmyk(20%, 65%, 0%, 68.6%)
CIE-LABlab(17.92, 27.39, -24.80)
CIE-LCHlch(17.92, 36.95, 317.84°)
OKLaboklab(30.41% 0.0674 -0.0695)
OKLCHoklch(30.41% 0.097 314.1)
XYZxyz(3.9773, 2.4998, 7.8609)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C50 #2C501C
analogous
#261C50 #401C50 #501C46
triadic
#401C50 #50401C #1C5040
tetradic
#401C50 #50261C #2C501C #1C4650
square
#401C50 #50261C #2C501C #1C4650
split-complementary
#401C50 #46501C #1C5026
monochromatic
#120817 #1C0C23 #401C50 #642C7D #893CAB

Accessibility & contrast

On white

14.00
#401C50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#401C50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401C50
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C50#FFFFFF#000000##FFFFFF
##401C501.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2A52
Deuteranopia (green-blind)
#1A2D4F
Tritanopia (blue-blind)
#3F2533
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #401c50;
/* rgb */ color: rgb(64, 28, 80);
/* oklch */ color: oklch(30.4% 0.097 314.1);
Tailwind
colors: {
  custom: {
    50: '#775a81',
    500: '#401c50',
    950: '#000000',
  },
}
SCSS
$custom: #401c50;
$custom-light: #775a81;
$custom-dark: #000000;
JSON
{
  "hex": "#401c50",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 80
  },
  "hsl": {
    "h": 281.538,
    "s": 48.148,
    "l": 21.176
  },
  "oklch": {
    "l": 0.30409,
    "c": 0.09679,
    "h": 314.1
  },
  "luminance": 0.025
}

Semantic roles & 50–950 ramp

primary
#401C50
secondary
#578642
accent
#D8507A
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09040A
muted
#7B797C

Preview Lab

Preview with #401C50

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

Preview Lab → · Contrast checker → · Palette generator →

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