#40042C#40042C

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

Color values

HEX#40042C
RGBrgb(64, 4, 44)
HSLhsl(320, 88%, 13%)
HSVhsv(320, 94%, 25%)
CMYKcmyk(0%, 93.8%, 31.2%, 74.9%)
CIE-LABlab(11.68, 31.58, -9.17)
CIE-LCHlch(11.68, 32.88, 343.81°)
OKLaboklab(25.19% 0.0962 -0.0244)
OKLCHoklch(25.19% 0.099 345.8)
XYZxyz(2.6125, 1.3590, 2.5071)
Luminance0.0136 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40042C #044018
analogous
#360440 #40042C #40040E
triadic
#40042C #2C4004 #042C40
tetradic
#40042C #403604 #044018 #040E40
square
#40042C #403604 #044018 #040E40
split-complementary
#40042C #0E4004 #044036
monochromatic
#1D0214 #1D0214 #40042C #7A0854 #B30B7B

Accessibility & contrast

On white

16.51
#40042C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40042C
16.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40042C#FFFFFF#000000##FFFFFF
##40042C1.0016.511.2716.51
#FFFFFF16.511.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D182D
Deuteranopia (green-blind)
#20222B
Tritanopia (blue-blind)
#450317
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #40042c;
/* rgb */ color: rgb(64, 4, 44);
/* oklch */ color: oklch(25.2% 0.099 345.8);
Tailwind
colors: {
  custom: {
    50: '#784d65',
    500: '#40042c',
    950: '#000000',
  },
}
SCSS
$custom: #40042c;
$custom-light: #784d65;
$custom-dark: #000000;
JSON
{
  "hex": "#40042c",
  "rgb": {
    "r": 64,
    "g": 4,
    "b": 44
  },
  "hsl": {
    "h": 320,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.25186,
    "c": 0.09922,
    "h": 345.8
  },
  "luminance": 0.01359
}

Semantic roles & 50–950 ramp

primary
#40042C
secondary
#1F813F
accent
#FE7029
background
#F7F4F6
surface
#EEE7EB
border
#C9C3C6
text
#090205
muted
#7B787A

Preview Lab

Preview with #40042C

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

Preview Lab → · Contrast checker → · Palette generator →

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