#400A1B#400A1B

#400A1B is a dark, moderate pink. Relative luminance 0.014; OKLCH L 25.1% C 0.083 H 6.9°. Best body text is #FFFFFF at 16.44:1 contrast (WCAG AA passes).

Color values

HEX#400A1B
RGBrgb(64, 10, 27)
HSLhsl(341, 73%, 15%)
HSVhsv(341, 84%, 25%)
CMYKcmyk(0%, 84.4%, 57.8%, 74.9%)
CIE-LABlab(11.87, 26.99, 3.83)
CIE-LCHlch(11.87, 27.26, 8.07°)
OKLaboklab(25.1% 0.0823 0.0099)
OKLCHoklch(25.1% 0.083 6.9)
XYZxyz(2.4209, 1.3865, 1.1768)
Luminance0.0139 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400A1B #0A402F
analogous
#400A36 #400A1B #40140A
triadic
#400A1B #1B400A #0A1B40
tetradic
#400A1B #36400A #0A402F #140A40
square
#400A1B #36400A #0A402F #140A40
split-complementary
#400A1B #0A4014 #0A3640
monochromatic
#1A040B #1A040B #400A1B #751231 #AA1B48

Accessibility & contrast

On white

16.44
#400A1B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400A1B
16.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400A1B#FFFFFF#000000##FFFFFF
##400A1B1.0016.441.2816.44
#FFFFFF16.441.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17181B
Deuteranopia (green-blind)
#26231A
Tritanopia (blue-blind)
#470111
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #400a1b;
/* rgb */ color: rgb(64, 10, 27);
/* oklch */ color: oklch(25.1% 0.083 6.9);
Tailwind
colors: {
  custom: {
    50: '#794f57',
    500: '#400a1b',
    950: '#000000',
  },
}
SCSS
$custom: #400a1b;
$custom-light: #794f57;
$custom-dark: #000000;
JSON
{
  "hex": "#400a1b",
  "rgb": {
    "r": 64,
    "g": 10,
    "b": 27
  },
  "hsl": {
    "h": 341.111,
    "s": 72.973,
    "l": 14.51
  },
  "oklch": {
    "l": 0.25095,
    "c": 0.08292,
    "h": 6.9
  },
  "luminance": 0.01386
}

Semantic roles & 50–950 ramp

primary
#400A1B
secondary
#297D63
accent
#F0B638
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090203
muted
#7B7878

Preview Lab

Preview with #400A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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