#400C36#400C36

#400C36 is a dark, moderate pink. Relative luminance 0.016; OKLCH L 26.6% C 0.096 H 336.8°. Best body text is #FFFFFF at 15.86:1 contrast (WCAG AA passes).

Color values

HEX#400C36
RGBrgb(64, 12, 54)
HSLhsl(312, 68%, 15%)
HSVhsv(312, 81%, 25%)
CMYKcmyk(0%, 81.2%, 15.6%, 74.9%)
CIE-LABlab(13.35, 29.95, -13.88)
CIE-LCHlch(13.35, 33.01, 335.14°)
OKLaboklab(26.57% 0.0881 -0.0377)
OKLCHoklch(26.57% 0.096 336.8)
XYZxyz(2.9117, 1.6195, 3.6486)
Luminance0.0162 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C36 #0C4016
analogous
#300C40 #400C36 #400C1C
triadic
#400C36 #36400C #0C3640
tetradic
#400C36 #40300C #0C4016 #0C1C40
square
#400C36 #40300C #0C4016 #0C1C40
split-complementary
#400C36 #1C400C #0C4030
monochromatic
#1A0516 #1A0516 #400C36 #741661 #A71F8D

Accessibility & contrast

On white

15.86
#400C36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#400C36 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400C36
15.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C36#FFFFFF#000000##FFFFFF
##400C361.0015.861.3215.86
#FFFFFF15.861.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D1D37
Deuteranopia (green-blind)
#1F2535
Tritanopia (blue-blind)
#440F1F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #400c36;
/* rgb */ color: rgb(64, 12, 54);
/* oklch */ color: oklch(26.6% 0.096 336.8);
Tailwind
colors: {
  custom: {
    50: '#77516d',
    500: '#400c36',
    950: '#000000',
  },
}
SCSS
$custom: #400c36;
$custom-light: #77516d;
$custom-dark: #000000;
JSON
{
  "hex": "#400c36",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 54
  },
  "hsl": {
    "h": 311.538,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.26566,
    "c": 0.09582,
    "h": 336.8
  },
  "luminance": 0.01619
}

Semantic roles & 50–950 ramp

primary
#400C36
secondary
#2C7C3B
accent
#EB5E3D
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090207
muted
#7B787A

Preview Lab

Preview with #400C36

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

Preview Lab → · Contrast checker → · Palette generator →

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