#401B3A#401B3A

#401B3A is a dark, moderate purple. Relative luminance 0.022; OKLCH L 28.9% C 0.074 H 333.8°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#401B3A
RGBrgb(64, 27, 58)
HSLhsl(310, 41%, 18%)
HSVhsv(310, 58%, 25%)
CMYKcmyk(0%, 57.8%, 9.4%, 74.9%)
CIE-LABlab(16.40, 22.95, -11.98)
CIE-LCHlch(16.40, 25.89, 332.44°)
OKLaboklab(28.87% 0.066 -0.0325)
OKLCHoklch(28.87% 0.074 333.8)
XYZxyz(3.2700, 2.1796, 4.2506)
Luminance0.0218 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B3A #1B4021
analogous
#331B40 #401B3A #401B27
triadic
#401B3A #3A401B #1B3A40
tetradic
#401B3A #40331B #1B4021 #1B2740
square
#401B3A #40331B #1B4021 #1B2740
split-complementary
#401B3A #27401B #1B4033
monochromatic
#160914 #160914 #401B3A #6B2D61 #963F88

Accessibility & contrast

On white

14.63
#401B3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#401B3A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B3A
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B3A#FFFFFF#000000##FFFFFF
##401B3A1.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B253B
Deuteranopia (green-blind)
#252B39
Tritanopia (blue-blind)
#431D27
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #401b3a;
/* rgb */ color: rgb(64, 27, 58);
/* oklch */ color: oklch(28.9% 0.074 333.8);
Tailwind
colors: {
  custom: {
    50: '#765970',
    500: '#401b3a',
    950: '#000000',
  },
}
SCSS
$custom: #401b3a;
$custom-light: #765970;
$custom-dark: #000000;
JSON
{
  "hex": "#401b3a",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 58
  },
  "hsl": {
    "h": 309.73,
    "s": 40.659,
    "l": 17.843
  },
  "oklch": {
    "l": 0.28874,
    "c": 0.07361,
    "h": 333.8
  },
  "luminance": 0.02179
}

Semantic roles & 50–950 ramp

primary
#401B3A
secondary
#41754A
accent
#D16B57
background
#F7F5F6
surface
#EDE9EC
border
#C8C5C7
text
#080307
muted
#7B787A

Preview Lab

Preview with #401B3A

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

Preview Lab → · Contrast checker → · Palette generator →

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