#40042D#40042D

#40042D is a dark, moderate pink. Relative luminance 0.014; OKLCH L 25.2% C 0.100 H 344.8°. Best body text is #FFFFFF at 16.49:1 contrast (WCAG AA passes).

Color values

HEX#40042D
RGBrgb(64, 4, 45)
HSLhsl(319, 88%, 13%)
HSVhsv(319, 94%, 25%)
CMYKcmyk(0%, 93.8%, 29.7%, 74.9%)
CIE-LABlab(11.73, 31.72, -9.83)
CIE-LCHlch(11.73, 33.21, 342.78°)
OKLaboklab(25.24% 0.0964 -0.0262)
OKLCHoklch(25.24% 0.1 344.8)
XYZxyz(2.6315, 1.3666, 2.6073)
Luminance0.0137 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40042D #044017
analogous
#350440 #40042D #40040F
triadic
#40042D #2D4004 #042D40
tetradic
#40042D #403504 #044017 #040F40
square
#40042D #403504 #044017 #040F40
split-complementary
#40042D #0F4004 #044035
monochromatic
#1D0214 #1D0214 #40042D #7A0855 #B30B7E

Accessibility & contrast

On white

16.49
#40042D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#40042D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40042D
16.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40042D#FFFFFF#000000##FFFFFF
##40042D1.0016.491.2716.49
#FFFFFF16.491.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C192E
Deuteranopia (green-blind)
#1F232C
Tritanopia (blue-blind)
#450318
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #40042d;
/* rgb */ color: rgb(64, 4, 45);
/* oklch */ color: oklch(25.2% 0.100 344.8);
Tailwind
colors: {
  custom: {
    50: '#784d66',
    500: '#40042d',
    950: '#000000',
  },
}
SCSS
$custom: #40042d;
$custom-light: #784d66;
$custom-dark: #000000;
JSON
{
  "hex": "#40042d",
  "rgb": {
    "r": 64,
    "g": 4,
    "b": 45
  },
  "hsl": {
    "h": 319,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.2524,
    "c": 0.09989,
    "h": 344.8
  },
  "luminance": 0.01366
}

Semantic roles & 50–950 ramp

primary
#40042D
secondary
#1F813E
accent
#FE6D29
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090205
muted
#7B787A

Preview Lab

Preview with #40042D

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

Preview Lab → · Contrast checker → · Palette generator →

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