#400B3A#400B3A

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

Color values

HEX#400B3A
RGBrgb(64, 11, 58)
HSLhsl(307, 71%, 15%)
HSVhsv(307, 83%, 25%)
CMYKcmyk(0%, 82.8%, 9.4%, 74.9%)
CIE-LABlab(13.44, 31.07, -16.60)
CIE-LCHlch(13.44, 35.22, 331.89°)
OKLaboklab(26.71% 0.0897 -0.0455)
OKLCHoklch(26.71% 0.101 333.1)
XYZxyz(2.9978, 1.6351, 4.1599)
Luminance0.0163 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400B3A #0B4011
analogous
#2B0B40 #400B3A #400B20
triadic
#400B3A #3A400B #0B3A40
tetradic
#400B3A #402B0B #0B4011 #0B2040
square
#400B3A #402B0B #0B4011 #0B2040
split-complementary
#400B3A #20400B #0B402B
monochromatic
#1A0418 #1A0418 #400B3A #741469 #A81D99

Accessibility & contrast

On white

15.83
#400B3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400B3A
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400B3A#FFFFFF#000000##FFFFFF
##400B3A1.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#091E3B
Deuteranopia (green-blind)
#1D2539
Tritanopia (blue-blind)
#431021
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #400b3a;
/* rgb */ color: rgb(64, 11, 58);
/* oklch */ color: oklch(26.7% 0.101 333.1);
Tailwind
colors: {
  custom: {
    50: '#775070',
    500: '#400b3a',
    950: '#000000',
  },
}
SCSS
$custom: #400b3a;
$custom-light: #775070;
$custom-dark: #000000;
JSON
{
  "hex": "#400b3a",
  "rgb": {
    "r": 64,
    "g": 11,
    "b": 58
  },
  "hsl": {
    "h": 306.792,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.2671,
    "c": 0.10058,
    "h": 333.1
  },
  "luminance": 0.01635
}

Semantic roles & 50–950 ramp

primary
#400B3A
secondary
#2A7D33
accent
#ED4F3A
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090207
muted
#7B787A

Preview Lab

Preview with #400B3A

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

Preview Lab → · Contrast checker → · Palette generator →

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