#400C31#400C31

#400C31 is a dark, moderate pink. Relative luminance 0.016; OKLCH L 26.3% C 0.092 H 341.8°. Best body text is #FFFFFF at 15.97:1 contrast (WCAG AA passes).

Color values

HEX#400C31
RGBrgb(64, 12, 49)
HSLhsl(317, 68%, 15%)
HSVhsv(317, 81%, 25%)
CMYKcmyk(0%, 81.2%, 23.4%, 74.9%)
CIE-LABlab(13.08, 29.10, -10.68)
CIE-LCHlch(13.08, 31.00, 339.83°)
OKLaboklab(26.28% 0.0872 -0.0287)
OKLCHoklch(26.28% 0.092 341.8)
XYZxyz(2.8003, 1.5750, 3.0617)
Luminance0.0158 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C31 #0C401B
analogous
#350C40 #400C31 #400C17
triadic
#400C31 #31400C #0C3140
tetradic
#400C31 #40350C #0C401B #0C1740
square
#400C31 #40350C #0C401B #0C1740
split-complementary
#400C31 #17400C #0C4035
monochromatic
#1A0514 #1A0514 #400C31 #741658 #A71F80

Accessibility & contrast

On white

15.97
#400C31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400C31
15.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C31#FFFFFF#000000##FFFFFF
##400C311.0015.971.3215.97
#FFFFFF15.971.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#101C32
Deuteranopia (green-blind)
#212530
Tritanopia (blue-blind)
#440D1D
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #400c31;
/* rgb */ color: rgb(64, 12, 49);
/* oklch */ color: oklch(26.3% 0.092 341.8);
Tailwind
colors: {
  custom: {
    50: '#775069',
    500: '#400c31',
    950: '#000000',
  },
}
SCSS
$custom: #400c31;
$custom-light: #775069;
$custom-dark: #000000;
JSON
{
  "hex": "#400c31",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 49
  },
  "hsl": {
    "h": 317.308,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.2628,
    "c": 0.09181,
    "h": 341.8
  },
  "luminance": 0.01575
}

Semantic roles & 50–950 ramp

primary
#400C31
secondary
#2C7C43
accent
#EB6F3D
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #400C31

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

Preview Lab → · Contrast checker → · Palette generator →

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