#40041E#40041E

#40041E is a very dark, moderate pink. Relative luminance 0.013; OKLCH L 24.5% C 0.092 H 0.9°. Best body text is #FFFFFF at 16.74:1 contrast (WCAG AA passes).

Color values

HEX#40041E
RGBrgb(64, 4, 30)
HSLhsl(334, 88%, 13%)
HSVhsv(334, 94%, 25%)
CMYKcmyk(0%, 93.8%, 53.1%, 74.9%)
CIE-LABlab(11.07, 29.85, 0.41)
CIE-LCHlch(11.07, 29.85, 0.79°)
OKLaboklab(24.54% 0.0918 0.0014)
OKLCHoklch(24.54% 0.092 0.9)
XYZxyz(2.3923, 1.2709, 1.3474)
Luminance0.0127 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40041E #044026
analogous
#40043C #40041E #400804
triadic
#40041E #1E4004 #041E40
tetradic
#40041E #3C4004 #044026 #080440
square
#40041E #3C4004 #044026 #080440
split-complementary
#40041E #044008 #043C40
monochromatic
#1D020E #1D020E #40041E #7A0839 #B30B54

Accessibility & contrast

On white

16.74
#40041E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#40041E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40041E
16.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40041E#FFFFFF#000000##FFFFFF
##40041E1.0016.741.2516.74
#FFFFFF16.741.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13161F
Deuteranopia (green-blind)
#23221D
Tritanopia (blue-blind)
#460010
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #40041e;
/* rgb */ color: rgb(64, 4, 30);
/* oklch */ color: oklch(24.5% 0.092 0.9);
Tailwind
colors: {
  custom: {
    50: '#794c59',
    500: '#40041e',
    950: '#000000',
  },
}
SCSS
$custom: #40041e;
$custom-light: #794c59;
$custom-dark: #000000;
JSON
{
  "hex": "#40041e",
  "rgb": {
    "r": 64,
    "g": 4,
    "b": 30
  },
  "hsl": {
    "h": 334,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.24543,
    "c": 0.09183,
    "h": 0.9
  },
  "luminance": 0.01271
}

Semantic roles & 50–950 ramp

primary
#40041E
secondary
#1F8156
accent
#FEA229
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090103
muted
#7B7778

Preview Lab

Preview with #40041E

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

Preview Lab → · Contrast checker → · Palette generator →

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