#400A39#400A39

#400A39 is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.6% C 0.101 H 333.9°. Best body text is #FFFFFF at 15.90:1 contrast (WCAG AA passes).

Color values

HEX#400A39
RGBrgb(64, 10, 57)
HSLhsl(308, 73%, 15%)
HSVhsv(308, 84%, 25%)
CMYKcmyk(0%, 84.4%, 10.9%, 74.9%)
CIE-LABlab(13.25, 31.27, -16.19)
CIE-LCHlch(13.25, 35.21, 332.63°)
OKLaboklab(26.55% 0.0907 -0.0444)
OKLCHoklch(26.55% 0.101 333.9)
XYZxyz(2.9614, 1.6027, 4.0235)
Luminance0.0160 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400A39 #0A4011
analogous
#2C0A40 #400A39 #400A1E
triadic
#400A39 #39400A #0A3940
tetradic
#400A39 #402C0A #0A4011 #0A1E40
square
#400A39 #402C0A #0A4011 #0A1E40
split-complementary
#400A39 #1E400A #0A402C
monochromatic
#1A0418 #1A0418 #400A39 #751268 #AA1B97

Accessibility & contrast

On white

15.90
#400A39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#400A39 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400A39
15.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400A39#FFFFFF#000000##FFFFFF
##400A391.0015.901.3215.90
#FFFFFF15.901.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#091D3A
Deuteranopia (green-blind)
#1D2538
Tritanopia (blue-blind)
#430F20
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #400a39;
/* rgb */ color: rgb(64, 10, 57);
/* oklch */ color: oklch(26.6% 0.101 333.9);
Tailwind
colors: {
  custom: {
    50: '#77506f',
    500: '#400a39',
    950: '#000000',
  },
}
SCSS
$custom: #400a39;
$custom-light: #77506f;
$custom-dark: #000000;
JSON
{
  "hex": "#400a39",
  "rgb": {
    "r": 64,
    "g": 10,
    "b": 57
  },
  "hsl": {
    "h": 307.778,
    "s": 72.973,
    "l": 14.51
  },
  "oklch": {
    "l": 0.2655,
    "c": 0.10099,
    "h": 333.9
  },
  "luminance": 0.01602
}

Semantic roles & 50–950 ramp

primary
#400A39
secondary
#297D34
accent
#F05038
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090207
muted
#7B787A

Preview Lab

Preview with #400A39

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

Preview Lab → · Contrast checker → · Palette generator →

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