#400C39#400C39

#400C39 is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.7% C 0.098 H 334.0°. Best body text is #FFFFFF at 15.79:1 contrast (WCAG AA passes).

Color values

HEX#400C39
RGBrgb(64, 12, 57)
HSLhsl(308, 68%, 15%)
HSVhsv(308, 81%, 25%)
CMYKcmyk(0%, 81.2%, 10.9%, 74.9%)
CIE-LABlab(13.52, 30.49, -15.76)
CIE-LCHlch(13.52, 34.32, 332.67°)
OKLaboklab(26.75% 0.0884 -0.0431)
OKLCHoklch(26.75% 0.098 334)
XYZxyz(2.9844, 1.6486, 4.0311)
Luminance0.0165 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C39 #0C4013
analogous
#2D0C40 #400C39 #400C1F
triadic
#400C39 #39400C #0C3940
tetradic
#400C39 #402D0C #0C4013 #0C1F40
square
#400C39 #402D0C #0C4013 #0C1F40
split-complementary
#400C39 #1F400C #0C402D
monochromatic
#1A0517 #1A0517 #400C39 #741667 #A71F95

Accessibility & contrast

On white

15.79
#400C39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#400C39 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400C39
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C39#FFFFFF#000000##FFFFFF
##400C391.0015.791.3315.79
#FFFFFF15.791.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B1E3A
Deuteranopia (green-blind)
#1E2538
Tritanopia (blue-blind)
#431121
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #400c39;
/* rgb */ color: rgb(64, 12, 57);
/* oklch */ color: oklch(26.7% 0.098 334.0);
Tailwind
colors: {
  custom: {
    50: '#77516f',
    500: '#400c39',
    950: '#000000',
  },
}
SCSS
$custom: #400c39;
$custom-light: #77516f;
$custom-dark: #000000;
JSON
{
  "hex": "#400c39",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 57
  },
  "hsl": {
    "h": 308.077,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.26749,
    "c": 0.09838,
    "h": 334
  },
  "luminance": 0.01648
}

Semantic roles & 50–950 ramp

primary
#400C39
secondary
#2C7C37
accent
#EB543D
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090207
muted
#7B787A

Preview Lab

Preview with #400C39

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

Preview Lab → · Contrast checker → · Palette generator →

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