#401B44#401B44

#401B44 is a dark, moderate purple. Relative luminance 0.023; OKLCH L 29.5% C 0.084 H 323.6°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#401B44
RGBrgb(64, 27, 68)
HSLhsl(294, 43%, 19%)
HSVhsv(294, 60%, 27%)
CMYKcmyk(5.9%, 60.3%, 0%, 73.3%)
CIE-LABlab(16.95, 25.11, -18.11)
CIE-LCHlch(16.95, 30.96, 324.20°)
OKLaboklab(29.46% 0.068 -0.0501)
OKLCHoklch(29.46% 0.084 323.6)
XYZxyz(3.5496, 2.2914, 5.7230)
Luminance0.0229 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B44 #1F441B
analogous
#2B1B44 #401B44 #441B33
triadic
#401B44 #44401B #1B4440
tetradic
#401B44 #442B1B #1F441B #1B3344
square
#401B44 #442B1B #1F441B #1B3344
split-complementary
#401B44 #33441B #1B442B
monochromatic
#150916 #170A18 #401B44 #692C70 #923E9C

Accessibility & contrast

On white

14.40
#401B44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#401B44 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B44
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B44#FFFFFF#000000##FFFFFF
##401B441.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152745
Deuteranopia (green-blind)
#212B43
Tritanopia (blue-blind)
#41202C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #401b44;
/* rgb */ color: rgb(64, 27, 68);
/* oklch */ color: oklch(29.5% 0.084 323.6);
Tailwind
colors: {
  custom: {
    50: '#765978',
    500: '#401b44',
    950: '#000000',
  },
}
SCSS
$custom: #401b44;
$custom-light: #765978;
$custom-dark: #000000;
JSON
{
  "hex": "#401b44",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 68
  },
  "hsl": {
    "h": 294.146,
    "s": 43.158,
    "l": 18.627
  },
  "oklch": {
    "l": 0.29455,
    "c": 0.08441,
    "h": 323.6
  },
  "luminance": 0.02291
}

Semantic roles & 50–950 ramp

primary
#401B44
secondary
#477A41
accent
#D35561
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#090409
muted
#7B797B

Preview Lab

Preview with #401B44

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

Preview Lab → · Contrast checker → · Palette generator →

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