#40182F#40182F

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

Color values

HEX#40182F
RGBrgb(64, 24, 47)
HSLhsl(326, 45%, 17%)
HSVhsv(326, 63%, 25%)
CMYKcmyk(0%, 62.5%, 26.6%, 74.9%)
CIE-LABlab(15.22, 22.65, -5.97)
CIE-LCHlch(15.22, 23.43, 345.24°)
OKLaboklab(27.82% 0.0681 -0.0157)
OKLCHoklch(27.82% 0.07 347)
XYZxyz(2.9542, 1.9488, 2.9093)
Luminance0.0195 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40182F #184029
analogous
#3D1840 #40182F #40181B
triadic
#40182F #2F4018 #182F40
tetradic
#40182F #403D18 #184029 #181B40
square
#40182F #403D18 #184029 #181B40
split-complementary
#40182F #1B4018 #18403D
monochromatic
#160810 #160810 #40182F #6D2950 #993970

Accessibility & contrast

On white

15.11
#40182F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40182F
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40182F#FFFFFF#000000##FFFFFF
##40182F1.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2230
Deuteranopia (green-blind)
#27292E
Tritanopia (blue-blind)
#441721
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #40182f;
/* rgb */ color: rgb(64, 24, 47);
/* oklch */ color: oklch(27.8% 0.070 347.0);
Tailwind
colors: {
  custom: {
    50: '#765767',
    500: '#40182f',
    950: '#000000',
  },
}
SCSS
$custom: #40182f;
$custom-light: #765767;
$custom-dark: #000000;
JSON
{
  "hex": "#40182f",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 47
  },
  "hsl": {
    "h": 325.5,
    "s": 45.455,
    "l": 17.255
  },
  "oklch": {
    "l": 0.27823,
    "c": 0.06987,
    "h": 347
  },
  "luminance": 0.01948
}

Semantic roles & 50–950 ramp

primary
#40182F
secondary
#3D7756
accent
#D58A53
background
#F7F5F6
surface
#EDE9EB
border
#C8C5C6
text
#090306
muted
#7B787A

Preview Lab

Preview with #40182F

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

Preview Lab → · Contrast checker → · Palette generator →

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