#401B58#401B58

#401B58 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.8% C 0.108 H 309.4°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#401B58
RGBrgb(64, 27, 88)
HSLhsl(276, 53%, 23%)
HSVhsv(276, 69%, 35%)
CMYKcmyk(27.3%, 69.3%, 0%, 65.5%)
CIE-LABlab(18.27, 29.99, -29.63)
CIE-LCHlch(18.27, 42.16, 315.35°)
OKLaboklab(30.84% 0.0686 -0.0836)
OKLCHoklch(30.84% 0.108 309.4)
XYZxyz(4.2674, 2.5785, 9.5035)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B58 #33581B
analogous
#211B58 #401B58 #581B52
triadic
#401B58 #58401B #1B5840
tetradic
#401B58 #58211B #33581B #1B5258
square
#401B58 #58211B #33581B #1B5258
split-complementary
#401B58 #52581B #1B5821
monochromatic
#110717 #1E0D29 #401B58 #622987 #8438B6

Accessibility & contrast

On white

13.86
#401B58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401B58
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B58#FFFFFF#000000##FFFFFF
##401B581.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5A
Deuteranopia (green-blind)
#122D57
Tritanopia (blue-blind)
#3D2736
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #401b58;
/* rgb */ color: rgb(64, 27, 88);
/* oklch */ color: oklch(30.8% 0.108 309.4);
Tailwind
colors: {
  custom: {
    50: '#775a87',
    500: '#401b58',
    950: '#000000',
  },
}
SCSS
$custom: #401b58;
$custom-light: #775a87;
$custom-dark: #000000;
JSON
{
  "hex": "#401b58",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 88
  },
  "hsl": {
    "h": 276.393,
    "s": 53.043,
    "l": 22.549
  },
  "oklch": {
    "l": 0.30844,
    "c": 0.10819,
    "h": 309.4
  },
  "luminance": 0.02578
}

Semantic roles & 50–950 ramp

primary
#401B58
secondary
#5F8E41
accent
#DC4B84
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09040B
muted
#7B797C

Preview Lab

Preview with #401B58

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

Preview Lab → · Contrast checker → · Palette generator →

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