#400C24#400C24

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

Color values

HEX#400C24
RGBrgb(64, 12, 36)
HSLhsl(332, 68%, 15%)
HSVhsv(332, 81%, 25%)
CMYKcmyk(0%, 81.2%, 43.8%, 74.9%)
CIE-LABlab(12.48, 27.19, -2.02)
CIE-LCHlch(12.48, 27.26, 355.75°)
OKLaboklab(25.65% 0.0834 -0.005)
OKLCHoklch(25.65% 0.084 356.6)
XYZxyz(2.5644, 1.4806, 1.8195)
Luminance0.0148 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C24 #0C4028
analogous
#400C3E #400C24 #400E0C
triadic
#400C24 #24400C #0C2440
tetradic
#400C24 #3E400C #0C4028 #0E0C40
square
#400C24 #3E400C #0C4028 #0E0C40
split-complementary
#400C24 #0C400E #0C3E40
monochromatic
#1A050E #1A050E #400C24 #741641 #A71F5E

Accessibility & contrast

On white

16.20
#400C24 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400C24
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C24#FFFFFF#000000##FFFFFF
##400C241.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#161A25
Deuteranopia (green-blind)
#242423
Tritanopia (blue-blind)
#460716
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400c24;
/* rgb */ color: rgb(64, 12, 36);
/* oklch */ color: oklch(25.7% 0.084 356.6);
Tailwind
colors: {
  custom: {
    50: '#78505e',
    500: '#400c24',
    950: '#000000',
  },
}
SCSS
$custom: #400c24;
$custom-light: #78505e;
$custom-dark: #000000;
JSON
{
  "hex": "#400c24",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 36
  },
  "hsl": {
    "h": 332.308,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.25653,
    "c": 0.08353,
    "h": 356.6
  },
  "luminance": 0.0148
}

Semantic roles & 50–950 ramp

primary
#400C24
secondary
#2C7C57
accent
#EB9B3D
background
#F7F4F5
surface
#EDE7E9
border
#C8C3C5
text
#090204
muted
#7B7879

Preview Lab

Preview with #400C24

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

Preview Lab → · Contrast checker → · Palette generator →

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