#40142F#40142F

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

Color values

HEX#40142F
RGBrgb(64, 20, 47)
HSLhsl(323, 52%, 16%)
HSVhsv(323, 69%, 25%)
CMYKcmyk(0%, 68.8%, 26.6%, 74.9%)
CIE-LABlab(14.38, 24.90, -7.24)
CIE-LCHlch(14.38, 25.93, 343.78°)
OKLaboklab(27.2% 0.0749 -0.0192)
OKLCHoklch(27.2% 0.077 345.6)
XYZxyz(2.8777, 1.7958, 2.8838)
Luminance0.0180 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40142F #144025
analogous
#3B1440 #40142F #401419
triadic
#40142F #2F4014 #142F40
tetradic
#40142F #403B14 #144025 #141940
square
#40142F #403B14 #144025 #141940
split-complementary
#40142F #194014 #14403B
monochromatic
#170711 #170711 #40142F #6F2351 #9D3173

Accessibility & contrast

On white

15.45
#40142F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40142F
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40142F#FFFFFF#000000##FFFFFF
##40142F1.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40142f;
/* rgb */ color: rgb(64, 20, 47);
/* oklch */ color: oklch(27.2% 0.077 345.6);
Tailwind
colors: {
  custom: {
    50: '#775467',
    500: '#40142f',
    950: '#000000',
  },
}
SCSS
$custom: #40142f;
$custom-light: #775467;
$custom-dark: #000000;
JSON
{
  "hex": "#40142f",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 47
  },
  "hsl": {
    "h": 323.182,
    "s": 52.381,
    "l": 16.471
  },
  "oklch": {
    "l": 0.27201,
    "c": 0.07733,
    "h": 345.6
  },
  "luminance": 0.01796
}

Semantic roles & 50–950 ramp

primary
#40142F
secondary
#387851
accent
#DC844C
background
#F7F5F6
surface
#EDE8EB
border
#C8C4C6
text
#090306
muted
#7B787A

Preview Lab

Preview with #40142F

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

Preview Lab → · Contrast checker → · Palette generator →

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