#401E4C#401E4C

#401E4C is a dark, moderate purple. Relative luminance 0.025; OKLCH L 30.5% C 0.088 H 316.5°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#401E4C
RGBrgb(64, 30, 76)
HSLhsl(284, 43%, 21%)
HSVhsv(284, 61%, 30%)
CMYKcmyk(15.8%, 60.5%, 0%, 70.2%)
CIE-LABlab(18.10, 25.22, -21.79)
CIE-LCHlch(18.10, 33.33, 319.17°)
OKLaboklab(30.46% 0.0641 -0.0607)
OKLCHoklch(30.46% 0.088 316.5)
XYZxyz(3.8829, 2.5405, 7.1219)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E4C #2A4C1E
analogous
#291E4C #401E4C #4C1E41
triadic
#401E4C #4C401E #1E4C40
tetradic
#401E4C #4C291E #2A4C1E #1E414C
square
#401E4C #4C291E #2A4C1E #1E414C
split-complementary
#401E4C #414C1E #1E4C29
monochromatic
#120916 #1B0D20 #401E4C #652F78 #8A41A4

Accessibility & contrast

On white

13.93
#401E4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401E4C
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E4C#FFFFFF#000000##FFFFFF
##401E4C1.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132A4E
Deuteranopia (green-blind)
#1F2D4B
Tritanopia (blue-blind)
#3F2531
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #401e4c;
/* rgb */ color: rgb(64, 30, 76);
/* oklch */ color: oklch(30.5% 0.088 316.5);
Tailwind
colors: {
  custom: {
    50: '#765b7e',
    500: '#401e4c',
    950: '#000000',
  },
}
SCSS
$custom: #401e4c;
$custom-light: #765b7e;
$custom-dark: #000000;
JSON
{
  "hex": "#401e4c",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 76
  },
  "hsl": {
    "h": 284.348,
    "s": 43.396,
    "l": 20.784
  },
  "oklch": {
    "l": 0.30459,
    "c": 0.08828,
    "h": 316.5
  },
  "luminance": 0.0254
}

Semantic roles & 50–950 ramp

primary
#401E4C
secondary
#558145
accent
#D35576
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09040A
muted
#7B797C

Preview Lab

Preview with #401E4C

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

Preview Lab → · Contrast checker → · Palette generator →

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