#404842#404842

#404842 is a dark, near-neutral grey. Relative luminance 0.061; OKLCH L 39.2% C 0.014 H 153.2°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#404842
RGBrgb(64, 72, 66)
HSLhsl(135, 6%, 27%)
HSVhsv(135, 11%, 28%)
CMYKcmyk(11.1%, 0%, 8.3%, 71.8%)
CIE-LABlab(29.71, -4.63, 2.49)
CIE-LCHlch(29.71, 5.26, 151.67°)
OKLaboklab(39.23% -0.0129 0.0065)
OKLCHoklch(39.23% 0.014 153.2)
XYZxyz(5.4149, 6.1180, 6.0488)
Luminance0.0612 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404842 #484046
analogous
#424840 #404842 #404846
triadic
#404842 #424048 #484240
tetradic
#404842 #404248 #484046 #484640
square
#404842 #404248 #484046 #484640
split-complementary
#404842 #464048 #484042
monochromatic
#0E100F #232824 #404842 #5D6860 #7A897E

Accessibility & contrast

On white

9.44
#404842 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#404842 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404842
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404842#FFFFFF#000000##FFFFFF
##4048421.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#484742
Deuteranopia (green-blind)
#474642
Tritanopia (blue-blind)
#3F4846
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #404842;
/* rgb */ color: rgb(64, 72, 66);
/* oklch */ color: oklch(39.2% 0.014 153.2);
Tailwind
colors: {
  custom: {
    50: '#747b76',
    500: '#404842',
    950: '#000000',
  },
}
SCSS
$custom: #404842;
$custom-light: #747b76;
$custom-dark: #000000;
JSON
{
  "hex": "#404842",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 66
  },
  "hsl": {
    "h": 135,
    "s": 5.882,
    "l": 26.667
  },
  "oklch": {
    "l": 0.39233,
    "c": 0.01444,
    "h": 153.2
  },
  "luminance": 0.06118
}

Semantic roles & 50–950 ramp

primary
#404842
secondary
#776D74
accent
#79A1AF
background
#F7F7F7
surface
#EDEDED
border
#C8C8C8
text
#080908
muted
#7B7B7B

Preview Lab

Preview with #404842

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

Preview Lab → · Contrast checker → · Palette generator →

#404842 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva