#40182D#40182D

#40182D is a dark, moderate pink. Relative luminance 0.019; OKLCH L 27.7% C 0.068 H 349.8°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#40182D
RGBrgb(64, 24, 45)
HSLhsl(329, 45%, 17%)
HSVhsv(329, 63%, 25%)
CMYKcmyk(0%, 62.5%, 29.7%, 74.9%)
CIE-LABlab(15.13, 22.31, -4.66)
CIE-LCHlch(15.13, 22.80, 348.21°)
OKLaboklab(27.73% 0.0674 -0.0121)
OKLCHoklch(27.73% 0.068 349.8)
XYZxyz(2.9147, 1.9330, 2.7017)
Luminance0.0193 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40182D #18402B
analogous
#3F1840 #40182D #401819
triadic
#40182D #2D4018 #182D40
tetradic
#40182D #403F18 #18402B #181940
square
#40182D #403F18 #18402B #181940
split-complementary
#40182D #194018 #18403F
monochromatic
#160810 #160810 #40182D #6D294C #99396C

Accessibility & contrast

On white

15.14
#40182D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#40182D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40182D
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40182D#FFFFFF#000000##FFFFFF
##40182D1.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D222E
Deuteranopia (green-blind)
#27292C
Tritanopia (blue-blind)
#451720
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #40182d;
/* rgb */ color: rgb(64, 24, 45);
/* oklch */ color: oklch(27.7% 0.068 349.8);
Tailwind
colors: {
  custom: {
    50: '#765765',
    500: '#40182d',
    950: '#000000',
  },
}
SCSS
$custom: #40182d;
$custom-light: #765765;
$custom-dark: #000000;
JSON
{
  "hex": "#40182d",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 45
  },
  "hsl": {
    "h": 328.5,
    "s": 45.455,
    "l": 17.255
  },
  "oklch": {
    "l": 0.27733,
    "c": 0.06846,
    "h": 349.8
  },
  "luminance": 0.01933
}

Semantic roles & 50–950 ramp

primary
#40182D
secondary
#3D7758
accent
#D59153
background
#F7F5F6
surface
#EDE9EB
border
#C8C5C6
text
#090305
muted
#7B787A

Preview Lab

Preview with #40182D

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

Preview Lab → · Contrast checker → · Palette generator →

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