#40404A#40404A

#40404A is a dark, near-neutral grey. Relative luminance 0.053; OKLCH L 37.5% C 0.017 H 285.6°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#40404A
RGBrgb(64, 64, 74)
HSLhsl(240, 7%, 27%)
HSVhsv(240, 14%, 29%)
CMYKcmyk(13.5%, 13.5%, 0%, 71%)
CIE-LABlab(27.44, 2.38, -6.05)
CIE-LCHlch(27.44, 6.50, 291.44°)
OKLaboklab(37.53% 0.0046 -0.0163)
OKLCHoklch(37.53% 0.017 285.6)
XYZxyz(5.1835, 5.2512, 7.2177)
Luminance0.0525 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40404A #4A4A40
analogous
#40454A #40404A #45404A
triadic
#40404A #4A4040 #404A40
tetradic
#40404A #4A4045 #4A4A40 #404A45
square
#40404A #4A4045 #4A4A40 #404A45
split-complementary
#40404A #4A4540 #454A40
monochromatic
#0E0E10 #242429 #40404A #5C5C6B #79798B

Accessibility & contrast

On white

10.24
#40404A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#40404A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40404A
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40404A#FFFFFF#000000##FFFFFF
##40404A1.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E414A
Deuteranopia (green-blind)
#3D414A
Tritanopia (blue-blind)
#3E4243
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #40404a;
/* rgb */ color: rgb(64, 64, 74);
/* oklch */ color: oklch(37.5% 0.017 285.6);
Tailwind
colors: {
  custom: {
    50: '#74747c',
    500: '#40404a',
    950: '#000000',
  },
}
SCSS
$custom: #40404a;
$custom-light: #74747c;
$custom-dark: #000000;
JSON
{
  "hex": "#40404a",
  "rgb": {
    "r": 64,
    "g": 64,
    "b": 74
  },
  "hsl": {
    "h": 240,
    "s": 7.246,
    "l": 27.059
  },
  "oklch": {
    "l": 0.37534,
    "c": 0.01695,
    "h": 285.6
  },
  "luminance": 0.05251
}

Semantic roles & 50–950 ramp

primary
#40404A
secondary
#79796D
accent
#B077B0
background
#F7F7F7
surface
#EDEDEE
border
#C8C8C9
text
#080809
muted
#7B7B7B

Preview Lab

Preview with #40404A

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

Preview Lab → · Contrast checker → · Palette generator →

#40404A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva