#40082F#40082F

#40082F is a dark, moderate pink. Relative luminance 0.015; OKLCH L 25.8% C 0.096 H 343.3°. Best body text is #FFFFFF at 16.23:1 contrast (WCAG AA passes).

Color values

HEX#40082F
RGBrgb(64, 8, 47)
HSLhsl(318, 78%, 14%)
HSVhsv(318, 88%, 25%)
CMYKcmyk(0%, 87.5%, 26.6%, 74.9%)
CIE-LABlab(12.41, 30.37, -10.25)
CIE-LCHlch(12.41, 32.06, 341.34°)
OKLaboklab(25.76% 0.0917 -0.0274)
OKLCHoklch(25.76% 0.096 343.3)
XYZxyz(2.7144, 1.4692, 2.8294)
Luminance0.0147 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40082F #084019
analogous
#350840 #40082F #400813
triadic
#40082F #2F4008 #082F40
tetradic
#40082F #403508 #084019 #081340
square
#40082F #403508 #084019 #081340
split-complementary
#40082F #134008 #084035
monochromatic
#1B0314 #1B0314 #40082F #760F57 #AD167F

Accessibility & contrast

On white

16.23
#40082F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40082F
16.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40082F#FFFFFF#000000##FFFFFF
##40082F1.0016.231.2916.23
#FFFFFF16.231.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1A30
Deuteranopia (green-blind)
#20242E
Tritanopia (blue-blind)
#45081A
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #40082f;
/* rgb */ color: rgb(64, 8, 47);
/* oklch */ color: oklch(25.8% 0.096 343.3);
Tailwind
colors: {
  custom: {
    50: '#784f67',
    500: '#40082f',
    950: '#000000',
  },
}
SCSS
$custom: #40082f;
$custom-light: #784f67;
$custom-dark: #000000;
JSON
{
  "hex": "#40082f",
  "rgb": {
    "r": 64,
    "g": 8,
    "b": 47
  },
  "hsl": {
    "h": 318.214,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.25763,
    "c": 0.0957,
    "h": 343.3
  },
  "luminance": 0.01469
}

Semantic roles & 50–950 ramp

primary
#40082F
secondary
#257E40
accent
#F46E34
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #40082F

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

Preview Lab → · Contrast checker → · Palette generator →

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