#400A2F#400A2F

#400A2F is a dark, moderate pink. Relative luminance 0.015; OKLCH L 26.0% C 0.093 H 343.6°. Best body text is #FFFFFF at 16.12:1 contrast (WCAG AA passes).

Color values

HEX#400A2F
RGBrgb(64, 10, 47)
HSLhsl(319, 73%, 15%)
HSVhsv(319, 84%, 25%)
CMYKcmyk(0%, 84.4%, 26.6%, 74.9%)
CIE-LABlab(12.69, 29.58, -9.83)
CIE-LCHlch(12.69, 31.17, 341.62°)
OKLaboklab(25.96% 0.0893 -0.0263)
OKLCHoklch(25.96% 0.093 343.6)
XYZxyz(2.7361, 1.5126, 2.8366)
Luminance0.0151 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400A2F #0A401B
analogous
#360A40 #400A2F #400A14
triadic
#400A2F #2F400A #0A2F40
tetradic
#400A2F #40360A #0A401B #0A1440
square
#400A2F #40360A #0A401B #0A1440
split-complementary
#400A2F #14400A #0A4036
monochromatic
#1A0413 #1A0413 #400A2F #751256 #AA1B7D

Accessibility & contrast

On white

16.12
#400A2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#400A2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400A2F
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400A2F#FFFFFF#000000##FFFFFF
##400A2F1.0016.121.3016.12
#FFFFFF16.121.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#101B30
Deuteranopia (green-blind)
#21242E
Tritanopia (blue-blind)
#450A1B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #400a2f;
/* rgb */ color: rgb(64, 10, 47);
/* oklch */ color: oklch(26.0% 0.093 343.6);
Tailwind
colors: {
  custom: {
    50: '#774f67',
    500: '#400a2f',
    950: '#000000',
  },
}
SCSS
$custom: #400a2f;
$custom-light: #774f67;
$custom-dark: #000000;
JSON
{
  "hex": "#400a2f",
  "rgb": {
    "r": 64,
    "g": 10,
    "b": 47
  },
  "hsl": {
    "h": 318.889,
    "s": 72.973,
    "l": 14.51
  },
  "oklch": {
    "l": 0.25964,
    "c": 0.09305,
    "h": 343.6
  },
  "luminance": 0.01512
}

Semantic roles & 50–950 ramp

primary
#400A2F
secondary
#297D43
accent
#F07238
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #400A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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