#40052F#40052F

#40052F is a dark, moderate pink. Relative luminance 0.014; OKLCH L 25.5% C 0.100 H 343.0°. Best body text is #FFFFFF at 16.40:1 contrast (WCAG AA passes).

Color values

HEX#40052F
RGBrgb(64, 5, 47)
HSLhsl(317, 86%, 14%)
HSVhsv(317, 92%, 25%)
CMYKcmyk(0%, 92.2%, 26.6%, 74.9%)
CIE-LABlab(11.98, 31.59, -10.91)
CIE-LCHlch(11.98, 33.43, 340.94°)
OKLaboklab(25.46% 0.0954 -0.0293)
OKLCHoklch(25.46% 0.1 343)
XYZxyz(2.6818, 1.4041, 2.8186)
Luminance0.0140 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40052F #054016
analogous
#330540 #40052F #400511
triadic
#40052F #2F4005 #052F40
tetradic
#40052F #403305 #054016 #051140
square
#40052F #403305 #054016 #051140
split-complementary
#40052F #114005 #054033
monochromatic
#1C0215 #1C0215 #40052F #790959 #B20E82

Accessibility & contrast

On white

16.40
#40052F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40052F
16.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40052F#FFFFFF#000000##FFFFFF
##40052F1.0016.401.2816.40
#FFFFFF16.401.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40052f;
/* rgb */ color: rgb(64, 5, 47);
/* oklch */ color: oklch(25.5% 0.100 343.0);
Tailwind
colors: {
  custom: {
    50: '#784d67',
    500: '#40052f',
    950: '#000000',
  },
}
SCSS
$custom: #40052f;
$custom-light: #784d67;
$custom-dark: #000000;
JSON
{
  "hex": "#40052f",
  "rgb": {
    "r": 64,
    "g": 5,
    "b": 47
  },
  "hsl": {
    "h": 317.288,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.25455,
    "c": 0.09984,
    "h": 343
  },
  "luminance": 0.01404
}

Semantic roles & 50–950 ramp

primary
#40052F
secondary
#20813C
accent
#FC682C
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #40052F

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

Preview Lab → · Contrast checker → · Palette generator →

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