#40082B#40082B

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

Color values

HEX#40082B
RGBrgb(64, 8, 43)
HSLhsl(323, 78%, 14%)
HSVhsv(323, 88%, 25%)
CMYKcmyk(0%, 87.5%, 32.8%, 74.9%)
CIE-LABlab(12.21, 29.77, -7.62)
CIE-LCHlch(12.21, 30.73, 345.64°)
OKLaboklab(25.55% 0.0908 -0.0201)
OKLCHoklch(25.55% 0.093 347.5)
XYZxyz(2.6374, 1.4384, 2.4238)
Luminance0.0144 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40082B #08401D
analogous
#390840 #40082B #40080F
triadic
#40082B #2B4008 #082B40
tetradic
#40082B #403908 #08401D #080F40
square
#40082B #403908 #08401D #080F40
split-complementary
#40082B #0F4008 #084039
monochromatic
#1B0312 #1B0312 #40082B #760F50 #AD1674

Accessibility & contrast

On white

16.31
#40082B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40082B
16.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40082B#FFFFFF#000000##FFFFFF
##40082B1.0016.311.2916.31
#FFFFFF16.311.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#111A2C
Deuteranopia (green-blind)
#21232A
Tritanopia (blue-blind)
#450618
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #40082b;
/* rgb */ color: rgb(64, 8, 43);
/* oklch */ color: oklch(25.6% 0.093 347.5);
Tailwind
colors: {
  custom: {
    50: '#784e64',
    500: '#40082b',
    950: '#000000',
  },
}
SCSS
$custom: #40082b;
$custom-light: #784e64;
$custom-dark: #000000;
JSON
{
  "hex": "#40082b",
  "rgb": {
    "r": 64,
    "g": 8,
    "b": 43
  },
  "hsl": {
    "h": 322.5,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.25553,
    "c": 0.09296,
    "h": 347.5
  },
  "luminance": 0.01438
}

Semantic roles & 50–950 ramp

primary
#40082B
secondary
#257E47
accent
#F47C34
background
#F7F4F5
surface
#EDE7EA
border
#C8C3C6
text
#090205
muted
#7B7879

Preview Lab

Preview with #40082B

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

Preview Lab → · Contrast checker → · Palette generator →

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