#40142C#40142C

#40142C is a dark, moderate pink. Relative luminance 0.018; OKLCH L 27.1% C 0.075 H 349.5°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#40142C
RGBrgb(64, 20, 44)
HSLhsl(327, 52%, 16%)
HSVhsv(327, 69%, 25%)
CMYKcmyk(0%, 68.8%, 31.2%, 74.9%)
CIE-LABlab(14.24, 24.41, -5.27)
CIE-LCHlch(14.24, 24.97, 347.82°)
OKLaboklab(27.06% 0.074 -0.0138)
OKLCHoklch(27.06% 0.075 349.5)
XYZxyz(2.8192, 1.7724, 2.5760)
Luminance0.0177 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40142C #144028
analogous
#3E1440 #40142C #401416
triadic
#40142C #2C4014 #142C40
tetradic
#40142C #403E14 #144028 #141640
square
#40142C #403E14 #144028 #141640
split-complementary
#40142C #164014 #14403E
monochromatic
#170710 #170710 #40142C #6F234C #9D316C

Accessibility & contrast

On white

15.51
#40142C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#40142C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40142C
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40142C#FFFFFF#000000##FFFFFF
##40142C1.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#191F2D
Deuteranopia (green-blind)
#26272B
Tritanopia (blue-blind)
#45121E
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #40142c;
/* rgb */ color: rgb(64, 20, 44);
/* oklch */ color: oklch(27.1% 0.075 349.5);
Tailwind
colors: {
  custom: {
    50: '#775465',
    500: '#40142c',
    950: '#000000',
  },
}
SCSS
$custom: #40142c;
$custom-light: #775465;
$custom-dark: #000000;
JSON
{
  "hex": "#40142c",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 44
  },
  "hsl": {
    "h": 327.273,
    "s": 52.381,
    "l": 16.471
  },
  "oklch": {
    "l": 0.2706,
    "c": 0.07522,
    "h": 349.5
  },
  "luminance": 0.01772
}

Semantic roles & 50–950 ramp

primary
#40142C
secondary
#387855
accent
#DC8D4C
background
#F7F5F6
surface
#EDE8EB
border
#C8C4C6
text
#090305
muted
#7B787A

Preview Lab

Preview with #40142C

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

Preview Lab → · Contrast checker → · Palette generator →

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