#400E31#400E31

#400E31 is a dark, moderate pink. Relative luminance 0.016; OKLCH L 26.5% C 0.089 H 342.1°. Best body text is #FFFFFF at 15.85:1 contrast (WCAG AA passes).

Color values

HEX#400E31
RGBrgb(64, 14, 49)
HSLhsl(318, 64%, 15%)
HSVhsv(318, 78%, 25%)
CMYKcmyk(0%, 78.1%, 23.4%, 74.9%)
CIE-LABlab(13.39, 28.22, -10.20)
CIE-LCHlch(13.39, 30.01, 340.12°)
OKLaboklab(26.51% 0.0846 -0.0274)
OKLCHoklch(26.51% 0.089 342.1)
XYZxyz(2.8259, 1.6261, 3.0702)
Luminance0.0163 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E31 #0E401D
analogous
#360E40 #400E31 #400E18
triadic
#400E31 #31400E #0E3140
tetradic
#400E31 #40360E #0E401D #0E1840
square
#400E31 #40360E #0E401D #0E1840
split-complementary
#400E31 #18400E #0E4036
monochromatic
#190513 #190513 #400E31 #721957 #A4247E

Accessibility & contrast

On white

15.85
#400E31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#400E31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400E31
15.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400E31#FFFFFF#000000##FFFFFF
##400E311.0015.851.3315.85
#FFFFFF15.851.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#121D32
Deuteranopia (green-blind)
#222530
Tritanopia (blue-blind)
#440F1D
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #400e31;
/* rgb */ color: rgb(64, 14, 49);
/* oklch */ color: oklch(26.5% 0.089 342.1);
Tailwind
colors: {
  custom: {
    50: '#775169',
    500: '#400e31',
    950: '#000000',
  },
}
SCSS
$custom: #400e31;
$custom-light: #775169;
$custom-dark: #000000;
JSON
{
  "hex": "#400e31",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 49
  },
  "hsl": {
    "h": 318,
    "s": 64.103,
    "l": 15.294
  },
  "oklch": {
    "l": 0.26507,
    "c": 0.08887,
    "h": 342.1
  },
  "luminance": 0.01626
}

Semantic roles & 50–950 ramp

primary
#400E31
secondary
#2F7B46
accent
#E77341
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #400E31

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

Preview Lab → · Contrast checker → · Palette generator →

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