#400C2D#400C2D

#400C2D is a dark, moderate pink. Relative luminance 0.015; OKLCH L 26.1% C 0.089 H 346.1°. Best body text is #FFFFFF at 16.05:1 contrast (WCAG AA passes).

Color values

HEX#400C2D
RGBrgb(64, 12, 45)
HSLhsl(322, 68%, 15%)
HSVhsv(322, 81%, 25%)
CMYKcmyk(0%, 81.2%, 29.7%, 74.9%)
CIE-LABlab(12.88, 28.46, -8.07)
CIE-LCHlch(12.88, 29.58, 344.16°)
OKLaboklab(26.07% 0.0863 -0.0214)
OKLCHoklch(26.07% 0.089 346.1)
XYZxyz(2.7196, 1.5427, 2.6367)
Luminance0.0154 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C2D #0C401F
analogous
#390C40 #400C2D #400C13
triadic
#400C2D #2D400C #0C2D40
tetradic
#400C2D #40390C #0C401F #0C1340
square
#400C2D #40390C #0C401F #0C1340
split-complementary
#400C2D #13400C #0C4039
monochromatic
#1A0512 #1A0512 #400C2D #741651 #A71F75

Accessibility & contrast

On white

16.05
#400C2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400C2D
16.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C2D#FFFFFF#000000##FFFFFF
##400C2D1.0016.051.3116.05
#FFFFFF16.051.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#131C2E
Deuteranopia (green-blind)
#22252C
Tritanopia (blue-blind)
#450B1B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #400c2d;
/* rgb */ color: rgb(64, 12, 45);
/* oklch */ color: oklch(26.1% 0.089 346.1);
Tailwind
colors: {
  custom: {
    50: '#775066',
    500: '#400c2d',
    950: '#000000',
  },
}
SCSS
$custom: #400c2d;
$custom-light: #775066;
$custom-dark: #000000;
JSON
{
  "hex": "#400c2d",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 45
  },
  "hsl": {
    "h": 321.923,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.26069,
    "c": 0.08888,
    "h": 346.1
  },
  "luminance": 0.01542
}

Semantic roles & 50–950 ramp

primary
#400C2D
secondary
#2C7C49
accent
#EB7C3D
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090205
muted
#7B787A

Preview Lab

Preview with #400C2D

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

Preview Lab → · Contrast checker → · Palette generator →

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