#401D59#401D59

#401D59 is a dark, moderate violet. Relative luminance 0.027; OKLCH L 31.2% C 0.106 H 308.3°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#401D59
RGBrgb(64, 29, 89)
HSLhsl(275, 51%, 23%)
HSVhsv(275, 67%, 35%)
CMYKcmyk(28.1%, 67.4%, 0%, 65.1%)
CIE-LABlab(18.76, 29.12, -29.52)
CIE-LCHlch(18.76, 41.46, 314.61°)
OKLaboklab(31.22% 0.0658 -0.0833)
OKLCHoklch(31.22% 0.106 308.3)
XYZxyz(4.3565, 2.6901, 9.7390)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D59 #36591D
analogous
#221D59 #401D59 #591D54
triadic
#401D59 #59401D #1D5940
tetradic
#401D59 #59221D #36591D #1D5459
square
#401D59 #59221D #36591D #1D5459
split-complementary
#401D59 #54591D #1D5922
monochromatic
#110817 #1F0E2B #401D59 #612C87 #823BB5

Accessibility & contrast

On white

13.65
#401D59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401D59
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D59#FFFFFF#000000##FFFFFF
##401D591.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012C5B
Deuteranopia (green-blind)
#132E58
Tritanopia (blue-blind)
#3C2938
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #401d59;
/* rgb */ color: rgb(64, 29, 89);
/* oklch */ color: oklch(31.2% 0.106 308.3);
Tailwind
colors: {
  custom: {
    50: '#775b88',
    500: '#401d59',
    950: '#000000',
  },
}
SCSS
$custom: #401d59;
$custom-light: #775b88;
$custom-dark: #000000;
JSON
{
  "hex": "#401d59",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 89
  },
  "hsl": {
    "h": 275,
    "s": 50.847,
    "l": 23.137
  },
  "oklch": {
    "l": 0.3122,
    "c": 0.1062,
    "h": 308.3
  },
  "luminance": 0.0269
}

Semantic roles & 50–950 ramp

primary
#401D59
secondary
#638E44
accent
#DA4D88
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040B
muted
#7B797C

Preview Lab

Preview with #401D59

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

Preview Lab → · Contrast checker → · Palette generator →

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