#401B40#401B40

#401B40 is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.2% C 0.080 H 327.4°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#401B40
RGBrgb(64, 27, 64)
HSLhsl(300, 41%, 18%)
HSVhsv(300, 58%, 25%)
CMYKcmyk(0%, 57.8%, 0%, 74.9%)
CIE-LABlab(16.72, 24.22, -15.69)
CIE-LCHlch(16.72, 28.86, 327.07°)
OKLaboklab(29.21% 0.0673 -0.0431)
OKLCHoklch(29.21% 0.08 327.4)
XYZxyz(3.4316, 2.2442, 5.1019)
Luminance0.0224 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B40 #1B401B
analogous
#2D1B40 #401B40 #401B2D
triadic
#401B40 #40401B #1B4040
tetradic
#401B40 #402D1B #1B401B #1B2D40
square
#401B40 #402D1B #1B401B #1B2D40
split-complementary
#401B40 #2D401B #1B402D
monochromatic
#160916 #160916 #401B40 #6B2D6B #963F96

Accessibility & contrast

On white

14.49
#401B40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#401B40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B40
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B40#FFFFFF#000000##FFFFFF
##401B401.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172641
Deuteranopia (green-blind)
#232B3F
Tritanopia (blue-blind)
#421F2A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #401b40;
/* rgb */ color: rgb(64, 27, 64);
/* oklch */ color: oklch(29.2% 0.080 327.4);
Tailwind
colors: {
  custom: {
    50: '#765975',
    500: '#401b40',
    950: '#000000',
  },
}
SCSS
$custom: #401b40;
$custom-light: #765975;
$custom-dark: #000000;
JSON
{
  "hex": "#401b40",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 64
  },
  "hsl": {
    "h": 300,
    "s": 40.659,
    "l": 17.843
  },
  "oklch": {
    "l": 0.29213,
    "c": 0.07993,
    "h": 327.4
  },
  "luminance": 0.02244
}

Semantic roles & 50–950 ramp

primary
#401B40
secondary
#417541
accent
#D15757
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#080308
muted
#7B787B

Preview Lab

Preview with #401B40

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

Preview Lab → · Contrast checker → · Palette generator →

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