#400C2B#400C2B

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

Color values

HEX#400C2B
RGBrgb(64, 12, 43)
HSLhsl(324, 68%, 15%)
HSVhsv(324, 81%, 25%)
CMYKcmyk(0%, 81.2%, 32.8%, 74.9%)
CIE-LABlab(12.78, 28.16, -6.75)
CIE-LCHlch(12.78, 28.96, 346.52°)
OKLaboklab(25.97% 0.0857 -0.0177)
OKLCHoklch(25.97% 0.088 348.3)
XYZxyz(2.6820, 1.5276, 2.4387)
Luminance0.0153 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C2B #0C4021
analogous
#3B0C40 #400C2B #400C11
triadic
#400C2B #2B400C #0C2B40
tetradic
#400C2B #403B0C #0C4021 #0C1140
square
#400C2B #403B0C #0C4021 #0C1140
split-complementary
#400C2B #11400C #0C403B
monochromatic
#1A0511 #1A0511 #400C2B #74164E #A71F70

Accessibility & contrast

On white

16.09
#400C2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400C2B
16.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C2B#FFFFFF#000000##FFFFFF
##400C2B1.0016.091.3116.09
#FFFFFF16.091.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#131B2C
Deuteranopia (green-blind)
#23242A
Tritanopia (blue-blind)
#450A1A
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #400c2b;
/* rgb */ color: rgb(64, 12, 43);
/* oklch */ color: oklch(26.0% 0.088 348.3);
Tailwind
colors: {
  custom: {
    50: '#775064',
    500: '#400c2b',
    950: '#000000',
  },
}
SCSS
$custom: #400c2b;
$custom-light: #775064;
$custom-dark: #000000;
JSON
{
  "hex": "#400c2b",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 43
  },
  "hsl": {
    "h": 324.231,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.2597,
    "c": 0.08754,
    "h": 348.3
  },
  "luminance": 0.01527
}

Semantic roles & 50–950 ramp

primary
#400C2B
secondary
#2C7C4C
accent
#EB833D
background
#F7F4F5
surface
#EDE7EA
border
#C8C3C6
text
#090205
muted
#7B7879

Preview Lab

Preview with #400C2B

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

Preview Lab → · Contrast checker → · Palette generator →

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