#400A2A#400A2A

#400A2A is a dark, moderate pink. Relative luminance 0.015; OKLCH L 25.7% C 0.090 H 349.0°. Best body text is #FFFFFF at 16.22:1 contrast (WCAG AA passes).

Color values

HEX#400A2A
RGBrgb(64, 10, 42)
HSLhsl(324, 73%, 15%)
HSVhsv(324, 84%, 25%)
CMYKcmyk(0%, 84.4%, 34.4%, 74.9%)
CIE-LABlab(12.45, 28.83, -6.53)
CIE-LCHlch(12.45, 29.56, 347.24°)
OKLaboklab(25.71% 0.088 -0.0171)
OKLCHoklch(25.71% 0.09 349)
XYZxyz(2.6409, 1.4745, 2.3356)
Luminance0.0147 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400A2A #0A4020
analogous
#3B0A40 #400A2A #400A0F
triadic
#400A2A #2A400A #0A2A40
tetradic
#400A2A #403B0A #0A4020 #0A0F40
square
#400A2A #403B0A #0A4020 #0A0F40
split-complementary
#400A2A #0F400A #0A403B
monochromatic
#1A0411 #1A0411 #400A2A #75124D #AA1B6F

Accessibility & contrast

On white

16.22
#400A2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400A2A
16.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400A2A#FFFFFF#000000##FFFFFF
##400A2A1.0016.221.2916.22
#FFFFFF16.221.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#121A2B
Deuteranopia (green-blind)
#222429
Tritanopia (blue-blind)
#450718
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400a2a;
/* rgb */ color: rgb(64, 10, 42);
/* oklch */ color: oklch(25.7% 0.090 349.0);
Tailwind
colors: {
  custom: {
    50: '#784f63',
    500: '#400a2a',
    950: '#000000',
  },
}
SCSS
$custom: #400a2a;
$custom-light: #784f63;
$custom-dark: #000000;
JSON
{
  "hex": "#400a2a",
  "rgb": {
    "r": 64,
    "g": 10,
    "b": 42
  },
  "hsl": {
    "h": 324.444,
    "s": 72.973,
    "l": 14.51
  },
  "oklch": {
    "l": 0.25708,
    "c": 0.08964,
    "h": 349
  },
  "luminance": 0.01474
}

Semantic roles & 50–950 ramp

primary
#400A2A
secondary
#297D4B
accent
#F08338
background
#F7F4F5
surface
#EDE7EA
border
#C8C3C6
text
#090205
muted
#7B7879

Preview Lab

Preview with #400A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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