#40403F#40403F

#40403F is a dark, near-neutral grey. Relative luminance 0.051; OKLCH L 37.1% C 0.002 H 106.6°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#40403F
RGBrgb(64, 64, 63)
HSLhsl(60, 1%, 25%)
HSVhsv(60, 2%, 25%)
CMYKcmyk(0%, 0%, 1.6%, 74.9%)
CIE-LABlab(27.06, -0.22, 0.61)
CIE-LCHlch(27.06, 0.65, 110.09°)
OKLaboklab(37.11% -0.0005 0.0016)
OKLCHoklch(37.11% 0.002 106.6)
XYZxyz(4.8448, 5.1157, 5.4339)
Luminance0.0512 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40403F #3F3F40
analogous
#40403F #40403F #40403F
triadic
#40403F #3F4040 #403F40
tetradic
#40403F #3F4040 #3F3F40 #403F40
square
#40403F #3F4040 #3F3F40 #403F40
split-complementary
#40403F #3F4040 #403F40
monochromatic
#0F0F0F #212121 #40403F #5F5F5D #7E7E7C

Accessibility & contrast

On white

10.38
#40403F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#40403F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40403F
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40403F#FFFFFF#000000##FFFFFF
##40403F1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#40403F
Deuteranopia (green-blind)
#40403F
Tritanopia (blue-blind)
#404040
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #40403f;
/* rgb */ color: rgb(64, 64, 63);
/* oklch */ color: oklch(37.1% 0.002 106.6);
Tailwind
colors: {
  custom: {
    50: '#747474',
    500: '#40403f',
    950: '#000000',
  },
}
SCSS
$custom: #40403f;
$custom-light: #747474;
$custom-dark: #000000;
JSON
{
  "hex": "#40403f",
  "rgb": {
    "r": 64,
    "g": 64,
    "b": 63
  },
  "hsl": {
    "h": 60,
    "s": 0.787,
    "l": 24.902
  },
  "oklch": {
    "l": 0.37114,
    "c": 0.00168,
    "h": 106.6
  },
  "luminance": 0.05116
}

Semantic roles & 50–950 ramp

primary
#40403F
secondary
#6D6D6E
accent
#7EAA7E
background
#F7F7F7
surface
#EDEDED
border
#C8C8C8
text
#080808
muted
#7B7B7B

Preview Lab

Preview with #40403F

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

Preview Lab → · Contrast checker → · Palette generator →

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