#401A4F#401A4F

#401A4F is a dark, moderate purple. Relative luminance 0.024; OKLCH L 30.0% C 0.099 H 315.2°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#401A4F
RGBrgb(64, 26, 79)
HSLhsl(283, 50%, 21%)
HSVhsv(283, 67%, 31%)
CMYKcmyk(19%, 67.1%, 0%, 69%)
CIE-LABlab(17.43, 28.29, -24.90)
CIE-LCHlch(17.43, 37.68, 318.64°)
OKLaboklab(30.03% 0.0703 -0.0698)
OKLCHoklch(30.03% 0.099 315.2)
XYZxyz(3.8948, 2.3934, 7.6524)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401A4F #294F1A
analogous
#251A4F #401A4F #4F1A43
triadic
#401A4F #4F401A #1A4F40
tetradic
#401A4F #4F251A #294F1A #1A434F
square
#401A4F #4F251A #294F1A #1A434F
split-complementary
#401A4F #434F1A #1A4F25
monochromatic
#130817 #1B0B21 #401A4F #65297D #8B38AB

Accessibility & contrast

On white

14.20
#401A4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#401A4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401A4F
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401A4F#FFFFFF#000000##FFFFFF
##401A4F1.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092951
Deuteranopia (green-blind)
#192C4E
Tritanopia (blue-blind)
#3F2331
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #401a4f;
/* rgb */ color: rgb(64, 26, 79);
/* oklch */ color: oklch(30.0% 0.099 315.2);
Tailwind
colors: {
  custom: {
    50: '#775981',
    500: '#401a4f',
    950: '#000000',
  },
}
SCSS
$custom: #401a4f;
$custom-light: #775981;
$custom-dark: #000000;
JSON
{
  "hex": "#401a4f",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 79
  },
  "hsl": {
    "h": 283.019,
    "s": 50.476,
    "l": 20.588
  },
  "oklch": {
    "l": 0.30032,
    "c": 0.09904,
    "h": 315.2
  },
  "luminance": 0.02393
}

Semantic roles & 50–950 ramp

primary
#401A4F
secondary
#538540
accent
#DA4E75
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09040A
muted
#7B797C

Preview Lab

Preview with #401A4F

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

Preview Lab → · Contrast checker → · Palette generator →

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