#401B52#401B52

#401B52 is a dark, moderate purple. Relative luminance 0.025; OKLCH L 30.4% C 0.101 H 313.0°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).

Color values

HEX#401B52
RGBrgb(64, 27, 82)
HSLhsl(280, 50%, 21%)
HSVhsv(280, 67%, 32%)
CMYKcmyk(22%, 67.1%, 0%, 67.8%)
CIE-LABlab(17.84, 28.46, -26.28)
CIE-LCHlch(17.84, 38.74, 317.29°)
OKLaboklab(30.4% 0.0688 -0.0738)
OKLCHoklch(30.4% 0.101 313)
XYZxyz(4.0290, 2.4832, 8.2481)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B52 #2D521B
analogous
#251B52 #401B52 #521B49
triadic
#401B52 #52401B #1B5240
tetradic
#401B52 #52251B #2D521B #1B4952
square
#401B52 #52251B #2D521B #1B4952
split-complementary
#401B52 #49521B #1B5225
monochromatic
#120817 #1C0C24 #401B52 #642A80 #8839AE

Accessibility & contrast

On white

14.03
#401B52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#401B52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B52
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B52#FFFFFF#000000##FFFFFF
##401B521.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072A54
Deuteranopia (green-blind)
#182D51
Tritanopia (blue-blind)
#3E2533
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #401b52;
/* rgb */ color: rgb(64, 27, 82);
/* oklch */ color: oklch(30.4% 0.101 313.0);
Tailwind
colors: {
  custom: {
    50: '#775a83',
    500: '#401b52',
    950: '#000000',
  },
}
SCSS
$custom: #401b52;
$custom-light: #775a83;
$custom-dark: #000000;
JSON
{
  "hex": "#401b52",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 82
  },
  "hsl": {
    "h": 280.364,
    "s": 50.459,
    "l": 21.373
  },
  "oklch": {
    "l": 0.30398,
    "c": 0.10093,
    "h": 313
  },
  "luminance": 0.02483
}

Semantic roles & 50–950 ramp

primary
#401B52
secondary
#588841
accent
#DA4E7C
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09040A
muted
#7B797C

Preview Lab

Preview with #401B52

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

Preview Lab → · Contrast checker → · Palette generator →

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