#40132C#40132C

#40132C is a dark, moderate pink. Relative luminance 0.017; OKLCH L 26.9% C 0.077 H 349.1°. Best body text is #FFFFFF at 15.58:1 contrast (WCAG AA passes).

Color values

HEX#40132C
RGBrgb(64, 19, 44)
HSLhsl(327, 54%, 16%)
HSVhsv(327, 70%, 25%)
CMYKcmyk(0%, 70.3%, 31.2%, 74.9%)
CIE-LABlab(14.05, 24.95, -5.57)
CIE-LCHlch(14.05, 25.56, 347.42°)
OKLaboklab(26.91% 0.0756 -0.0146)
OKLCHoklch(26.91% 0.077 349.1)
XYZxyz(2.8020, 1.7379, 2.5703)
Luminance0.0174 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40132C #134027
analogous
#3E1340 #40132C #401316
triadic
#40132C #2C4013 #132C40
tetradic
#40132C #403E13 #134027 #131640
square
#40132C #403E13 #134027 #131640
split-complementary
#40132C #164013 #13403E
monochromatic
#180710 #180710 #40132C #6F214C #9E2F6D

Accessibility & contrast

On white

15.58
#40132C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#40132C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40132C
15.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40132C#FFFFFF#000000##FFFFFF
##40132C1.0015.581.3515.58
#FFFFFF15.581.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#191F2D
Deuteranopia (green-blind)
#25272B
Tritanopia (blue-blind)
#45111D
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #40132c;
/* rgb */ color: rgb(64, 19, 44);
/* oklch */ color: oklch(26.9% 0.077 349.1);
Tailwind
colors: {
  custom: {
    50: '#775465',
    500: '#40132c',
    950: '#000000',
  },
}
SCSS
$custom: #40132c;
$custom-light: #775465;
$custom-dark: #000000;
JSON
{
  "hex": "#40132c",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 44
  },
  "hsl": {
    "h": 326.667,
    "s": 54.217,
    "l": 16.275
  },
  "oklch": {
    "l": 0.26913,
    "c": 0.07699,
    "h": 349.1
  },
  "luminance": 0.01738
}

Semantic roles & 50–950 ramp

primary
#40132C
secondary
#367954
accent
#DE8C4A
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090305
muted
#7B787A

Preview Lab

Preview with #40132C

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

Preview Lab → · Contrast checker → · Palette generator →

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