#40072E#40072E

#40072E is a dark, moderate pink. Relative luminance 0.014; OKLCH L 25.6% C 0.096 H 344.2°. Best body text is #FFFFFF at 16.31:1 contrast (WCAG AA passes).

Color values

HEX#40072E
RGBrgb(64, 7, 46)
HSLhsl(319, 80%, 14%)
HSVhsv(319, 89%, 25%)
CMYKcmyk(0%, 89.1%, 28.1%, 74.9%)
CIE-LABlab(12.22, 30.62, -9.82)
CIE-LCHlch(12.22, 32.16, 342.22°)
OKLaboklab(25.61% 0.0927 -0.0262)
OKLCHoklch(25.61% 0.096 344.2)
XYZxyz(2.6836, 1.4395, 2.7208)
Luminance0.0144 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40072E #074019
analogous
#360740 #40072E #400712
triadic
#40072E #2E4007 #072E40
tetradic
#40072E #403607 #074019 #071240
square
#40072E #403607 #074019 #071240
split-complementary
#40072E #124007 #074036
monochromatic
#1C0314 #1C0314 #40072E #770D56 #AE137D

Accessibility & contrast

On white

16.31
#40072E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#40072E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40072E
16.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40072E#FFFFFF#000000##FFFFFF
##40072E1.0016.311.2916.31
#FFFFFF16.311.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1A2F
Deuteranopia (green-blind)
#20232D
Tritanopia (blue-blind)
#450719
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #40072e;
/* rgb */ color: rgb(64, 7, 46);
/* oklch */ color: oklch(25.6% 0.096 344.2);
Tailwind
colors: {
  custom: {
    50: '#784e66',
    500: '#40072e',
    950: '#000000',
  },
}
SCSS
$custom: #40072e;
$custom-light: #784e66;
$custom-dark: #000000;
JSON
{
  "hex": "#40072e",
  "rgb": {
    "r": 64,
    "g": 7,
    "b": 46
  },
  "hsl": {
    "h": 318.947,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.25607,
    "c": 0.09636,
    "h": 344.2
  },
  "luminance": 0.01439
}

Semantic roles & 50–950 ramp

primary
#40072E
secondary
#247F41
accent
#F76F31
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #40072E

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

Preview Lab → · Contrast checker → · Palette generator →

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