#401B45#401B45

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

Color values

HEX#401B45
RGBrgb(64, 27, 69)
HSLhsl(293, 44%, 19%)
HSVhsv(293, 61%, 27%)
CMYKcmyk(7.2%, 60.9%, 0%, 72.9%)
CIE-LABlab(17.01, 25.34, -18.71)
CIE-LCHlch(17.01, 31.50, 323.56°)
OKLaboklab(29.52% 0.0681 -0.0518)
OKLCHoklch(29.52% 0.086 322.7)
XYZxyz(3.5804, 2.3037, 5.8851)
Luminance0.0230 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B45 #20451B
analogous
#2B1B45 #401B45 #451B35
triadic
#401B45 #45401B #1B4540
tetradic
#401B45 #452B1B #20451B #1B3545
square
#401B45 #452B1B #20451B #1B3545
split-complementary
#401B45 #35451B #1B452B
monochromatic
#140916 #170A19 #401B45 #692C71 #923D9D

Accessibility & contrast

On white

14.38
#401B45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401B45
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B45#FFFFFF#000000##FFFFFF
##401B451.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142746
Deuteranopia (green-blind)
#202B44
Tritanopia (blue-blind)
#41212D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #401b45;
/* rgb */ color: rgb(64, 27, 69);
/* oklch */ color: oklch(29.5% 0.086 322.7);
Tailwind
colors: {
  custom: {
    50: '#765979',
    500: '#401b45',
    950: '#000000',
  },
}
SCSS
$custom: #401b45;
$custom-light: #765979;
$custom-dark: #000000;
JSON
{
  "hex": "#401b45",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 69
  },
  "hsl": {
    "h": 292.857,
    "s": 43.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.29517,
    "c": 0.08555,
    "h": 322.7
  },
  "luminance": 0.02304
}

Semantic roles & 50–950 ramp

primary
#401B45
secondary
#487B41
accent
#D35463
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#090409
muted
#7B797B

Preview Lab

Preview with #401B45

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

Preview Lab → · Contrast checker → · Palette generator →

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