#400A18#400A18

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

Color values

HEX#400A18
RGBrgb(64, 10, 24)
HSLhsl(344, 73%, 15%)
HSVhsv(344, 84%, 25%)
CMYKcmyk(0%, 84.4%, 62.5%, 74.9%)
CIE-LABlab(11.78, 26.70, 5.97)
CIE-LCHlch(11.78, 27.36, 12.59°)
OKLaboklab(25% 0.0809 0.0151)
OKLCHoklch(25% 0.082 10.5)
XYZxyz(2.3880, 1.3734, 1.0033)
Luminance0.0137 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400A18 #0A4032
analogous
#400A33 #400A18 #40170A
triadic
#400A18 #18400A #0A1840
tetradic
#400A18 #33400A #0A4032 #170A40
square
#400A18 #33400A #0A4032 #170A40
split-complementary
#400A18 #0A4017 #0A3340
monochromatic
#1A040A #1A040A #400A18 #75122C #AA1B40

Accessibility & contrast

On white

16.48
#400A18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#400A18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400A18
16.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400A18#FFFFFF#000000##FFFFFF
##400A181.0016.481.2716.48
#FFFFFF16.481.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#181818
Deuteranopia (green-blind)
#262317
Tritanopia (blue-blind)
#470110
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #400a18;
/* rgb */ color: rgb(64, 10, 24);
/* oklch */ color: oklch(25.0% 0.082 10.5);
Tailwind
colors: {
  custom: {
    50: '#794f54',
    500: '#400a18',
    950: '#000000',
  },
}
SCSS
$custom: #400a18;
$custom-light: #794f54;
$custom-dark: #000000;
JSON
{
  "hex": "#400a18",
  "rgb": {
    "r": 64,
    "g": 10,
    "b": 24
  },
  "hsl": {
    "h": 344.444,
    "s": 72.973,
    "l": 14.51
  },
  "oklch": {
    "l": 0.25001,
    "c": 0.08233,
    "h": 10.5
  },
  "luminance": 0.01373
}

Semantic roles & 50–950 ramp

primary
#400A18
secondary
#297D67
accent
#F0C038
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0202
muted
#7C7878

Preview Lab

Preview with #400A18

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

Preview Lab → · Contrast checker → · Palette generator →

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