#400B3B#400B3B

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

Color values

HEX#400B3B
RGBrgb(64, 11, 59)
HSLhsl(306, 71%, 15%)
HSVhsv(306, 83%, 25%)
CMYKcmyk(0%, 82.8%, 7.8%, 74.9%)
CIE-LABlab(13.50, 31.25, -17.21)
CIE-LCHlch(13.50, 35.68, 331.15°)
OKLaboklab(26.77% 0.0897 -0.0473)
OKLCHoklch(26.77% 0.101 332.2)
XYZxyz(3.0234, 1.6453, 4.2952)
Luminance0.0164 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400B3B #0B4010
analogous
#2B0B40 #400B3B #400B21
triadic
#400B3B #3B400B #0B3B40
tetradic
#400B3B #402B0B #0B4010 #0B2140
square
#400B3B #402B0B #0B4010 #0B2140
split-complementary
#400B3B #21400B #0B402B
monochromatic
#1A0418 #1A0418 #400B3B #74146B #A81D9B

Accessibility & contrast

On white

15.80
#400B3B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400B3B
15.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400B3B#FFFFFF#000000##FFFFFF
##400B3B1.0015.801.3315.80
#FFFFFF15.801.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081E3C
Deuteranopia (green-blind)
#1C253A
Tritanopia (blue-blind)
#431122
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #400b3b;
/* rgb */ color: rgb(64, 11, 59);
/* oklch */ color: oklch(26.8% 0.101 332.2);
Tailwind
colors: {
  custom: {
    50: '#775071',
    500: '#400b3b',
    950: '#000000',
  },
}
SCSS
$custom: #400b3b;
$custom-light: #775071;
$custom-dark: #000000;
JSON
{
  "hex": "#400b3b",
  "rgb": {
    "r": 64,
    "g": 11,
    "b": 59
  },
  "hsl": {
    "h": 305.66,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.26774,
    "c": 0.10145,
    "h": 332.2
  },
  "luminance": 0.01645
}

Semantic roles & 50–950 ramp

primary
#400B3B
secondary
#2A7D32
accent
#ED4B3A
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090207
muted
#7B787A

Preview Lab

Preview with #400B3B

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

Preview Lab → · Contrast checker → · Palette generator →

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