#40062E#40062E

#40062E is a dark, moderate pink. Relative luminance 0.014; OKLCH L 25.5% C 0.098 H 344.1°. Best body text is #FFFFFF at 16.36:1 contrast (WCAG AA passes).

Color values

HEX#40062E
RGBrgb(64, 6, 46)
HSLhsl(319, 83%, 14%)
HSVhsv(319, 91%, 25%)
CMYKcmyk(0%, 90.6%, 28.1%, 74.9%)
CIE-LABlab(12.08, 31.03, -10.04)
CIE-LCHlch(12.08, 32.61, 342.07°)
OKLaboklab(25.5% 0.094 -0.0268)
OKLCHoklch(25.5% 0.098 344.1)
XYZxyz(2.6727, 1.4178, 2.7171)
Luminance0.0142 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40062E #064018
analogous
#350640 #40062E #400611
triadic
#40062E #2E4006 #062E40
tetradic
#40062E #403506 #064018 #061140
square
#40062E #403506 #064018 #061140
split-complementary
#40062E #114006 #064035
monochromatic
#1C0314 #1C0314 #40062E #780B56 #B0107E

Accessibility & contrast

On white

16.36
#40062E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#40062E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40062E
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40062E#FFFFFF#000000##FFFFFF
##40062E1.0016.361.2816.36
#FFFFFF16.361.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D192F
Deuteranopia (green-blind)
#20232D
Tritanopia (blue-blind)
#450619
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #40062e;
/* rgb */ color: rgb(64, 6, 46);
/* oklch */ color: oklch(25.5% 0.098 344.1);
Tailwind
colors: {
  custom: {
    50: '#784e66',
    500: '#40062e',
    950: '#000000',
  },
}
SCSS
$custom: #40062e;
$custom-light: #784e66;
$custom-dark: #000000;
JSON
{
  "hex": "#40062e",
  "rgb": {
    "r": 64,
    "g": 6,
    "b": 46
  },
  "hsl": {
    "h": 318.621,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.25504,
    "c": 0.09774,
    "h": 344.1
  },
  "luminance": 0.01417
}

Semantic roles & 50–950 ramp

primary
#40062E
secondary
#22803F
accent
#F96D2F
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #40062E

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

Preview Lab → · Contrast checker → · Palette generator →

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