#40142E#40142E

#40142E is a dark, moderate pink. Relative luminance 0.018; OKLCH L 27.2% C 0.077 H 346.9°. Best body text is #FFFFFF at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#40142E
RGBrgb(64, 20, 46)
HSLhsl(325, 52%, 16%)
HSVhsv(325, 69%, 25%)
CMYKcmyk(0%, 68.8%, 28.1%, 74.9%)
CIE-LABlab(14.33, 24.74, -6.59)
CIE-LCHlch(14.33, 25.60, 345.09°)
OKLaboklab(27.15% 0.0746 -0.0174)
OKLCHoklch(27.15% 0.077 346.9)
XYZxyz(2.8578, 1.7878, 2.7788)
Luminance0.0179 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40142E #144026
analogous
#3C1440 #40142E #401418
triadic
#40142E #2E4014 #142E40
tetradic
#40142E #403C14 #144026 #141840
square
#40142E #403C14 #144026 #141840
split-complementary
#40142E #184014 #14403C
monochromatic
#170711 #170711 #40142E #6F2350 #9D3171

Accessibility & contrast

On white

15.47
#40142E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#40142E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40142E
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40142E#FFFFFF#000000##FFFFFF
##40142E1.0015.471.3615.47
#FFFFFF15.471.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19202F
Deuteranopia (green-blind)
#25272D
Tritanopia (blue-blind)
#45131F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #40142e;
/* rgb */ color: rgb(64, 20, 46);
/* oklch */ color: oklch(27.2% 0.077 346.9);
Tailwind
colors: {
  custom: {
    50: '#775466',
    500: '#40142e',
    950: '#000000',
  },
}
SCSS
$custom: #40142e;
$custom-light: #775466;
$custom-dark: #000000;
JSON
{
  "hex": "#40142e",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 46
  },
  "hsl": {
    "h": 324.545,
    "s": 52.381,
    "l": 16.471
  },
  "oklch": {
    "l": 0.27153,
    "c": 0.0766,
    "h": 346.9
  },
  "luminance": 0.01788
}

Semantic roles & 50–950 ramp

primary
#40142E
secondary
#387852
accent
#DC874C
background
#F7F5F6
surface
#EDE8EB
border
#C8C4C6
text
#090306
muted
#7B787A

Preview Lab

Preview with #40142E

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

Preview Lab → · Contrast checker → · Palette generator →

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