#40042E#40042E

#40042E is a dark, moderate pink. Relative luminance 0.014; OKLCH L 25.3% C 0.101 H 343.8°. Best body text is #FFFFFF at 16.47:1 contrast (WCAG AA passes).

Color values

HEX#40042E
RGBrgb(64, 4, 46)
HSLhsl(318, 88%, 13%)
HSVhsv(318, 94%, 25%)
CMYKcmyk(0%, 93.8%, 28.1%, 74.9%)
CIE-LABlab(11.79, 31.86, -10.49)
CIE-LCHlch(11.79, 33.55, 341.79°)
OKLaboklab(25.3% 0.0966 -0.0281)
OKLCHoklch(25.3% 0.101 343.8)
XYZxyz(2.6510, 1.3744, 2.7099)
Luminance0.0137 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40042E #044016
analogous
#340440 #40042E #400410
triadic
#40042E #2E4004 #042E40
tetradic
#40042E #403404 #044016 #041040
square
#40042E #403404 #044016 #041040
split-complementary
#40042E #104004 #044034
monochromatic
#1D0215 #1D0215 #40042E #7A0857 #B30B81

Accessibility & contrast

On white

16.47
#40042E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40042E
16.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40042E#FFFFFF#000000##FFFFFF
##40042E1.0016.471.2716.47
#FFFFFF16.471.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B192F
Deuteranopia (green-blind)
#1F232D
Tritanopia (blue-blind)
#450418
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #40042e;
/* rgb */ color: rgb(64, 4, 46);
/* oklch */ color: oklch(25.3% 0.101 343.8);
Tailwind
colors: {
  custom: {
    50: '#784d66',
    500: '#40042e',
    950: '#000000',
  },
}
SCSS
$custom: #40042e;
$custom-light: #784d66;
$custom-dark: #000000;
JSON
{
  "hex": "#40042e",
  "rgb": {
    "r": 64,
    "g": 4,
    "b": 46
  },
  "hsl": {
    "h": 318,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.25295,
    "c": 0.10057,
    "h": 343.8
  },
  "luminance": 0.01374
}

Semantic roles & 50–950 ramp

primary
#40042E
secondary
#1F813C
accent
#FE6929
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #40042E

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

Preview Lab → · Contrast checker → · Palette generator →

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