#400C2E#400C2E

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

Color values

HEX#400C2E
RGBrgb(64, 12, 46)
HSLhsl(321, 68%, 15%)
HSVhsv(321, 81%, 25%)
CMYKcmyk(0%, 81.2%, 28.1%, 74.9%)
CIE-LABlab(12.93, 28.62, -8.73)
CIE-LCHlch(12.93, 29.92, 343.03°)
OKLaboklab(26.12% 0.0865 -0.0232)
OKLCHoklch(26.12% 0.09 345)
XYZxyz(2.7391, 1.5505, 2.7393)
Luminance0.0155 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C2E #0C401E
analogous
#380C40 #400C2E #400C14
triadic
#400C2E #2E400C #0C2E40
tetradic
#400C2E #40380C #0C401E #0C1440
square
#400C2E #40380C #0C401E #0C1440
split-complementary
#400C2E #14400C #0C4038
monochromatic
#1A0513 #1A0513 #400C2E #741653 #A71F78

Accessibility & contrast

On white

16.03
#400C2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400C2E
16.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C2E#FFFFFF#000000##FFFFFF
##400C2E1.0016.031.3116.03
#FFFFFF16.031.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#121C2F
Deuteranopia (green-blind)
#22252D
Tritanopia (blue-blind)
#450B1B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #400c2e;
/* rgb */ color: rgb(64, 12, 46);
/* oklch */ color: oklch(26.1% 0.090 345.0);
Tailwind
colors: {
  custom: {
    50: '#775066',
    500: '#400c2e',
    950: '#000000',
  },
}
SCSS
$custom: #400c2e;
$custom-light: #775066;
$custom-dark: #000000;
JSON
{
  "hex": "#400c2e",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 46
  },
  "hsl": {
    "h": 320.769,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.2612,
    "c": 0.08958,
    "h": 345
  },
  "luminance": 0.0155
}

Semantic roles & 50–950 ramp

primary
#400C2E
secondary
#2C7C48
accent
#EB793D
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #400C2E

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

Preview Lab → · Contrast checker → · Palette generator →

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