#401B51#401B51

#401B51 is a dark, moderate purple. Relative luminance 0.025; OKLCH L 30.3% C 0.100 H 313.7°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#401B51
RGBrgb(64, 27, 81)
HSLhsl(281, 50%, 21%)
HSVhsv(281, 67%, 32%)
CMYKcmyk(21%, 66.7%, 0%, 68.2%)
CIE-LABlab(17.77, 28.21, -25.71)
CIE-LCHlch(17.77, 38.17, 317.66°)
OKLaboklab(30.33% 0.0688 -0.0722)
OKLCHoklch(30.33% 0.1 313.7)
XYZxyz(3.9912, 2.4681, 8.0491)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B51 #2C511B
analogous
#251B51 #401B51 #511B47
triadic
#401B51 #51401B #1B5140
tetradic
#401B51 #51251B #2C511B #1B4751
square
#401B51 #51251B #2C511B #1B4751
split-complementary
#401B51 #47511B #1B5125
monochromatic
#120817 #1C0C23 #401B51 #642A7F #893AAD

Accessibility & contrast

On white

14.06
#401B51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#401B51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B51
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B51#FFFFFF#000000##FFFFFF
##401B511.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082953
Deuteranopia (green-blind)
#192C50
Tritanopia (blue-blind)
#3E2533
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #401b51;
/* rgb */ color: rgb(64, 27, 81);
/* oklch */ color: oklch(30.3% 0.100 313.7);
Tailwind
colors: {
  custom: {
    50: '#775a82',
    500: '#401b51',
    950: '#000000',
  },
}
SCSS
$custom: #401b51;
$custom-light: #775a82;
$custom-dark: #000000;
JSON
{
  "hex": "#401b51",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 81
  },
  "hsl": {
    "h": 281.111,
    "s": 50,
    "l": 21.176
  },
  "oklch": {
    "l": 0.30326,
    "c": 0.09973,
    "h": 313.7
  },
  "luminance": 0.02468
}

Semantic roles & 50–950 ramp

primary
#401B51
secondary
#578741
accent
#DA4E7A
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09040A
muted
#7B797C

Preview Lab

Preview with #401B51

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

Preview Lab → · Contrast checker → · Palette generator →

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