#40202C#40202C

#40202C is a dark, muted pink. Relative luminance 0.023; OKLCH L 29.1% C 0.052 H 356.9°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#40202C
RGBrgb(64, 32, 44)
HSLhsl(338, 33%, 19%)
HSVhsv(338, 50%, 25%)
CMYKcmyk(0%, 50%, 31.2%, 74.9%)
CIE-LABlab(17.01, 17.21, -1.15)
CIE-LCHlch(17.01, 17.24, 356.18°)
OKLaboklab(29.13% 0.052 -0.0028)
OKLCHoklch(29.13% 0.052 356.9)
XYZxyz(3.0856, 2.3051, 2.6648)
Luminance0.0231 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40202C #204034
analogous
#40203C #40202C #402420
triadic
#40202C #2C4020 #202C40
tetradic
#40202C #3C4020 #204034 #242040
square
#40202C #3C4020 #204034 #242040
split-complementary
#40202C #204024 #203C40
monochromatic
#140A0E #170C10 #40202C #693448 #924964

Accessibility & contrast

On white

14.37
#40202C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#40202C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40202C
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40202C#FFFFFF#000000##FFFFFF
##40202C1.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24262C
Deuteranopia (green-blind)
#2C2C2B
Tritanopia (blue-blind)
#451E24
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #40202c;
/* rgb */ color: rgb(64, 32, 44);
/* oklch */ color: oklch(29.1% 0.052 356.9);
Tailwind
colors: {
  custom: {
    50: '#765c65',
    500: '#40202c',
    950: '#000000',
  },
}
SCSS
$custom: #40202c;
$custom-light: #765c65;
$custom-dark: #000000;
JSON
{
  "hex": "#40202c",
  "rgb": {
    "r": 64,
    "g": 32,
    "b": 44
  },
  "hsl": {
    "h": 337.5,
    "s": 33.333,
    "l": 18.824
  },
  "oklch": {
    "l": 0.29134,
    "c": 0.05204,
    "h": 356.9
  },
  "luminance": 0.02305
}

Semantic roles & 50–950 ramp

primary
#40202C
secondary
#487463
accent
#C9A15E
background
#F7F5F6
surface
#EDE9EB
border
#C8C5C6
text
#080405
muted
#7B797A

Preview Lab

Preview with #40202C

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

Preview Lab → · Contrast checker → · Palette generator →

#40202C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva