#40052E#40052E

#40052E is a dark, moderate pink. Relative luminance 0.014; OKLCH L 25.4% C 0.099 H 343.9°. Best body text is #FFFFFF at 16.42:1 contrast (WCAG AA passes).

Color values

HEX#40052E
RGBrgb(64, 5, 46)
HSLhsl(318, 86%, 14%)
HSVhsv(318, 92%, 25%)
CMYKcmyk(0%, 92.2%, 28.1%, 74.9%)
CIE-LABlab(11.93, 31.45, -10.26)
CIE-LCHlch(11.93, 33.08, 341.93°)
OKLaboklab(25.4% 0.0953 -0.0274)
OKLCHoklch(25.4% 0.099 343.9)
XYZxyz(2.6619, 1.3961, 2.7135)
Luminance0.0140 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40052E #054017
analogous
#340540 #40052E #400510
triadic
#40052E #2E4005 #052E40
tetradic
#40052E #403405 #054017 #051040
square
#40052E #403405 #054017 #051040
split-complementary
#40052E #104005 #054034
monochromatic
#1C0214 #1C0214 #40052E #790957 #B20E80

Accessibility & contrast

On white

16.42
#40052E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40052E
16.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40052E#FFFFFF#000000##FFFFFF
##40052E1.0016.421.2816.42
#FFFFFF16.421.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C192F
Deuteranopia (green-blind)
#1F232D
Tritanopia (blue-blind)
#450519
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #40052e;
/* rgb */ color: rgb(64, 5, 46);
/* oklch */ color: oklch(25.4% 0.099 343.9);
Tailwind
colors: {
  custom: {
    50: '#784d66',
    500: '#40052e',
    950: '#000000',
  },
}
SCSS
$custom: #40052e;
$custom-light: #784d66;
$custom-dark: #000000;
JSON
{
  "hex": "#40052e",
  "rgb": {
    "r": 64,
    "g": 5,
    "b": 46
  },
  "hsl": {
    "h": 318.305,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.254,
    "c": 0.09914,
    "h": 343.9
  },
  "luminance": 0.01396
}

Semantic roles & 50–950 ramp

primary
#40052E
secondary
#20813E
accent
#FC6B2C
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #40052E

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

Preview Lab → · Contrast checker → · Palette generator →

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