#40152F#40152F

#40152F is a dark, moderate pink. Relative luminance 0.018; OKLCH L 27.4% C 0.076 H 346.0°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#40152F
RGBrgb(64, 21, 47)
HSLhsl(324, 51%, 17%)
HSVhsv(324, 67%, 25%)
CMYKcmyk(0%, 67.2%, 26.6%, 74.9%)
CIE-LABlab(14.58, 24.36, -6.94)
CIE-LCHlch(14.58, 25.33, 344.11°)
OKLaboklab(27.35% 0.0733 -0.0183)
OKLCHoklch(27.35% 0.076 346)
XYZxyz(2.8957, 1.8318, 2.8898)
Luminance0.0183 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40152F #154026
analogous
#3C1540 #40152F #40151A
triadic
#40152F #2F4015 #152F40
tetradic
#40152F #403C15 #154026 #151A40
square
#40152F #403C15 #154026 #151A40
split-complementary
#40152F #1A4015 #15403C
monochromatic
#170811 #170811 #40152F #6E2451 #9C3373

Accessibility & contrast

On white

15.37
#40152F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#40152F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40152F
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40152F#FFFFFF#000000##FFFFFF
##40152F1.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192030
Deuteranopia (green-blind)
#25272E
Tritanopia (blue-blind)
#45141F
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #40152f;
/* rgb */ color: rgb(64, 21, 47);
/* oklch */ color: oklch(27.4% 0.076 346.0);
Tailwind
colors: {
  custom: {
    50: '#775567',
    500: '#40152f',
    950: '#000000',
  },
}
SCSS
$custom: #40152f;
$custom-light: #775567;
$custom-dark: #000000;
JSON
{
  "hex": "#40152f",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 47
  },
  "hsl": {
    "h": 323.721,
    "s": 50.588,
    "l": 16.667
  },
  "oklch": {
    "l": 0.2735,
    "c": 0.07552,
    "h": 346
  },
  "luminance": 0.01832
}

Semantic roles & 50–950 ramp

primary
#40152F
secondary
#397852
accent
#DA854E
background
#F7F5F6
surface
#EDE9EB
border
#C8C5C6
text
#090306
muted
#7B787A

Preview Lab

Preview with #40152F

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

Preview Lab → · Contrast checker → · Palette generator →

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