#40152D#40152D

#40152D is a dark, moderate pink. Relative luminance 0.018; OKLCH L 27.3% C 0.074 H 348.5°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#40152D
RGBrgb(64, 21, 45)
HSLhsl(327, 51%, 17%)
HSVhsv(327, 67%, 25%)
CMYKcmyk(0%, 67.2%, 29.7%, 74.9%)
CIE-LABlab(14.49, 24.02, -5.62)
CIE-LCHlch(14.49, 24.67, 346.83°)
OKLaboklab(27.26% 0.0726 -0.0147)
OKLCHoklch(27.26% 0.074 348.5)
XYZxyz(2.8563, 1.8161, 2.6822)
Luminance0.0182 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40152D #154028
analogous
#3E1540 #40152D #401518
triadic
#40152D #2D4015 #152D40
tetradic
#40152D #403E15 #154028 #151840
square
#40152D #403E15 #154028 #151840
split-complementary
#40152D #184015 #15403E
monochromatic
#170810 #170810 #40152D #6E244D #9C336E

Accessibility & contrast

On white

15.40
#40152D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40152D
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40152D#FFFFFF#000000##FFFFFF
##40152D1.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A202E
Deuteranopia (green-blind)
#26272C
Tritanopia (blue-blind)
#45141F
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #40152d;
/* rgb */ color: rgb(64, 21, 45);
/* oklch */ color: oklch(27.3% 0.074 348.5);
Tailwind
colors: {
  custom: {
    50: '#775565',
    500: '#40152d',
    950: '#000000',
  },
}
SCSS
$custom: #40152d;
$custom-light: #775565;
$custom-dark: #000000;
JSON
{
  "hex": "#40152d",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 45
  },
  "hsl": {
    "h": 326.512,
    "s": 50.588,
    "l": 16.667
  },
  "oklch": {
    "l": 0.27256,
    "c": 0.07409,
    "h": 348.5
  },
  "luminance": 0.01816
}

Semantic roles & 50–950 ramp

primary
#40152D
secondary
#397855
accent
#DA8C4E
background
#F7F5F6
surface
#EDE9EB
border
#C8C5C6
text
#090305
muted
#7B787A

Preview Lab

Preview with #40152D

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

Preview Lab → · Contrast checker → · Palette generator →

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