#40052D#40052D

#40052D is a dark, moderate pink. Relative luminance 0.014; OKLCH L 25.3% C 0.098 H 344.9°. Best body text is #FFFFFF at 16.44:1 contrast (WCAG AA passes).

Color values

HEX#40052D
RGBrgb(64, 5, 45)
HSLhsl(319, 86%, 14%)
HSVhsv(319, 92%, 25%)
CMYKcmyk(0%, 92.2%, 29.7%, 74.9%)
CIE-LABlab(11.88, 31.30, -9.60)
CIE-LCHlch(11.88, 32.74, 342.94°)
OKLaboklab(25.35% 0.0951 -0.0256)
OKLCHoklch(25.35% 0.098 344.9)
XYZxyz(2.6424, 1.3883, 2.6109)
Luminance0.0139 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40052D #054018
analogous
#350540 #40052D #40050F
triadic
#40052D #2D4005 #052D40
tetradic
#40052D #403505 #054018 #050F40
square
#40052D #403505 #054018 #050F40
split-complementary
#40052D #0F4005 #054035
monochromatic
#1C0214 #1C0214 #40052D #790955 #B20E7D

Accessibility & contrast

On white

16.44
#40052D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#40052D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40052D
16.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40052D#FFFFFF#000000##FFFFFF
##40052D1.0016.441.2816.44
#FFFFFF16.441.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D192E
Deuteranopia (green-blind)
#20232C
Tritanopia (blue-blind)
#450418
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #40052d;
/* rgb */ color: rgb(64, 5, 45);
/* oklch */ color: oklch(25.3% 0.098 344.9);
Tailwind
colors: {
  custom: {
    50: '#784d66',
    500: '#40052d',
    950: '#000000',
  },
}
SCSS
$custom: #40052d;
$custom-light: #784d66;
$custom-dark: #000000;
JSON
{
  "hex": "#40052d",
  "rgb": {
    "r": 64,
    "g": 5,
    "b": 45
  },
  "hsl": {
    "h": 319.322,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.25345,
    "c": 0.09846,
    "h": 344.9
  },
  "luminance": 0.01388
}

Semantic roles & 50–950 ramp

primary
#40052D
secondary
#20813F
accent
#FC6F2C
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090205
muted
#7B787A

Preview Lab

Preview with #40052D

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

Preview Lab → · Contrast checker → · Palette generator →

#40052D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva