#400D1A#400D1A

#400D1A is a dark, moderate pink. Relative luminance 0.015; OKLCH L 25.4% C 0.079 H 9.7°. Best body text is #FFFFFF at 16.27:1 contrast (WCAG AA passes).

Color values

HEX#400D1A
RGBrgb(64, 13, 26)
HSLhsl(345, 66%, 15%)
HSVhsv(345, 80%, 25%)
CMYKcmyk(0%, 79.7%, 59.4%, 74.9%)
CIE-LABlab(12.30, 25.60, 5.19)
CIE-LCHlch(12.30, 26.12, 11.47°)
OKLaboklab(25.41% 0.0777 0.0133)
OKLCHoklch(25.41% 0.079 9.7)
XYZxyz(2.4449, 1.4527, 1.1287)
Luminance0.0145 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D1A #0D4033
analogous
#400D33 #400D1A #40190D
triadic
#400D1A #1A400D #0D1A40
tetradic
#400D1A #33400D #0D4033 #190D40
square
#400D1A #33400D #0D4033 #190D40
split-complementary
#400D1A #0D4019 #0D3340
monochromatic
#19050A #19050A #400D1A #73172F #A62243

Accessibility & contrast

On white

16.27
#400D1A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#400D1A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400D1A
16.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D1A#FFFFFF#000000##FFFFFF
##400D1A1.0016.271.2916.27
#FFFFFF16.271.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#191A1A
Deuteranopia (green-blind)
#272419
Tritanopia (blue-blind)
#470412
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400d1a;
/* rgb */ color: rgb(64, 13, 26);
/* oklch */ color: oklch(25.4% 0.079 9.7);
Tailwind
colors: {
  custom: {
    50: '#795056',
    500: '#400d1a',
    950: '#000000',
  },
}
SCSS
$custom: #400d1a;
$custom-light: #795056;
$custom-dark: #000000;
JSON
{
  "hex": "#400d1a",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 26
  },
  "hsl": {
    "h": 344.706,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.25409,
    "c": 0.07882,
    "h": 9.7
  },
  "luminance": 0.01452
}

Semantic roles & 50–950 ramp

primary
#400D1A
secondary
#2D7C68
accent
#E9BE3F
background
#F7F4F5
surface
#EEE7E8
border
#C9C3C4
text
#090203
muted
#7B7878

Preview Lab

Preview with #400D1A

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

Preview Lab → · Contrast checker → · Palette generator →

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