#400B39#400B39

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

Color values

HEX#400B39
RGBrgb(64, 11, 57)
HSLhsl(308, 71%, 15%)
HSVhsv(308, 83%, 25%)
CMYKcmyk(0%, 82.8%, 10.9%, 74.9%)
CIE-LABlab(13.38, 30.89, -15.98)
CIE-LCHlch(13.38, 34.78, 332.65°)
OKLaboklab(26.65% 0.0896 -0.0438)
OKLCHoklch(26.65% 0.1 334)
XYZxyz(2.9726, 1.6250, 4.0272)
Luminance0.0163 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400B39 #0B4012
analogous
#2D0B40 #400B39 #400B1E
triadic
#400B39 #39400B #0B3940
tetradic
#400B39 #402D0B #0B4012 #0B1E40
square
#400B39 #402D0B #0B4012 #0B1E40
split-complementary
#400B39 #1E400B #0B402D
monochromatic
#1A0417 #1A0417 #400B39 #741468 #A81D96

Accessibility & contrast

On white

15.85
#400B39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400B39
15.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400B39#FFFFFF#000000##FFFFFF
##400B391.0015.851.3315.85
#FFFFFF15.851.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A1D3A
Deuteranopia (green-blind)
#1D2538
Tritanopia (blue-blind)
#431021
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #400b39;
/* rgb */ color: rgb(64, 11, 57);
/* oklch */ color: oklch(26.6% 0.100 334.0);
Tailwind
colors: {
  custom: {
    50: '#77506f',
    500: '#400b39',
    950: '#000000',
  },
}
SCSS
$custom: #400b39;
$custom-light: #77506f;
$custom-dark: #000000;
JSON
{
  "hex": "#400b39",
  "rgb": {
    "r": 64,
    "g": 11,
    "b": 57
  },
  "hsl": {
    "h": 307.925,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.26647,
    "c": 0.09972,
    "h": 334
  },
  "luminance": 0.01625
}

Semantic roles & 50–950 ramp

primary
#400B39
secondary
#2A7D35
accent
#ED523A
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090207
muted
#7B787A

Preview Lab

Preview with #400B39

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

Preview Lab → · Contrast checker → · Palette generator →

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