#400A1F#400A1F

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

Color values

HEX#400A1F
RGBrgb(64, 10, 31)
HSLhsl(337, 73%, 15%)
HSVhsv(337, 84%, 25%)
CMYKcmyk(0%, 84.4%, 51.6%, 74.9%)
CIE-LABlab(12.00, 27.42, 1.01)
CIE-LCHlch(12.00, 27.44, 2.10°)
OKLaboklab(25.24% 0.0841 0.0029)
OKLCHoklch(25.24% 0.084 2)
XYZxyz(2.4704, 1.4063, 1.4374)
Luminance0.0141 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400A1F #0A402B
analogous
#400A3A #400A1F #40100A
triadic
#400A1F #1F400A #0A1F40
tetradic
#400A1F #3A400A #0A402B #100A40
square
#400A1F #3A400A #0A402B #100A40
split-complementary
#400A1F #0A4010 #0A3A40
monochromatic
#1A040D #1A040D #400A1F #751239 #AA1B52

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##400A1F#FFFFFF#000000##FFFFFF
##400A1F1.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)
#16191F
Deuteranopia (green-blind)
#25231E
Tritanopia (blue-blind)
#460313
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #400a1f;
/* rgb */ color: rgb(64, 10, 31);
/* oklch */ color: oklch(25.2% 0.084 2.0);
Tailwind
colors: {
  custom: {
    50: '#784f5a',
    500: '#400a1f',
    950: '#000000',
  },
}
SCSS
$custom: #400a1f;
$custom-light: #784f5a;
$custom-dark: #000000;
JSON
{
  "hex": "#400a1f",
  "rgb": {
    "r": 64,
    "g": 10,
    "b": 31
  },
  "hsl": {
    "h": 336.667,
    "s": 72.973,
    "l": 14.51
  },
  "oklch": {
    "l": 0.25236,
    "c": 0.08411,
    "h": 2
  },
  "luminance": 0.01406
}

Semantic roles & 50–950 ramp

primary
#400A1F
secondary
#297D5C
accent
#F0A838
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090203
muted
#7B7878

Preview Lab

Preview with #400A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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