#401E4D#401E4D

#401E4D is a dark, moderate purple. Relative luminance 0.026; OKLCH L 30.5% C 0.090 H 315.8°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#401E4D
RGBrgb(64, 30, 77)
HSLhsl(283, 44%, 21%)
HSVhsv(283, 61%, 30%)
CMYKcmyk(16.9%, 61%, 0%, 69.8%)
CIE-LABlab(18.16, 25.47, -22.37)
CIE-LCHlch(18.16, 33.90, 318.70°)
OKLaboklab(30.53% 0.0641 -0.0624)
OKLCHoklch(30.53% 0.09 315.8)
XYZxyz(3.9180, 2.5545, 7.3064)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E4D #2B4D1E
analogous
#281E4D #401E4D #4D1E42
triadic
#401E4D #4D401E #1E4D40
tetradic
#401E4D #4D281E #2B4D1E #1E424D
square
#401E4D #4D281E #2B4D1E #1E424D
split-complementary
#401E4D #424D1E #1E4D28
monochromatic
#120916 #1B0D21 #401E4D #652F79 #8940A5

Accessibility & contrast

On white

13.90
#401E4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401E4D
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E4D#FFFFFF#000000##FFFFFF
##401E4D1.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122A4F
Deuteranopia (green-blind)
#1E2D4C
Tritanopia (blue-blind)
#3F2632
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #401e4d;
/* rgb */ color: rgb(64, 30, 77);
/* oklch */ color: oklch(30.5% 0.090 315.8);
Tailwind
colors: {
  custom: {
    50: '#765b7f',
    500: '#401e4d',
    950: '#000000',
  },
}
SCSS
$custom: #401e4d;
$custom-light: #765b7f;
$custom-dark: #000000;
JSON
{
  "hex": "#401e4d",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 77
  },
  "hsl": {
    "h": 283.404,
    "s": 43.925,
    "l": 20.98
  },
  "oklch": {
    "l": 0.30525,
    "c": 0.08951,
    "h": 315.8
  },
  "luminance": 0.02554
}

Semantic roles & 50–950 ramp

primary
#401E4D
secondary
#568245
accent
#D45477
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09040A
muted
#7B797C

Preview Lab

Preview with #401E4D

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

Preview Lab → · Contrast checker → · Palette generator →

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