#400D3C#400D3C

#400D3C is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.0% C 0.100 H 331.3°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#400D3C
RGBrgb(64, 13, 60)
HSLhsl(305, 66%, 15%)
HSVhsv(305, 80%, 25%)
CMYKcmyk(0%, 79.7%, 6.2%, 74.9%)
CIE-LABlab(13.85, 30.63, -17.38)
CIE-LCHlch(13.85, 35.22, 330.43°)
OKLaboklab(27.05% 0.0874 -0.0478)
OKLCHoklch(27.05% 0.1 331.3)
XYZxyz(3.0739, 1.7043, 4.4412)
Luminance0.0170 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D3C #0D4011
analogous
#2B0D40 #400D3C #400D22
triadic
#400D3C #3C400D #0D3C40
tetradic
#400D3C #402B0D #0D4011 #0D2240
square
#400D3C #402B0D #0D4011 #0D2240
split-complementary
#400D3C #22400D #0D402B
monochromatic
#190518 #190518 #400D3C #73176C #A6229B

Accessibility & contrast

On white

15.66
#400D3C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400D3C
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D3C#FFFFFF#000000##FFFFFF
##400D3C1.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#091F3D
Deuteranopia (green-blind)
#1D263B
Tritanopia (blue-blind)
#431323
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #400d3c;
/* rgb */ color: rgb(64, 13, 60);
/* oklch */ color: oklch(27.0% 0.100 331.3);
Tailwind
colors: {
  custom: {
    50: '#775172',
    500: '#400d3c',
    950: '#000000',
  },
}
SCSS
$custom: #400d3c;
$custom-light: #775172;
$custom-dark: #000000;
JSON
{
  "hex": "#400d3c",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 60
  },
  "hsl": {
    "h": 304.706,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.27045,
    "c": 0.09966,
    "h": 331.3
  },
  "luminance": 0.01704
}

Semantic roles & 50–950 ramp

primary
#400D3C
secondary
#2D7C33
accent
#E94C3F
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090208
muted
#7B787B

Preview Lab

Preview with #400D3C

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

Preview Lab → · Contrast checker → · Palette generator →

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