#401B42#401B42

#401B42 is a dark, moderate purple. Relative luminance 0.023; OKLCH L 29.3% C 0.082 H 325.5°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#401B42
RGBrgb(64, 27, 66)
HSLhsl(297, 42%, 18%)
HSVhsv(297, 59%, 26%)
CMYKcmyk(3%, 59.1%, 0%, 74.1%)
CIE-LABlab(16.83, 24.66, -16.91)
CIE-LCHlch(16.83, 29.90, 325.57°)
OKLaboklab(29.33% 0.0677 -0.0466)
OKLCHoklch(29.33% 0.082 325.5)
XYZxyz(3.4896, 2.2674, 5.4070)
Luminance0.0227 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B42 #1D421B
analogous
#2C1B42 #401B42 #421B30
triadic
#401B42 #42401B #1B4240
tetradic
#401B42 #422C1B #1D421B #1B3042
square
#401B42 #422C1B #1D421B #1B3042
split-complementary
#401B42 #30421B #1B422C
monochromatic
#150916 #160917 #401B42 #6A2D6D #943F99

Accessibility & contrast

On white

14.45
#401B42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401B42
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B42#FFFFFF#000000##FFFFFF
##401B421.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162743
Deuteranopia (green-blind)
#222B41
Tritanopia (blue-blind)
#42202B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #401b42;
/* rgb */ color: rgb(64, 27, 66);
/* oklch */ color: oklch(29.3% 0.082 325.5);
Tailwind
colors: {
  custom: {
    50: '#765976',
    500: '#401b42',
    950: '#000000',
  },
}
SCSS
$custom: #401b42;
$custom-light: #765976;
$custom-dark: #000000;
JSON
{
  "hex": "#401b42",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 66
  },
  "hsl": {
    "h": 296.923,
    "s": 41.935,
    "l": 18.235
  },
  "oklch": {
    "l": 0.29332,
    "c": 0.08214,
    "h": 325.5
  },
  "luminance": 0.02267
}

Semantic roles & 50–950 ramp

primary
#401B42
secondary
#447841
accent
#D2565C
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#090408
muted
#7B797B

Preview Lab

Preview with #401B42

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

Preview Lab → · Contrast checker → · Palette generator →

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