#401B3F#401B3F

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

Color values

HEX#401B3F
RGBrgb(64, 27, 63)
HSLhsl(302, 41%, 18%)
HSVhsv(302, 58%, 25%)
CMYKcmyk(0%, 57.8%, 1.6%, 74.9%)
CIE-LABlab(16.66, 24.00, -15.08)
CIE-LCHlch(16.66, 28.35, 327.87°)
OKLaboklab(29.15% 0.0671 -0.0413)
OKLCHoklch(29.15% 0.079 328.4)
XYZxyz(3.4034, 2.2329, 4.9534)
Luminance0.0223 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B3F #1B401C
analogous
#2E1B40 #401B3F #401B2C
triadic
#401B3F #3F401B #1B3F40
tetradic
#401B3F #402E1B #1B401C #1B2C40
square
#401B3F #402E1B #1B401C #1B2C40
split-complementary
#401B3F #2C401B #1B402E
monochromatic
#160915 #160915 #401B3F #6B2D69 #963F94

Accessibility & contrast

On white

14.52
#401B3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401B3F
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B3F#FFFFFF#000000##FFFFFF
##401B3F1.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401b3f;
/* rgb */ color: rgb(64, 27, 63);
/* oklch */ color: oklch(29.2% 0.079 328.4);
Tailwind
colors: {
  custom: {
    50: '#765974',
    500: '#401b3f',
    950: '#000000',
  },
}
SCSS
$custom: #401b3f;
$custom-light: #765974;
$custom-dark: #000000;
JSON
{
  "hex": "#401b3f",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 63
  },
  "hsl": {
    "h": 301.622,
    "s": 40.659,
    "l": 17.843
  },
  "oklch": {
    "l": 0.29154,
    "c": 0.07884,
    "h": 328.4
  },
  "luminance": 0.02233
}

Semantic roles & 50–950 ramp

primary
#401B3F
secondary
#417543
accent
#D15B57
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#080308
muted
#7B787B

Preview Lab

Preview with #401B3F

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

Preview Lab → · Contrast checker → · Palette generator →

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