#40052B#40052B

#40052B is a dark, moderate pink. Relative luminance 0.014; OKLCH L 25.2% C 0.097 H 347.0°. Best body text is #FFFFFF at 16.48:1 contrast (WCAG AA passes).

Color values

HEX#40052B
RGBrgb(64, 5, 43)
HSLhsl(321, 86%, 14%)
HSVhsv(321, 92%, 25%)
CMYKcmyk(0%, 92.2%, 32.8%, 74.9%)
CIE-LABlab(11.78, 31.01, -8.28)
CIE-LCHlch(11.78, 32.10, 345.05°)
OKLaboklab(25.24% 0.0946 -0.0219)
OKLCHoklch(25.24% 0.097 347)
XYZxyz(2.6048, 1.3733, 2.4129)
Luminance0.0137 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40052B #05401A
analogous
#370540 #40052B #40050D
triadic
#40052B #2B4005 #052B40
tetradic
#40052B #403705 #05401A #050D40
square
#40052B #403705 #05401A #050D40
split-complementary
#40052B #0D4005 #054037
monochromatic
#1C0213 #1C0213 #40052B #790951 #B20E77

Accessibility & contrast

On white

16.48
#40052B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#40052B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40052B
16.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40052B#FFFFFF#000000##FFFFFF
##40052B1.0016.481.2716.48
#FFFFFF16.481.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E192C
Deuteranopia (green-blind)
#20232A
Tritanopia (blue-blind)
#450317
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #40052b;
/* rgb */ color: rgb(64, 5, 43);
/* oklch */ color: oklch(25.2% 0.097 347.0);
Tailwind
colors: {
  custom: {
    50: '#784d64',
    500: '#40052b',
    950: '#000000',
  },
}
SCSS
$custom: #40052b;
$custom-light: #784d64;
$custom-dark: #000000;
JSON
{
  "hex": "#40052b",
  "rgb": {
    "r": 64,
    "g": 5,
    "b": 43
  },
  "hsl": {
    "h": 321.356,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.25239,
    "c": 0.09713,
    "h": 347
  },
  "luminance": 0.01373
}

Semantic roles & 50–950 ramp

primary
#40052B
secondary
#208143
accent
#FC762C
background
#F7F4F5
surface
#EEE7EA
border
#C9C3C6
text
#090205
muted
#7B7879

Preview Lab

Preview with #40052B

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

Preview Lab → · Contrast checker → · Palette generator →

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