#401B50#401B50

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

Color values

HEX#401B50
RGBrgb(64, 27, 80)
HSLhsl(282, 50%, 21%)
HSVhsv(282, 66%, 31%)
CMYKcmyk(20%, 66.3%, 0%, 68.6%)
CIE-LABlab(17.71, 27.97, -25.14)
CIE-LCHlch(17.71, 37.60, 318.05°)
OKLaboklab(30.25% 0.0688 -0.0705)
OKLCHoklch(30.25% 0.099 314.3)
XYZxyz(3.9540, 2.4532, 7.8531)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B50 #2B501B
analogous
#251B50 #401B50 #501B45
triadic
#401B50 #50401B #1B5040
tetradic
#401B50 #50251B #2B501B #1B4550
square
#401B50 #50251B #2B501B #1B4550
split-complementary
#401B50 #45501B #1B5025
monochromatic
#120817 #1B0C22 #401B50 #652A7E #893AAC

Accessibility & contrast

On white

14.09
#401B50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401B50
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B50#FFFFFF#000000##FFFFFF
##401B501.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2952
Deuteranopia (green-blind)
#192C4F
Tritanopia (blue-blind)
#3F2432
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #401b50;
/* rgb */ color: rgb(64, 27, 80);
/* oklch */ color: oklch(30.3% 0.099 314.3);
Tailwind
colors: {
  custom: {
    50: '#775a81',
    500: '#401b50',
    950: '#000000',
  },
}
SCSS
$custom: #401b50;
$custom-light: #775a81;
$custom-dark: #000000;
JSON
{
  "hex": "#401b50",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 80
  },
  "hsl": {
    "h": 281.887,
    "s": 49.533,
    "l": 20.98
  },
  "oklch": {
    "l": 0.30254,
    "c": 0.09852,
    "h": 314.3
  },
  "luminance": 0.02453
}

Semantic roles & 50–950 ramp

primary
#401B50
secondary
#568641
accent
#D94F78
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09040A
muted
#7B797C

Preview Lab

Preview with #401B50

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

Preview Lab → · Contrast checker → · Palette generator →

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