#40072F#40072F

#40072F is a dark, moderate pink. Relative luminance 0.014; OKLCH L 25.7% C 0.097 H 343.2°. Best body text is #FFFFFF at 16.29:1 contrast (WCAG AA passes).

Color values

HEX#40072F
RGBrgb(64, 7, 47)
HSLhsl(318, 80%, 14%)
HSVhsv(318, 89%, 25%)
CMYKcmyk(0%, 89.1%, 26.6%, 74.9%)
CIE-LABlab(12.27, 30.77, -10.47)
CIE-LCHlch(12.27, 32.51, 341.21°)
OKLaboklab(25.66% 0.0929 -0.028)
OKLCHoklch(25.66% 0.097 343.2)
XYZxyz(2.7035, 1.4475, 2.8258)
Luminance0.0145 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40072F #074018
analogous
#350740 #40072F #400713
triadic
#40072F #2F4007 #072F40
tetradic
#40072F #403507 #074018 #071340
square
#40072F #403507 #074018 #071340
split-complementary
#40072F #134007 #074035
monochromatic
#1C0314 #1C0314 #40072F #770D58 #AE1380

Accessibility & contrast

On white

16.29
#40072F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40072F
16.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40072F#FFFFFF#000000##FFFFFF
##40072F1.0016.291.2916.29
#FFFFFF16.291.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1A30
Deuteranopia (green-blind)
#20232E
Tritanopia (blue-blind)
#45071A
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #40072f;
/* rgb */ color: rgb(64, 7, 47);
/* oklch */ color: oklch(25.7% 0.097 343.2);
Tailwind
colors: {
  custom: {
    50: '#784e67',
    500: '#40072f',
    950: '#000000',
  },
}
SCSS
$custom: #40072f;
$custom-light: #784e67;
$custom-dark: #000000;
JSON
{
  "hex": "#40072f",
  "rgb": {
    "r": 64,
    "g": 7,
    "b": 47
  },
  "hsl": {
    "h": 317.895,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.25661,
    "c": 0.09706,
    "h": 343.2
  },
  "luminance": 0.01447
}

Semantic roles & 50–950 ramp

primary
#40072F
secondary
#247F3F
accent
#F76C31
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #40072F

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

Preview Lab → · Contrast checker → · Palette generator →

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