#40062B#40062B

#40062B is a dark, moderate pink. Relative luminance 0.014; OKLCH L 25.3% C 0.096 H 347.1°. Best body text is #FFFFFF at 16.42:1 contrast (WCAG AA passes).

Color values

HEX#40062B
RGBrgb(64, 6, 43)
HSLhsl(322, 83%, 14%)
HSVhsv(322, 91%, 25%)
CMYKcmyk(0%, 90.6%, 32.8%, 74.9%)
CIE-LABlab(11.92, 30.59, -8.06)
CIE-LCHlch(11.92, 31.64, 345.24°)
OKLaboklab(25.35% 0.0933 -0.0213)
OKLCHoklch(25.35% 0.096 347.1)
XYZxyz(2.6157, 1.3950, 2.4165)
Luminance0.0140 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40062B #06401B
analogous
#380640 #40062B #40060E
triadic
#40062B #2B4006 #062B40
tetradic
#40062B #403806 #06401B #060E40
square
#40062B #403806 #06401B #060E40
split-complementary
#40062B #0E4006 #064038
monochromatic
#1C0313 #1C0313 #40062B #780B51 #B01076

Accessibility & contrast

On white

16.42
#40062B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40062B
16.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40062B#FFFFFF#000000##FFFFFF
##40062B1.0016.421.2816.42
#FFFFFF16.421.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F192C
Deuteranopia (green-blind)
#21232A
Tritanopia (blue-blind)
#450417
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #40062b;
/* rgb */ color: rgb(64, 6, 43);
/* oklch */ color: oklch(25.3% 0.096 347.1);
Tailwind
colors: {
  custom: {
    50: '#784e64',
    500: '#40062b',
    950: '#000000',
  },
}
SCSS
$custom: #40062b;
$custom-light: #784e64;
$custom-dark: #000000;
JSON
{
  "hex": "#40062b",
  "rgb": {
    "r": 64,
    "g": 6,
    "b": 43
  },
  "hsl": {
    "h": 321.724,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.25345,
    "c": 0.09572,
    "h": 347.1
  },
  "luminance": 0.01395
}

Semantic roles & 50–950 ramp

primary
#40062B
secondary
#228044
accent
#F9782F
background
#F7F4F5
surface
#EDE7EA
border
#C8C3C6
text
#090205
muted
#7B7879

Preview Lab

Preview with #40062B

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

Preview Lab → · Contrast checker → · Palette generator →

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