#40152C#40152C

#40152C is a dark, moderate pink. Relative luminance 0.018; OKLCH L 27.2% C 0.073 H 349.9°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#40152C
RGBrgb(64, 21, 44)
HSLhsl(328, 51%, 17%)
HSVhsv(328, 67%, 25%)
CMYKcmyk(0%, 67.2%, 31.2%, 74.9%)
CIE-LABlab(14.45, 23.86, -4.96)
CIE-LCHlch(14.45, 24.38, 348.25°)
OKLaboklab(27.21% 0.0723 -0.0129)
OKLCHoklch(27.21% 0.073 349.9)
XYZxyz(2.8373, 1.8084, 2.5820)
Luminance0.0181 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40152C #154029
analogous
#3F1540 #40152C #401517
triadic
#40152C #2C4015 #152C40
tetradic
#40152C #403F15 #154029 #151740
square
#40152C #403F15 #154029 #151740
split-complementary
#40152C #174015 #15403F
monochromatic
#170810 #170810 #40152C #6E244C #9C336B

Accessibility & contrast

On white

15.42
#40152C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#40152C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40152C
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40152C#FFFFFF#000000##FFFFFF
##40152C1.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A202D
Deuteranopia (green-blind)
#26272B
Tritanopia (blue-blind)
#45131E
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #40152c;
/* rgb */ color: rgb(64, 21, 44);
/* oklch */ color: oklch(27.2% 0.073 349.9);
Tailwind
colors: {
  custom: {
    50: '#775565',
    500: '#40152c',
    950: '#000000',
  },
}
SCSS
$custom: #40152c;
$custom-light: #775565;
$custom-dark: #000000;
JSON
{
  "hex": "#40152c",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 44
  },
  "hsl": {
    "h": 327.907,
    "s": 50.588,
    "l": 16.667
  },
  "oklch": {
    "l": 0.27211,
    "c": 0.07341,
    "h": 349.9
  },
  "luminance": 0.01808
}

Semantic roles & 50–950 ramp

primary
#40152C
secondary
#397856
accent
#DA8F4E
background
#F7F5F6
surface
#EDE9EB
border
#C8C5C6
text
#090305
muted
#7B787A

Preview Lab

Preview with #40152C

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

Preview Lab → · Contrast checker → · Palette generator →

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