#400F2C#400F2C

#400F2C is a dark, moderate pink. Relative luminance 0.016; OKLCH L 26.4% C 0.084 H 347.9°. Best body text is #FFFFFF at 15.88:1 contrast (WCAG AA passes).

Color values

HEX#400F2C
RGBrgb(64, 15, 44)
HSLhsl(324, 62%, 15%)
HSVhsv(324, 77%, 25%)
CMYKcmyk(0%, 76.6%, 31.2%, 74.9%)
CIE-LABlab(13.31, 26.96, -6.68)
CIE-LCHlch(13.31, 27.77, 346.09°)
OKLaboklab(26.37% 0.0818 -0.0176)
OKLCHoklch(26.37% 0.084 347.9)
XYZxyz(2.7399, 1.6138, 2.5496)
Luminance0.0161 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F2C #0F4023
analogous
#3B0F40 #400F2C #400F13
triadic
#400F2C #2C400F #0F2C40
tetradic
#400F2C #403B0F #0F4023 #0F1340
square
#400F2C #403B0F #0F4023 #0F1340
split-complementary
#400F2C #13400F #0F403B
monochromatic
#190611 #190611 #400F2C #721B4E #A32670

Accessibility & contrast

On white

15.88
#400F2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400F2C
15.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F2C#FFFFFF#000000##FFFFFF
##400F2C1.0015.881.3215.88
#FFFFFF15.881.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#151D2D
Deuteranopia (green-blind)
#23252B
Tritanopia (blue-blind)
#450D1B
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #400f2c;
/* rgb */ color: rgb(64, 15, 44);
/* oklch */ color: oklch(26.4% 0.084 347.9);
Tailwind
colors: {
  custom: {
    50: '#775265',
    500: '#400f2c',
    950: '#000000',
  },
}
SCSS
$custom: #400f2c;
$custom-light: #775265;
$custom-dark: #000000;
JSON
{
  "hex": "#400f2c",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 44
  },
  "hsl": {
    "h": 324.49,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.26374,
    "c": 0.08367,
    "h": 347.9
  },
  "luminance": 0.01613
}

Semantic roles & 50–950 ramp

primary
#400F2C
secondary
#307A4F
accent
#E58543
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090205
muted
#7B787A

Preview Lab

Preview with #400F2C

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

Preview Lab → · Contrast checker → · Palette generator →

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