#400D3F#400D3F

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

Color values

HEX#400D3F
RGBrgb(64, 13, 63)
HSLhsl(301, 66%, 15%)
HSVhsv(301, 80%, 25%)
CMYKcmyk(0%, 79.7%, 1.6%, 74.9%)
CIE-LABlab(14.04, 31.21, -19.20)
CIE-LCHlch(14.04, 36.64, 328.40°)
OKLaboklab(27.24% 0.0876 -0.0531)
OKLCHoklch(27.24% 0.102 328.8)
XYZxyz(3.1554, 1.7369, 4.8707)
Luminance0.0174 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D3F #0D400E
analogous
#270D40 #400D3F #400D26
triadic
#400D3F #3F400D #0D3F40
tetradic
#400D3F #40270D #0D400E #0D2640
square
#400D3F #40270D #0D400E #0D2640
split-complementary
#400D3F #26400D #0D4027
monochromatic
#190519 #190519 #400D3F #731771 #A622A3

Accessibility & contrast

On white

15.59
#400D3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400D3F
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D3F#FFFFFF#000000##FFFFFF
##400D3F1.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061F40
Deuteranopia (green-blind)
#1B263E
Tritanopia (blue-blind)
#421425
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #400d3f;
/* rgb */ color: rgb(64, 13, 63);
/* oklch */ color: oklch(27.2% 0.102 328.8);
Tailwind
colors: {
  custom: {
    50: '#775174',
    500: '#400d3f',
    950: '#000000',
  },
}
SCSS
$custom: #400d3f;
$custom-light: #775174;
$custom-dark: #000000;
JSON
{
  "hex": "#400d3f",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 63
  },
  "hsl": {
    "h": 301.176,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.27242,
    "c": 0.10241,
    "h": 328.8
  },
  "luminance": 0.01737
}

Semantic roles & 50–950 ramp

primary
#400D3F
secondary
#2D7C2F
accent
#E9423F
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #400D3F

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

Preview Lab → · Contrast checker → · Palette generator →

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