#40082C#40082C

#40082C is a dark, moderate pink. Relative luminance 0.014; OKLCH L 25.6% C 0.094 H 346.4°. Best body text is #FFFFFF at 16.29:1 contrast (WCAG AA passes).

Color values

HEX#40082C
RGBrgb(64, 8, 44)
HSLhsl(321, 78%, 14%)
HSVhsv(321, 88%, 25%)
CMYKcmyk(0%, 87.5%, 31.2%, 74.9%)
CIE-LABlab(12.26, 29.92, -8.29)
CIE-LCHlch(12.26, 31.05, 344.52°)
OKLaboklab(25.6% 0.091 -0.0219)
OKLCHoklch(25.6% 0.094 346.4)
XYZxyz(2.6559, 1.4458, 2.5216)
Luminance0.0145 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40082C #08401C
analogous
#380840 #40082C #400810
triadic
#40082C #2C4008 #082C40
tetradic
#40082C #403808 #08401C #081040
square
#40082C #403808 #08401C #081040
split-complementary
#40082C #104008 #084038
monochromatic
#1B0313 #1B0313 #40082C #760F51 #AD1677

Accessibility & contrast

On white

16.29
#40082C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#40082C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40082C
16.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40082C#FFFFFF#000000##FFFFFF
##40082C1.0016.291.2916.29
#FFFFFF16.291.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#101A2D
Deuteranopia (green-blind)
#21232B
Tritanopia (blue-blind)
#450619
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #40082c;
/* rgb */ color: rgb(64, 8, 44);
/* oklch */ color: oklch(25.6% 0.094 346.4);
Tailwind
colors: {
  custom: {
    50: '#784e65',
    500: '#40082c',
    950: '#000000',
  },
}
SCSS
$custom: #40082c;
$custom-light: #784e65;
$custom-dark: #000000;
JSON
{
  "hex": "#40082c",
  "rgb": {
    "r": 64,
    "g": 8,
    "b": 44
  },
  "hsl": {
    "h": 321.429,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.25604,
    "c": 0.09362,
    "h": 346.4
  },
  "luminance": 0.01446
}

Semantic roles & 50–950 ramp

primary
#40082C
secondary
#257E45
accent
#F47834
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090205
muted
#7B787A

Preview Lab

Preview with #40082C

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

Preview Lab → · Contrast checker → · Palette generator →

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