#400D3E#400D3E

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

Color values

HEX#400D3E
RGBrgb(64, 13, 62)
HSLhsl(302, 66%, 15%)
HSVhsv(302, 80%, 25%)
CMYKcmyk(0%, 79.7%, 3.1%, 74.9%)
CIE-LABlab(13.98, 31.01, -18.60)
CIE-LCHlch(13.98, 36.16, 329.05°)
OKLaboklab(27.18% 0.0876 -0.0513)
OKLCHoklch(27.18% 0.101 329.6)
XYZxyz(3.1278, 1.7259, 4.7249)
Luminance0.0173 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D3E #0D400F
analogous
#280D40 #400D3E #400D24
triadic
#400D3E #3E400D #0D3E40
tetradic
#400D3E #40280D #0D400F #0D2440
square
#400D3E #40280D #0D400F #0D2440
split-complementary
#400D3E #24400D #0D4028
monochromatic
#190519 #190519 #400D3E #73176F #A622A1

Accessibility & contrast

On white

15.61
#400D3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400D3E
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D3E#FFFFFF#000000##FFFFFF
##400D3E1.0015.611.3515.61
#FFFFFF15.611.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071F3F
Deuteranopia (green-blind)
#1C263D
Tritanopia (blue-blind)
#431424
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #400d3e;
/* rgb */ color: rgb(64, 13, 62);
/* oklch */ color: oklch(27.2% 0.101 329.6);
Tailwind
colors: {
  custom: {
    50: '#775173',
    500: '#400d3e',
    950: '#000000',
  },
}
SCSS
$custom: #400d3e;
$custom-light: #775173;
$custom-dark: #000000;
JSON
{
  "hex": "#400d3e",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 62
  },
  "hsl": {
    "h": 302.353,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.27176,
    "c": 0.10149,
    "h": 329.6
  },
  "luminance": 0.01726
}

Semantic roles & 50–950 ramp

primary
#400D3E
secondary
#2D7C30
accent
#E9453F
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #400D3E

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

Preview Lab → · Contrast checker → · Palette generator →

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