#40152A#40152A

#40152A is a dark, moderate pink. Relative luminance 0.018; OKLCH L 27.1% C 0.072 H 352.6°. Best body text is #FFFFFF at 15.46:1 contrast (WCAG AA passes).

Color values

HEX#40152A
RGBrgb(64, 21, 42)
HSLhsl(331, 51%, 17%)
HSVhsv(331, 67%, 25%)
CMYKcmyk(0%, 67.2%, 34.4%, 74.9%)
CIE-LABlab(14.37, 23.55, -3.63)
CIE-LCHlch(14.37, 23.83, 351.23°)
OKLaboklab(27.12% 0.0716 -0.0093)
OKLCHoklch(27.12% 0.072 352.6)
XYZxyz(2.8006, 1.7938, 2.3888)
Luminance0.0179 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40152A #15402B
analogous
#401540 #40152A #401615
triadic
#40152A #2A4015 #152A40
tetradic
#40152A #404015 #15402B #161540
square
#40152A #404015 #15402B #161540
split-complementary
#40152A #154016 #154040
monochromatic
#17080F #17080F #40152A #6E2448 #9C3366

Accessibility & contrast

On white

15.46
#40152A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40152A
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40152A#FFFFFF#000000##FFFFFF
##40152A1.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B1F2B
Deuteranopia (green-blind)
#272729
Tritanopia (blue-blind)
#45131D
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #40152a;
/* rgb */ color: rgb(64, 21, 42);
/* oklch */ color: oklch(27.1% 0.072 352.6);
Tailwind
colors: {
  custom: {
    50: '#775563',
    500: '#40152a',
    950: '#000000',
  },
}
SCSS
$custom: #40152a;
$custom-light: #775563;
$custom-dark: #000000;
JSON
{
  "hex": "#40152a",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 42
  },
  "hsl": {
    "h": 330.698,
    "s": 50.588,
    "l": 16.667
  },
  "oklch": {
    "l": 0.27122,
    "c": 0.07216,
    "h": 352.6
  },
  "luminance": 0.01793
}

Semantic roles & 50–950 ramp

primary
#40152A
secondary
#397859
accent
#DA964E
background
#F7F5F5
surface
#EDE9EA
border
#C8C5C6
text
#090305
muted
#7B7879

Preview Lab

Preview with #40152A

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

Preview Lab → · Contrast checker → · Palette generator →

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