#400D21#400D21

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

Color values

HEX#400D21
RGBrgb(64, 13, 33)
HSLhsl(336, 66%, 15%)
HSVhsv(336, 80%, 25%)
CMYKcmyk(0%, 79.7%, 48.4%, 74.9%)
CIE-LABlab(12.53, 26.37, 0.28)
CIE-LCHlch(12.53, 26.37, 0.61°)
OKLaboklab(25.65% 0.0808 0.001)
OKLCHoklch(25.65% 0.081 0.7)
XYZxyz(2.5330, 1.4880, 1.5924)
Luminance0.0149 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D21 #0D402C
analogous
#400D3A #400D21 #40130D
triadic
#400D21 #21400D #0D2140
tetradic
#400D21 #3A400D #0D402C #130D40
square
#400D21 #3A400D #0D402C #130D40
split-complementary
#400D21 #0D4013 #0D3A40
monochromatic
#19050D #19050D #400D21 #73173B #A62255

Accessibility & contrast

On white

16.18
#400D21 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400D21
16.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D21#FFFFFF#000000##FFFFFF
##400D211.0016.181.3016.18
#FFFFFF16.181.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#181A22
Deuteranopia (green-blind)
#252420
Tritanopia (blue-blind)
#460615
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #400d21;
/* rgb */ color: rgb(64, 13, 33);
/* oklch */ color: oklch(25.7% 0.081 0.7);
Tailwind
colors: {
  custom: {
    50: '#78505c',
    500: '#400d21',
    950: '#000000',
  },
}
SCSS
$custom: #400d21;
$custom-light: #78505c;
$custom-dark: #000000;
JSON
{
  "hex": "#400d21",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 33
  },
  "hsl": {
    "h": 336.471,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.25651,
    "c": 0.0808,
    "h": 0.7
  },
  "luminance": 0.01488
}

Semantic roles & 50–950 ramp

primary
#400D21
secondary
#2D7C5D
accent
#E9A63F
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090204
muted
#7B7879

Preview Lab

Preview with #400D21

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

Preview Lab → · Contrast checker → · Palette generator →

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