#401B3E#401B3E

#401B3E is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.1% C 0.078 H 329.4°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#401B3E
RGBrgb(64, 27, 62)
HSLhsl(303, 41%, 18%)
HSVhsv(303, 58%, 25%)
CMYKcmyk(0%, 57.8%, 3.1%, 74.9%)
CIE-LABlab(16.61, 23.79, -14.46)
CIE-LCHlch(16.61, 27.84, 328.70°)
OKLaboklab(29.1% 0.0669 -0.0396)
OKLCHoklch(29.1% 0.078 329.4)
XYZxyz(3.3757, 2.2219, 4.8075)
Luminance0.0222 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B3E #1B401D
analogous
#2F1B40 #401B3E #401B2B
triadic
#401B3E #3E401B #1B3E40
tetradic
#401B3E #402F1B #1B401D #1B2B40
square
#401B3E #402F1B #1B401D #1B2B40
split-complementary
#401B3E #2B401B #1B402F
monochromatic
#160915 #160915 #401B3E #6B2D68 #963F91

Accessibility & contrast

On white

14.54
#401B3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#401B3E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B3E
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B3E#FFFFFF#000000##FFFFFF
##401B3E1.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19263F
Deuteranopia (green-blind)
#242B3D
Tritanopia (blue-blind)
#421E29
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #401b3e;
/* rgb */ color: rgb(64, 27, 62);
/* oklch */ color: oklch(29.1% 0.078 329.4);
Tailwind
colors: {
  custom: {
    50: '#765973',
    500: '#401b3e',
    950: '#000000',
  },
}
SCSS
$custom: #401b3e;
$custom-light: #765973;
$custom-dark: #000000;
JSON
{
  "hex": "#401b3e",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 62
  },
  "hsl": {
    "h": 303.243,
    "s": 40.659,
    "l": 17.843
  },
  "oklch": {
    "l": 0.29096,
    "c": 0.07777,
    "h": 329.4
  },
  "luminance": 0.02222
}

Semantic roles & 50–950 ramp

primary
#401B3E
secondary
#417544
accent
#D15E57
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#080308
muted
#7B787B

Preview Lab

Preview with #401B3E

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

Preview Lab → · Contrast checker → · Palette generator →

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