#40152B#40152B

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

Color values

HEX#40152B
RGBrgb(64, 21, 43)
HSLhsl(329, 51%, 17%)
HSVhsv(329, 67%, 25%)
CMYKcmyk(0%, 67.2%, 32.8%, 74.9%)
CIE-LABlab(14.41, 23.70, -4.30)
CIE-LCHlch(14.41, 24.09, 349.72°)
OKLaboklab(27.17% 0.0719 -0.0111)
OKLCHoklch(27.17% 0.073 351.2)
XYZxyz(2.8187, 1.8010, 2.4842)
Luminance0.0180 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40152B #15402A
analogous
#401540 #40152B #401516
triadic
#40152B #2B4015 #152B40
tetradic
#40152B #404015 #15402A #151640
square
#40152B #404015 #15402A #151640
split-complementary
#40152B #164015 #154040
monochromatic
#17080F #17080F #40152B #6E244A #9C3369

Accessibility & contrast

On white

15.44
#40152B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40152B
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40152B#FFFFFF#000000##FFFFFF
##40152B1.0015.441.3615.44
#FFFFFF15.441.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B202C
Deuteranopia (green-blind)
#26272A
Tritanopia (blue-blind)
#45131E
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #40152b;
/* rgb */ color: rgb(64, 21, 43);
/* oklch */ color: oklch(27.2% 0.073 351.2);
Tailwind
colors: {
  custom: {
    50: '#775564',
    500: '#40152b',
    950: '#000000',
  },
}
SCSS
$custom: #40152b;
$custom-light: #775564;
$custom-dark: #000000;
JSON
{
  "hex": "#40152b",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 43
  },
  "hsl": {
    "h": 329.302,
    "s": 50.588,
    "l": 16.667
  },
  "oklch": {
    "l": 0.27166,
    "c": 0.07277,
    "h": 351.2
  },
  "luminance": 0.01801
}

Semantic roles & 50–950 ramp

primary
#40152B
secondary
#397858
accent
#DA924E
background
#F7F5F5
surface
#EDE9EA
border
#C8C5C6
text
#090305
muted
#7B7879

Preview Lab

Preview with #40152B

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

Preview Lab → · Contrast checker → · Palette generator →

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