#40062F#40062F

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

Color values

HEX#40062F
RGBrgb(64, 6, 47)
HSLhsl(318, 83%, 14%)
HSVhsv(318, 91%, 25%)
CMYKcmyk(0%, 90.6%, 26.6%, 74.9%)
CIE-LABlab(12.13, 31.18, -10.69)
CIE-LCHlch(12.13, 32.96, 341.07°)
OKLaboklab(25.56% 0.0942 -0.0287)
OKLCHoklch(25.56% 0.098 343.1)
XYZxyz(2.6927, 1.4258, 2.8222)
Luminance0.0143 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40062F #064017
analogous
#340640 #40062F #400612
triadic
#40062F #2F4006 #062F40
tetradic
#40062F #403406 #064017 #061240
square
#40062F #403406 #064017 #061240
split-complementary
#40062F #124006 #064034
monochromatic
#1C0315 #1C0315 #40062F #780B58 #B01081

Accessibility & contrast

On white

16.34
#40062F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40062F
16.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40062F#FFFFFF#000000##FFFFFF
##40062F1.0016.341.2916.34
#FFFFFF16.341.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D1A30
Deuteranopia (green-blind)
#1F232E
Tritanopia (blue-blind)
#45061A
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #40062f;
/* rgb */ color: rgb(64, 6, 47);
/* oklch */ color: oklch(25.6% 0.098 343.1);
Tailwind
colors: {
  custom: {
    50: '#784e67',
    500: '#40062f',
    950: '#000000',
  },
}
SCSS
$custom: #40062f;
$custom-light: #784e67;
$custom-dark: #000000;
JSON
{
  "hex": "#40062f",
  "rgb": {
    "r": 64,
    "g": 6,
    "b": 47
  },
  "hsl": {
    "h": 317.586,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.25559,
    "c": 0.09844,
    "h": 343.1
  },
  "luminance": 0.01425
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #40062F

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

Preview Lab → · Contrast checker → · Palette generator →

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