#40032E#40032E

#40032E is a dark, moderate pink. Relative luminance 0.014; OKLCH L 25.2% C 0.102 H 343.7°. Best body text is #FFFFFF at 16.53:1 contrast (WCAG AA passes).

Color values

HEX#40032E
RGBrgb(64, 3, 46)
HSLhsl(318, 91%, 13%)
HSVhsv(318, 95%, 25%)
CMYKcmyk(0%, 95.3%, 28.1%, 74.9%)
CIE-LABlab(11.64, 32.29, -10.71)
CIE-LCHlch(11.64, 34.02, 341.65°)
OKLaboklab(25.19% 0.0979 -0.0287)
OKLCHoklch(25.19% 0.102 343.7)
XYZxyz(2.6402, 1.3527, 2.7063)
Luminance0.0135 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40032E #034015
analogous
#330340 #40032E #40030F
triadic
#40032E #2E4003 #032E40
tetradic
#40032E #403303 #034015 #030F40
square
#40032E #403303 #034015 #030F40
split-complementary
#40032E #0F4003 #034033
monochromatic
#1D0115 #1D0115 #40032E #7A0658 #B50882

Accessibility & contrast

On white

16.53
#40032E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#40032E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40032E
16.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40032E#FFFFFF#000000##FFFFFF
##40032E1.0016.531.2716.53
#FFFFFF16.531.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A182F
Deuteranopia (green-blind)
#1F222D
Tritanopia (blue-blind)
#450318
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #40032e;
/* rgb */ color: rgb(64, 3, 46);
/* oklch */ color: oklch(25.2% 0.102 343.7);
Tailwind
colors: {
  custom: {
    50: '#784c66',
    500: '#40032e',
    950: '#000000',
  },
}
SCSS
$custom: #40032e;
$custom-light: #784c66;
$custom-dark: #000000;
JSON
{
  "hex": "#40032e",
  "rgb": {
    "r": 64,
    "g": 3,
    "b": 46
  },
  "hsl": {
    "h": 317.705,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.25189,
    "c": 0.10202,
    "h": 343.7
  },
  "luminance": 0.01352
}

Semantic roles & 50–950 ramp

primary
#40032E
secondary
#1D823B
accent
#FF6829
background
#F7F4F6
surface
#EEE7EB
border
#C9C3C6
text
#090106
muted
#7B777A

Preview Lab

Preview with #40032E

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

Preview Lab → · Contrast checker → · Palette generator →

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