#401D5B#401D5B

#401D5B is a dark, moderate violet. Relative luminance 0.027; OKLCH L 31.4% C 0.109 H 307.2°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#401D5B
RGBrgb(64, 29, 91)
HSLhsl(274, 52%, 24%)
HSVhsv(274, 68%, 36%)
CMYKcmyk(29.7%, 68.1%, 0%, 64.3%)
CIE-LABlab(18.90, 29.65, -30.62)
CIE-LCHlch(18.90, 42.62, 314.08°)
OKLaboklab(31.37% 0.0657 -0.0866)
OKLCHoklch(31.37% 0.109 307.2)
XYZxyz(4.4417, 2.7241, 10.1873)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D5B #385B1D
analogous
#211D5B #401D5B #5B1D57
triadic
#401D5B #5B401D #1D5B40
tetradic
#401D5B #5B211D #385B1D #1D575B
square
#401D5B #5B211D #385B1D #1D575B
split-complementary
#401D5B #575B1D #1D5B21
monochromatic
#100717 #1F0E2D #401D5B #612C89 #813BB8

Accessibility & contrast

On white

13.59
#401D5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#401D5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401D5B
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D5B#FFFFFF#000000##FFFFFF
##401D5B1.0013.591.5413.59
#FFFFFF13.591.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5D
Deuteranopia (green-blind)
#112E5A
Tritanopia (blue-blind)
#3C2A39
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #401d5b;
/* rgb */ color: rgb(64, 29, 91);
/* oklch */ color: oklch(31.4% 0.109 307.2);
Tailwind
colors: {
  custom: {
    50: '#775b8a',
    500: '#401d5b',
    950: '#000000',
  },
}
SCSS
$custom: #401d5b;
$custom-light: #775b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#401d5b",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 91
  },
  "hsl": {
    "h": 273.871,
    "s": 51.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.31373,
    "c": 0.10869,
    "h": 307.2
  },
  "luminance": 0.02724
}

Semantic roles & 50–950 ramp

primary
#401D5B
secondary
#659044
accent
#DB4D8B
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #401D5B

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

Preview Lab → · Contrast checker → · Palette generator →

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