#40182E#40182E

#40182E is a dark, moderate pink. Relative luminance 0.019; OKLCH L 27.8% C 0.069 H 348.4°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#40182E
RGBrgb(64, 24, 46)
HSLhsl(327, 45%, 17%)
HSVhsv(327, 63%, 25%)
CMYKcmyk(0%, 62.5%, 28.1%, 74.9%)
CIE-LABlab(15.17, 22.48, -5.32)
CIE-LCHlch(15.17, 23.10, 346.70°)
OKLaboklab(27.78% 0.0677 -0.0139)
OKLCHoklch(27.78% 0.069 348.4)
XYZxyz(2.9342, 1.9408, 2.8043)
Luminance0.0194 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40182E #18402A
analogous
#3E1840 #40182E #40181A
triadic
#40182E #2E4018 #182E40
tetradic
#40182E #403E18 #18402A #181A40
square
#40182E #403E18 #18402A #181A40
split-complementary
#40182E #1A4018 #18403E
monochromatic
#160810 #160810 #40182E #6D294E #99396E

Accessibility & contrast

On white

15.13
#40182E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40182E
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40182E#FFFFFF#000000##FFFFFF
##40182E1.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C222F
Deuteranopia (green-blind)
#27292D
Tritanopia (blue-blind)
#451721
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #40182e;
/* rgb */ color: rgb(64, 24, 46);
/* oklch */ color: oklch(27.8% 0.069 348.4);
Tailwind
colors: {
  custom: {
    50: '#765766',
    500: '#40182e',
    950: '#000000',
  },
}
SCSS
$custom: #40182e;
$custom-light: #765766;
$custom-dark: #000000;
JSON
{
  "hex": "#40182e",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 46
  },
  "hsl": {
    "h": 327,
    "s": 45.455,
    "l": 17.255
  },
  "oklch": {
    "l": 0.27777,
    "c": 0.06916,
    "h": 348.4
  },
  "luminance": 0.01941
}

Semantic roles & 50–950 ramp

primary
#40182E
secondary
#3D7757
accent
#D58D53
background
#F7F5F6
surface
#EDE9EB
border
#C8C5C6
text
#090306
muted
#7B787A

Preview Lab

Preview with #40182E

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

Preview Lab → · Contrast checker → · Palette generator →

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