#400C2C#400C2C

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

Color values

HEX#400C2C
RGBrgb(64, 12, 44)
HSLhsl(323, 68%, 15%)
HSVhsv(323, 81%, 25%)
CMYKcmyk(0%, 81.2%, 31.2%, 74.9%)
CIE-LABlab(12.83, 28.31, -7.41)
CIE-LCHlch(12.83, 29.26, 345.32°)
OKLaboklab(26.02% 0.086 -0.0196)
OKLCHoklch(26.02% 0.088 347.2)
XYZxyz(2.7006, 1.5351, 2.5365)
Luminance0.0154 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C2C #0C4020
analogous
#3A0C40 #400C2C #400C12
triadic
#400C2C #2C400C #0C2C40
tetradic
#400C2C #403A0C #0C4020 #0C1240
square
#400C2C #403A0C #0C4020 #0C1240
split-complementary
#400C2C #12400C #0C403A
monochromatic
#1A0512 #1A0512 #400C2C #74164F #A71F73

Accessibility & contrast

On white

16.07
#400C2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400C2C
16.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C2C#FFFFFF#000000##FFFFFF
##400C2C1.0016.071.3116.07
#FFFFFF16.071.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#131B2D
Deuteranopia (green-blind)
#22242B
Tritanopia (blue-blind)
#450A1A
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #400c2c;
/* rgb */ color: rgb(64, 12, 44);
/* oklch */ color: oklch(26.0% 0.088 347.2);
Tailwind
colors: {
  custom: {
    50: '#775065',
    500: '#400c2c',
    950: '#000000',
  },
}
SCSS
$custom: #400c2c;
$custom-light: #775065;
$custom-dark: #000000;
JSON
{
  "hex": "#400c2c",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 44
  },
  "hsl": {
    "h": 323.077,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.26019,
    "c": 0.0882,
    "h": 347.2
  },
  "luminance": 0.01535
}

Semantic roles & 50–950 ramp

primary
#400C2C
secondary
#2C7C4B
accent
#EB803D
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090205
muted
#7B787A

Preview Lab

Preview with #400C2C

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

Preview Lab → · Contrast checker → · Palette generator →

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