#401B47#401B47

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

Color values

HEX#401B47
RGBrgb(64, 27, 71)
HSLhsl(290, 45%, 19%)
HSVhsv(290, 62%, 28%)
CMYKcmyk(9.9%, 62%, 0%, 72.2%)
CIE-LABlab(17.13, 25.80, -19.90)
CIE-LCHlch(17.13, 32.58, 322.36°)
OKLaboklab(29.64% 0.0683 -0.0552)
OKLCHoklch(29.64% 0.088 321)
XYZxyz(3.6435, 2.3290, 6.2176)
Luminance0.0233 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B47 #22471B
analogous
#2A1B47 #401B47 #471B38
triadic
#401B47 #47401B #1B4740
tetradic
#401B47 #472A1B #22471B #1B3847
square
#401B47 #472A1B #22471B #1B3847
split-complementary
#401B47 #38471B #1B472A
monochromatic
#140816 #180A1B #401B47 #682C73 #903DA0

Accessibility & contrast

On white

14.33
#401B47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#401B47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B47
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B47#FFFFFF#000000##FFFFFF
##401B471.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132748
Deuteranopia (green-blind)
#1F2C46
Tritanopia (blue-blind)
#41212E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #401b47;
/* rgb */ color: rgb(64, 27, 71);
/* oklch */ color: oklch(29.6% 0.088 321.0);
Tailwind
colors: {
  custom: {
    50: '#76597a',
    500: '#401b47',
    950: '#000000',
  },
}
SCSS
$custom: #401b47;
$custom-light: #76597a;
$custom-dark: #000000;
JSON
{
  "hex": "#401b47",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 71
  },
  "hsl": {
    "h": 290.455,
    "s": 44.898,
    "l": 19.216
  },
  "oklch": {
    "l": 0.29644,
    "c": 0.08786,
    "h": 321
  },
  "luminance": 0.02329
}

Semantic roles & 50–950 ramp

primary
#401B47
secondary
#4B7D41
accent
#D55368
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#090409
muted
#7B797B

Preview Lab

Preview with #401B47

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

Preview Lab → · Contrast checker → · Palette generator →

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