#400B41#400B41

#400B41 is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.2% C 0.107 H 327.2°. Best body text is #FFFFFF at 15.65:1 contrast (WCAG AA passes).

Color values

HEX#400B41
RGBrgb(64, 11, 65)
HSLhsl(299, 71%, 15%)
HSVhsv(299, 83%, 25%)
CMYKcmyk(1.5%, 83.1%, 0%, 74.5%)
CIE-LABlab(13.89, 32.40, -20.85)
CIE-LCHlch(13.89, 38.53, 327.24°)
OKLaboklab(27.18% 0.0899 -0.0578)
OKLCHoklch(27.18% 0.107 327.2)
XYZxyz(3.1881, 1.7112, 5.1624)
Luminance0.0171 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400B41 #0C410B
analogous
#250B41 #400B41 #410B27
triadic
#400B41 #41400B #0B4140
tetradic
#400B41 #41250B #0C410B #0B2741
square
#400B41 #41250B #0C410B #0B2741
split-complementary
#400B41 #27410B #0B4125
monochromatic
#1A041A #1A041A #400B41 #741475 #A71DAA

Accessibility & contrast

On white

15.65
#400B41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#400B41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400B41
15.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400B41#FFFFFF#000000##FFFFFF
##400B411.0015.651.3415.65
#FFFFFF15.651.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021F42
Deuteranopia (green-blind)
#192640
Tritanopia (blue-blind)
#421425
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #400b41;
/* rgb */ color: rgb(64, 11, 65);
/* oklch */ color: oklch(27.2% 0.107 327.2);
Tailwind
colors: {
  custom: {
    50: '#775176',
    500: '#400b41',
    950: '#000000',
  },
}
SCSS
$custom: #400b41;
$custom-light: #775176;
$custom-dark: #000000;
JSON
{
  "hex": "#400b41",
  "rgb": {
    "r": 64,
    "g": 11,
    "b": 65
  },
  "hsl": {
    "h": 298.889,
    "s": 71.053,
    "l": 14.902
  },
  "oklch": {
    "l": 0.27178,
    "c": 0.10686,
    "h": 327.2
  },
  "luminance": 0.01711
}

Semantic roles & 50–950 ramp

primary
#400B41
secondary
#2C7E2A
accent
#EE3A3D
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #400B41

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

Preview Lab → · Contrast checker → · Palette generator →

#400B41 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva