#401D5E#401D5E

#401D5E is a dark, moderate violet. Relative luminance 0.028; OKLCH L 31.6% C 0.112 H 305.6°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#401D5E
RGBrgb(64, 29, 94)
HSLhsl(272, 53%, 24%)
HSVhsv(272, 69%, 37%)
CMYKcmyk(31.9%, 69.1%, 0%, 63.1%)
CIE-LABlab(19.13, 30.45, -32.25)
CIE-LCHlch(19.13, 44.36, 313.36°)
OKLaboklab(31.61% 0.0655 -0.0914)
OKLCHoklch(31.61% 0.112 305.6)
XYZxyz(4.5737, 2.7769, 10.8826)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D5E #3B5E1D
analogous
#201D5E #401D5E #5E1D5C
triadic
#401D5E #5E401D #1D5E40
tetradic
#401D5E #5E201D #3B5E1D #1D5C5E
square
#401D5E #5E201D #3B5E1D #1D5C5E
split-complementary
#401D5E #5C5E1D #1D5E20
monochromatic
#100717 #200F2F #401D5E #602B8D #803ABC

Accessibility & contrast

On white

13.50
#401D5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401D5E
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D5E#FFFFFF#000000##FFFFFF
##401D5E1.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D60
Deuteranopia (green-blind)
#0D2F5D
Tritanopia (blue-blind)
#3B2B3A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #401d5e;
/* rgb */ color: rgb(64, 29, 94);
/* oklch */ color: oklch(31.6% 0.112 305.6);
Tailwind
colors: {
  custom: {
    50: '#785b8c',
    500: '#401d5e',
    950: '#000000',
  },
}
SCSS
$custom: #401d5e;
$custom-light: #785b8c;
$custom-dark: #000000;
JSON
{
  "hex": "#401d5e",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 94
  },
  "hsl": {
    "h": 272.308,
    "s": 52.846,
    "l": 24.118
  },
  "oklch": {
    "l": 0.31606,
    "c": 0.11242,
    "h": 305.6
  },
  "luminance": 0.02777
}

Semantic roles & 50–950 ramp

primary
#401D5E
secondary
#689344
accent
#DC4C8E
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #401D5E

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

Preview Lab → · Contrast checker → · Palette generator →

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