#401B43#401B43

#401B43 is a dark, moderate purple. Relative luminance 0.023; OKLCH L 29.4% C 0.083 H 324.5°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#401B43
RGBrgb(64, 27, 67)
HSLhsl(296, 43%, 18%)
HSVhsv(296, 60%, 26%)
CMYKcmyk(4.5%, 59.7%, 0%, 73.7%)
CIE-LABlab(16.89, 24.89, -17.51)
CIE-LCHlch(16.89, 30.43, 324.87°)
OKLaboklab(29.39% 0.0678 -0.0483)
OKLCHoklch(29.39% 0.083 324.5)
XYZxyz(3.5193, 2.2793, 5.5637)
Luminance0.0228 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B43 #1E431B
analogous
#2C1B43 #401B43 #431B32
triadic
#401B43 #43401B #1B4340
tetradic
#401B43 #432C1B #1E431B #1B3243
square
#401B43 #432C1B #1E431B #1B3243
split-complementary
#401B43 #32431B #1B432C
monochromatic
#150916 #160917 #401B43 #6A2D6F #933E9A

Accessibility & contrast

On white

14.43
#401B43 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401B43
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B43#FFFFFF#000000##FFFFFF
##401B431.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401b43;
/* rgb */ color: rgb(64, 27, 67);
/* oklch */ color: oklch(29.4% 0.083 324.5);
Tailwind
colors: {
  custom: {
    50: '#765977',
    500: '#401b43',
    950: '#000000',
  },
}
SCSS
$custom: #401b43;
$custom-light: #765977;
$custom-dark: #000000;
JSON
{
  "hex": "#401b43",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 67
  },
  "hsl": {
    "h": 295.5,
    "s": 42.553,
    "l": 18.431
  },
  "oklch": {
    "l": 0.29393,
    "c": 0.08327,
    "h": 324.5
  },
  "luminance": 0.02279
}

Semantic roles & 50–950 ramp

primary
#401B43
secondary
#457941
accent
#D2555F
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#090408
muted
#7B797B

Preview Lab

Preview with #401B43

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

Preview Lab → · Contrast checker → · Palette generator →

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