#401B59#401B59

#401B59 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.9% C 0.109 H 308.8°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#401B59
RGBrgb(64, 27, 89)
HSLhsl(276, 53%, 23%)
HSVhsv(276, 70%, 35%)
CMYKcmyk(28.1%, 69.7%, 0%, 65.1%)
CIE-LABlab(18.34, 30.25, -30.18)
CIE-LCHlch(18.34, 42.73, 315.07°)
OKLaboklab(30.92% 0.0686 -0.0853)
OKLCHoklch(30.92% 0.109 308.8)
XYZxyz(4.3091, 2.5952, 9.7232)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B59 #34591B
analogous
#211B59 #401B59 #591B53
triadic
#401B59 #59401B #1B5940
tetradic
#401B59 #59211B #34591B #1B5359
square
#401B59 #59211B #34591B #1B5359
split-complementary
#401B59 #53591B #1B5921
monochromatic
#110717 #1E0D2A #401B59 #622988 #8437B7

Accessibility & contrast

On white

13.82
#401B59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#401B59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B59
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B59#FFFFFF#000000##FFFFFF
##401B591.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5B
Deuteranopia (green-blind)
#112D58
Tritanopia (blue-blind)
#3C2837
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #401b59;
/* rgb */ color: rgb(64, 27, 89);
/* oklch */ color: oklch(30.9% 0.109 308.8);
Tailwind
colors: {
  custom: {
    50: '#775a88',
    500: '#401b59',
    950: '#000000',
  },
}
SCSS
$custom: #401b59;
$custom-light: #775a88;
$custom-dark: #000000;
JSON
{
  "hex": "#401b59",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 89
  },
  "hsl": {
    "h": 275.806,
    "s": 53.448,
    "l": 22.745
  },
  "oklch": {
    "l": 0.30921,
    "c": 0.10941,
    "h": 308.8
  },
  "luminance": 0.02595
}

Semantic roles & 50–950 ramp

primary
#401B59
secondary
#608F41
accent
#DD4B86
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040B
muted
#7B797C

Preview Lab

Preview with #401B59

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

Preview Lab → · Contrast checker → · Palette generator →

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