#401B46#401B46

#401B46 is a dark, moderate purple. Relative luminance 0.023; OKLCH L 29.6% C 0.087 H 321.9°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#401B46
RGBrgb(64, 27, 70)
HSLhsl(292, 44%, 19%)
HSVhsv(292, 61%, 27%)
CMYKcmyk(8.6%, 61.4%, 0%, 72.5%)
CIE-LABlab(17.07, 25.57, -19.31)
CIE-LCHlch(17.07, 32.04, 322.94°)
OKLaboklab(29.58% 0.0682 -0.0535)
OKLCHoklch(29.58% 0.087 321.9)
XYZxyz(3.6117, 2.3162, 6.0500)
Luminance0.0232 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B46 #21461B
analogous
#2B1B46 #401B46 #461B37
triadic
#401B46 #46401B #1B4640
tetradic
#401B46 #462B1B #21461B #1B3746
square
#401B46 #462B1B #21461B #1B3746
split-complementary
#401B46 #37461B #1B462B
monochromatic
#140916 #180A1A #401B46 #682C72 #913D9E

Accessibility & contrast

On white

14.35
#401B46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401B46
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B46#FFFFFF#000000##FFFFFF
##401B461.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401b46;
/* rgb */ color: rgb(64, 27, 70);
/* oklch */ color: oklch(29.6% 0.087 321.9);
Tailwind
colors: {
  custom: {
    50: '#765979',
    500: '#401b46',
    950: '#000000',
  },
}
SCSS
$custom: #401b46;
$custom-light: #765979;
$custom-dark: #000000;
JSON
{
  "hex": "#401b46",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 70
  },
  "hsl": {
    "h": 291.628,
    "s": 44.33,
    "l": 19.02
  },
  "oklch": {
    "l": 0.2958,
    "c": 0.0867,
    "h": 321.9
  },
  "luminance": 0.02316
}

Semantic roles & 50–950 ramp

primary
#401B46
secondary
#497C41
accent
#D45466
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#090409
muted
#7B797B

Preview Lab

Preview with #401B46

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

Preview Lab → · Contrast checker → · Palette generator →

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