#40081E#40081E

#40081E is a very dark, moderate pink. Relative luminance 0.014; OKLCH L 25.0% C 0.086 H 2.4°. Best body text is #FFFFFF at 16.52:1 contrast (WCAG AA passes).

Color values

HEX#40081E
RGBrgb(64, 8, 30)
HSLhsl(336, 78%, 14%)
HSVhsv(336, 88%, 25%)
CMYKcmyk(0%, 87.5%, 53.1%, 74.9%)
CIE-LABlab(11.67, 28.13, 1.29)
CIE-LCHlch(11.67, 28.16, 2.62°)
OKLaboklab(24.98% 0.0863 0.0036)
OKLCHoklch(24.98% 0.086 2.4)
XYZxyz(2.4357, 1.3577, 1.3618)
Luminance0.0136 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40081E #08402A
analogous
#40083A #40081E #400E08
triadic
#40081E #1E4008 #081E40
tetradic
#40081E #3A4008 #08402A #0E0840
square
#40081E #3A4008 #08402A #0E0840
split-complementary
#40081E #08400E #083A40
monochromatic
#1B030D #1B030D #40081E #760F37 #AD1651

Accessibility & contrast

On white

16.52
#40081E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#40081E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40081E
16.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40081E#FFFFFF#000000##FFFFFF
##40081E1.0016.521.2716.52
#FFFFFF16.521.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15181F
Deuteranopia (green-blind)
#24231D
Tritanopia (blue-blind)
#460112
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #40081e;
/* rgb */ color: rgb(64, 8, 30);
/* oklch */ color: oklch(25.0% 0.086 2.4);
Tailwind
colors: {
  custom: {
    50: '#794e59',
    500: '#40081e',
    950: '#000000',
  },
}
SCSS
$custom: #40081e;
$custom-light: #794e59;
$custom-dark: #000000;
JSON
{
  "hex": "#40081e",
  "rgb": {
    "r": 64,
    "g": 8,
    "b": 30
  },
  "hsl": {
    "h": 336.429,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.24984,
    "c": 0.08636,
    "h": 2.4
  },
  "luminance": 0.01357
}

Semantic roles & 50–950 ramp

primary
#40081E
secondary
#257E5B
accent
#F4A934
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090203
muted
#7B7878

Preview Lab

Preview with #40081E

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

Preview Lab → · Contrast checker → · Palette generator →

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