#400F36#400F36

#400F36 is a dark, moderate pink. Relative luminance 0.017; OKLCH L 26.9% C 0.091 H 337.0°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#400F36
RGBrgb(64, 15, 54)
HSLhsl(312, 62%, 15%)
HSVhsv(312, 77%, 25%)
CMYKcmyk(0%, 76.6%, 15.6%, 74.9%)
CIE-LABlab(13.82, 28.63, -13.15)
CIE-LCHlch(13.82, 31.51, 335.33°)
OKLaboklab(26.91% 0.0842 -0.0357)
OKLCHoklch(26.91% 0.091 337)
XYZxyz(2.9511, 1.6982, 3.6617)
Luminance0.0170 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F36 #0F4019
analogous
#310F40 #400F36 #400F1D
triadic
#400F36 #36400F #0F3640
tetradic
#400F36 #40310F #0F4019 #0F1D40
square
#400F36 #40310F #0F4019 #0F1D40
split-complementary
#400F36 #1D400F #0F4031
monochromatic
#190615 #190615 #400F36 #721B60 #A3268A

Accessibility & contrast

On white

15.68
#400F36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#400F36 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F36
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F36#FFFFFF#000000##FFFFFF
##400F361.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#101E37
Deuteranopia (green-blind)
#202635
Tritanopia (blue-blind)
#441220
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #400f36;
/* rgb */ color: rgb(64, 15, 54);
/* oklch */ color: oklch(26.9% 0.091 337.0);
Tailwind
colors: {
  custom: {
    50: '#77526d',
    500: '#400f36',
    950: '#000000',
  },
}
SCSS
$custom: #400f36;
$custom-light: #77526d;
$custom-dark: #000000;
JSON
{
  "hex": "#400f36",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 54
  },
  "hsl": {
    "h": 312.245,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.26905,
    "c": 0.09141,
    "h": 337
  },
  "luminance": 0.01698
}

Semantic roles & 50–950 ramp

primary
#400F36
secondary
#307A3F
accent
#E56443
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090207
muted
#7B787A

Preview Lab

Preview with #400F36

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

Preview Lab → · Contrast checker → · Palette generator →

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