#401D5F#401D5F

#401D5F is a dark, moderate violet. Relative luminance 0.028; OKLCH L 31.7% C 0.114 H 305.1°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#401D5F
RGBrgb(64, 29, 95)
HSLhsl(272, 53%, 24%)
HSVhsv(272, 69%, 37%)
CMYKcmyk(32.6%, 69.5%, 0%, 62.7%)
CIE-LABlab(19.20, 30.72, -32.79)
CIE-LCHlch(19.20, 44.93, 313.13°)
OKLaboklab(31.69% 0.0654 -0.0929)
OKLCHoklch(31.69% 0.114 305.1)
XYZxyz(4.6188, 2.7950, 11.1204)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D5F #3C5F1D
analogous
#1F1D5F #401D5F #5F1D5D
triadic
#401D5F #5F401D #1D5F40
tetradic
#401D5F #5F1F1D #3C5F1D #1D5D5F
square
#401D5F #5F1F1D #3C5F1D #1D5D5F
split-complementary
#401D5F #5D5F1D #1D5F1F
monochromatic
#100717 #200F30 #401D5F #602B8E #7F3ABD

Accessibility & contrast

On white

13.47
#401D5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#401D5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401D5F
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D5F#FFFFFF#000000##FFFFFF
##401D5F1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E61
Deuteranopia (green-blind)
#0B2F5E
Tritanopia (blue-blind)
#3A2B3B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #401d5f;
/* rgb */ color: rgb(64, 29, 95);
/* oklch */ color: oklch(31.7% 0.114 305.1);
Tailwind
colors: {
  custom: {
    50: '#785b8d',
    500: '#401d5f',
    950: '#000000',
  },
}
SCSS
$custom: #401d5f;
$custom-light: #785b8d;
$custom-dark: #000000;
JSON
{
  "hex": "#401d5f",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 95
  },
  "hsl": {
    "h": 271.818,
    "s": 53.226,
    "l": 24.314
  },
  "oklch": {
    "l": 0.31685,
    "c": 0.11367,
    "h": 305.1
  },
  "luminance": 0.02795
}

Semantic roles & 50–950 ramp

primary
#401D5F
secondary
#699444
accent
#DD4B8F
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #401D5F

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

Preview Lab → · Contrast checker → · Palette generator →

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