#400D28#400D28

#400D28 is a dark, moderate pink. Relative luminance 0.015; OKLCH L 25.9% C 0.084 H 352.1°. Best body text is #FFFFFF at 16.08:1 contrast (WCAG AA passes).

Color values

HEX#400D28
RGBrgb(64, 13, 40)
HSLhsl(328, 66%, 15%)
HSVhsv(328, 80%, 25%)
CMYKcmyk(0%, 79.7%, 37.5%, 74.9%)
CIE-LABlab(12.81, 27.29, -4.51)
CIE-LCHlch(12.81, 27.66, 350.62°)
OKLaboklab(25.94% 0.0834 -0.0116)
OKLCHoklch(25.94% 0.084 352.1)
XYZxyz(2.6414, 1.5313, 2.1635)
Luminance0.0153 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D28 #0D4025
analogous
#3E0D40 #400D28 #400D0F
triadic
#400D28 #28400D #0D2840
tetradic
#400D28 #403E0D #0D4025 #0D0F40
square
#400D28 #403E0D #0D4025 #0D0F40
split-complementary
#400D28 #0F400D #0D403E
monochromatic
#190510 #190510 #400D28 #731748 #A62268

Accessibility & contrast

On white

16.08
#400D28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#400D28 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400D28
16.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D28#FFFFFF#000000##FFFFFF
##400D281.0016.081.3116.08
#FFFFFF16.081.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#151B29
Deuteranopia (green-blind)
#242527
Tritanopia (blue-blind)
#450919
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #400d28;
/* rgb */ color: rgb(64, 13, 40);
/* oklch */ color: oklch(25.9% 0.084 352.1);
Tailwind
colors: {
  custom: {
    50: '#785061',
    500: '#400d28',
    950: '#000000',
  },
}
SCSS
$custom: #400d28;
$custom-light: #785061;
$custom-dark: #000000;
JSON
{
  "hex": "#400d28",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 40
  },
  "hsl": {
    "h": 328.235,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.25943,
    "c": 0.08422,
    "h": 352.1
  },
  "luminance": 0.01531
}

Semantic roles & 50–950 ramp

primary
#400D28
secondary
#2D7C52
accent
#E98F3F
background
#F7F4F5
surface
#EDE7E9
border
#C8C3C5
text
#090205
muted
#7B7879

Preview Lab

Preview with #400D28

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

Preview Lab → · Contrast checker → · Palette generator →

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