#401C4E#401C4E

#401C4E is a dark, moderate purple. Relative luminance 0.025; OKLCH L 30.3% C 0.094 H 315.5°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#401C4E
RGBrgb(64, 28, 78)
HSLhsl(283, 47%, 21%)
HSVhsv(283, 64%, 31%)
CMYKcmyk(17.9%, 64.1%, 0%, 69.4%)
CIE-LABlab(17.79, 26.89, -23.65)
CIE-LCHlch(17.79, 35.82, 318.67°)
OKLaboklab(30.27% 0.0673 -0.0662)
OKLCHoklch(30.27% 0.094 315.5)
XYZxyz(3.9045, 2.4707, 7.4775)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C4E #2A4E1C
analogous
#271C4E #401C4E #4E1C43
triadic
#401C4E #4E401C #1C4E40
tetradic
#401C4E #4E271C #2A4E1C #1C434E
square
#401C4E #4E271C #2A4E1C #1C434E
split-complementary
#401C4E #434E1C #1C4E27
monochromatic
#120817 #1B0C21 #401C4E #652C7B #8A3CA8

Accessibility & contrast

On white

14.05
#401C4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401C4E
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C4E#FFFFFF#000000##FFFFFF
##401C4E1.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2950
Deuteranopia (green-blind)
#1C2D4D
Tritanopia (blue-blind)
#3F2432
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #401c4e;
/* rgb */ color: rgb(64, 28, 78);
/* oklch */ color: oklch(30.3% 0.094 315.5);
Tailwind
colors: {
  custom: {
    50: '#775a80',
    500: '#401c4e',
    950: '#000000',
  },
}
SCSS
$custom: #401c4e;
$custom-light: #775a80;
$custom-dark: #000000;
JSON
{
  "hex": "#401c4e",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 78
  },
  "hsl": {
    "h": 283.2,
    "s": 47.17,
    "l": 20.784
  },
  "oklch": {
    "l": 0.3027,
    "c": 0.09437,
    "h": 315.5
  },
  "luminance": 0.02471
}

Semantic roles & 50–950 ramp

primary
#401C4E
secondary
#558442
accent
#D75176
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09040A
muted
#7B797C

Preview Lab

Preview with #401C4E

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

Preview Lab → · Contrast checker → · Palette generator →

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