#400B1B#400B1B

#400B1B is a dark, moderate pink. Relative luminance 0.014; OKLCH L 25.2% C 0.082 H 7.4°. Best body text is #FFFFFF at 16.39:1 contrast (WCAG AA passes).

Color values

HEX#400B1B
RGBrgb(64, 11, 27)
HSLhsl(342, 71%, 15%)
HSVhsv(342, 83%, 25%)
CMYKcmyk(0%, 82.8%, 57.8%, 74.9%)
CIE-LABlab(12.02, 26.58, 4.04)
CIE-LCHlch(12.02, 26.88, 8.64°)
OKLaboklab(25.21% 0.081 0.0104)
OKLCHoklch(25.21% 0.082 7.4)
XYZxyz(2.4321, 1.4088, 1.1806)
Luminance0.0141 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400B1B #0B4030
analogous
#400B36 #400B1B #40160B
triadic
#400B1B #1B400B #0B1B40
tetradic
#400B1B #36400B #0B4030 #160B40
square
#400B1B #36400B #0B4030 #160B40
split-complementary
#400B1B #0B4016 #0B3640
monochromatic
#1A040B #1A040B #400B1B #741431 #A81D47

Accessibility & contrast

On white

16.39
#400B1B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#400B1B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400B1B
16.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400B1B#FFFFFF#000000##FFFFFF
##400B1B1.0016.391.2816.39
#FFFFFF16.391.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18191B
Deuteranopia (green-blind)
#26231A
Tritanopia (blue-blind)
#470212
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400b1b;
/* rgb */ color: rgb(64, 11, 27);
/* oklch */ color: oklch(25.2% 0.082 7.4);
Tailwind
colors: {
  custom: {
    50: '#794f57',
    500: '#400b1b',
    950: '#000000',
  },
}
SCSS
$custom: #400b1b;
$custom-light: #794f57;
$custom-dark: #000000;
JSON
{
  "hex": "#400b1b",
  "rgb": {
    "r": 64,
    "g": 11,
    "b": 27
  },
  "hsl": {
    "h": 341.887,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.25205,
    "c": 0.08166,
    "h": 7.4
  },
  "luminance": 0.01408
}

Semantic roles & 50–950 ramp

primary
#400B1B
secondary
#2A7D64
accent
#EDB73A
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090203
muted
#7B7878

Preview Lab

Preview with #400B1B

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

Preview Lab → · Contrast checker → · Palette generator →

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