#40072B#40072B

#40072B is a dark, moderate pink. Relative luminance 0.014; OKLCH L 25.4% C 0.094 H 347.3°. Best body text is #FFFFFF at 16.37:1 contrast (WCAG AA passes).

Color values

HEX#40072B
RGBrgb(64, 7, 43)
HSLhsl(322, 80%, 14%)
HSVhsv(322, 89%, 25%)
CMYKcmyk(0%, 89.1%, 32.8%, 74.9%)
CIE-LABlab(12.07, 30.18, -7.84)
CIE-LCHlch(12.07, 31.18, 345.44°)
OKLaboklab(25.45% 0.092 -0.0207)
OKLCHoklch(25.45% 0.094 347.3)
XYZxyz(2.6265, 1.4167, 2.4202)
Luminance0.0142 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40072B #07401C
analogous
#390740 #40072B #40070F
triadic
#40072B #2B4007 #072B40
tetradic
#40072B #403907 #07401C #070F40
square
#40072B #403907 #07401C #070F40
split-complementary
#40072B #0F4007 #074039
monochromatic
#1C0313 #1C0313 #40072B #770D50 #AE1375

Accessibility & contrast

On white

16.37
#40072B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#40072B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40072B
16.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40072B#FFFFFF#000000##FFFFFF
##40072B1.0016.371.2816.37
#FFFFFF16.371.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10192C
Deuteranopia (green-blind)
#21232A
Tritanopia (blue-blind)
#450518
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #40072b;
/* rgb */ color: rgb(64, 7, 43);
/* oklch */ color: oklch(25.4% 0.094 347.3);
Tailwind
colors: {
  custom: {
    50: '#784e64',
    500: '#40072b',
    950: '#000000',
  },
}
SCSS
$custom: #40072b;
$custom-light: #784e64;
$custom-dark: #000000;
JSON
{
  "hex": "#40072b",
  "rgb": {
    "r": 64,
    "g": 7,
    "b": 43
  },
  "hsl": {
    "h": 322.105,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.25449,
    "c": 0.09433,
    "h": 347.3
  },
  "luminance": 0.01416
}

Semantic roles & 50–950 ramp

primary
#40072B
secondary
#247F45
accent
#F77A31
background
#F7F4F5
surface
#EDE7EA
border
#C8C3C6
text
#090205
muted
#7B7879

Preview Lab

Preview with #40072B

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

Preview Lab → · Contrast checker → · Palette generator →

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