#400B31#400B31

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

Color values

HEX#400B31
RGBrgb(64, 11, 49)
HSLhsl(317, 71%, 15%)
HSVhsv(317, 83%, 25%)
CMYKcmyk(0%, 82.8%, 23.4%, 74.9%)
CIE-LABlab(12.93, 29.51, -10.91)
CIE-LCHlch(12.93, 31.46, 339.71°)
OKLaboklab(26.17% 0.0885 -0.0293)
OKLCHoklch(26.17% 0.093 341.7)
XYZxyz(2.7885, 1.5514, 3.0577)
Luminance0.0155 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400B31 #0B401A
analogous
#350B40 #400B31 #400B17
triadic
#400B31 #31400B #0B3140
tetradic
#400B31 #40350B #0B401A #0B1740
square
#400B31 #40350B #0B401A #0B1740
split-complementary
#400B31 #17400B #0B4035
monochromatic
#1A0414 #1A0414 #400B31 #741459 #A81D81

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##400B31#FFFFFF#000000##FFFFFF
##400B311.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)
#101C32
Deuteranopia (green-blind)
#202430
Tritanopia (blue-blind)
#440C1C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #400b31;
/* rgb */ color: rgb(64, 11, 49);
/* oklch */ color: oklch(26.2% 0.093 341.7);
Tailwind
colors: {
  custom: {
    50: '#775069',
    500: '#400b31',
    950: '#000000',
  },
}
SCSS
$custom: #400b31;
$custom-light: #775069;
$custom-dark: #000000;
JSON
{
  "hex": "#400b31",
  "rgb": {
    "r": 64,
    "g": 11,
    "b": 49
  },
  "hsl": {
    "h": 316.981,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.26174,
    "c": 0.09319,
    "h": 341.7
  },
  "luminance": 0.01551
}

Semantic roles & 50–950 ramp

primary
#400B31
secondary
#2A7D41
accent
#ED6D3A
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #400B31

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

Preview Lab → · Contrast checker → · Palette generator →

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