#400D41#400D41

#400D41 is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.4% C 0.104 H 327.1°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#400D41
RGBrgb(64, 13, 65)
HSLhsl(299, 67%, 15%)
HSVhsv(299, 80%, 25%)
CMYKcmyk(1.5%, 80%, 0%, 74.5%)
CIE-LABlab(14.17, 31.61, -20.40)
CIE-LCHlch(14.17, 37.62, 327.16°)
OKLaboklab(27.38% 0.0876 -0.0566)
OKLCHoklch(27.38% 0.104 327.1)
XYZxyz(3.2124, 1.7597, 5.1705)
Luminance0.0176 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D41 #0E410D
analogous
#260D41 #400D41 #410D28
triadic
#400D41 #41400D #0D4140
tetradic
#400D41 #41260D #0E410D #0D2841
square
#400D41 #41260D #0E410D #0D2841
split-complementary
#400D41 #28410D #0D4126
monochromatic
#19051A #19051A #400D41 #721774 #A421A7

Accessibility & contrast

On white

15.53
#400D41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#400D41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400D41
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D41#FFFFFF#000000##FFFFFF
##400D411.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042042
Deuteranopia (green-blind)
#1A2640
Tritanopia (blue-blind)
#421526
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #400d41;
/* rgb */ color: rgb(64, 13, 65);
/* oklch */ color: oklch(27.4% 0.104 327.1);
Tailwind
colors: {
  custom: {
    50: '#775276',
    500: '#400d41',
    950: '#000000',
  },
}
SCSS
$custom: #400d41;
$custom-light: #775276;
$custom-dark: #000000;
JSON
{
  "hex": "#400d41",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 65
  },
  "hsl": {
    "h": 298.846,
    "s": 66.667,
    "l": 15.294
  },
  "oklch": {
    "l": 0.27378,
    "c": 0.10429,
    "h": 327.1
  },
  "luminance": 0.01759
}

Semantic roles & 50–950 ramp

primary
#400D41
secondary
#2F7D2D
accent
#EA3E42
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #400D41

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

Preview Lab → · Contrast checker → · Palette generator →

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