#400C2F#400C2F

#400C2F is a dark, moderate pink. Relative luminance 0.016; OKLCH L 26.2% C 0.090 H 343.9°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#400C2F
RGBrgb(64, 12, 47)
HSLhsl(320, 68%, 15%)
HSVhsv(320, 81%, 25%)
CMYKcmyk(0%, 81.2%, 26.6%, 74.9%)
CIE-LABlab(12.98, 28.77, -9.39)
CIE-LCHlch(12.98, 30.26, 341.93°)
OKLaboklab(26.17% 0.0868 -0.025)
OKLCHoklch(26.17% 0.09 343.9)
XYZxyz(2.7590, 1.5585, 2.8443)
Luminance0.0156 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C2F #0C401D
analogous
#370C40 #400C2F #400C15
triadic
#400C2F #2F400C #0C2F40
tetradic
#400C2F #40370C #0C401D #0C1540
square
#400C2F #40370C #0C401D #0C1540
split-complementary
#400C2F #15400C #0C4037
monochromatic
#1A0513 #1A0513 #400C2F #741655 #A71F7B

Accessibility & contrast

On white

16.01
#400C2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400C2F
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C2F#FFFFFF#000000##FFFFFF
##400C2F1.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#121C30
Deuteranopia (green-blind)
#21252E
Tritanopia (blue-blind)
#450C1C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #400c2f;
/* rgb */ color: rgb(64, 12, 47);
/* oklch */ color: oklch(26.2% 0.090 343.9);
Tailwind
colors: {
  custom: {
    50: '#775067',
    500: '#400c2f',
    950: '#000000',
  },
}
SCSS
$custom: #400c2f;
$custom-light: #775067;
$custom-dark: #000000;
JSON
{
  "hex": "#400c2f",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 47
  },
  "hsl": {
    "h": 319.615,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.26173,
    "c": 0.0903,
    "h": 343.9
  },
  "luminance": 0.01558
}

Semantic roles & 50–950 ramp

primary
#400C2F
secondary
#2C7C46
accent
#EB763D
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #400C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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