#404247#404247

#404247 is a dark, near-neutral grey. Relative luminance 0.054; OKLCH L 37.9% C 0.009 H 268.5°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#404247
RGBrgb(64, 66, 71)
HSLhsl(223, 5%, 26%)
HSVhsv(223, 10%, 28%)
CMYKcmyk(9.9%, 7%, 0%, 72.2%)
CIE-LABlab(27.96, 0.34, -3.31)
CIE-LCHlch(27.96, 3.33, 275.86°)
OKLaboklab(37.91% -0.0002 -0.0089)
OKLCHoklch(37.91% 0.009 268.5)
XYZxyz(5.1997, 5.4413, 6.7364)
Luminance0.0544 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404247 #474540
analogous
#404647 #404247 #424047
triadic
#404247 #474042 #424740
tetradic
#404247 #474046 #474540 #404742
square
#404247 #474046 #474540 #404742
split-complementary
#404247 #474240 #464740
monochromatic
#0F0F10 #232427 #404247 #5D6067 #7A7E87

Accessibility & contrast

On white

10.06
#404247 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#404247 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404247
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404247#FFFFFF#000000##FFFFFF
##4042471.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#414247
Deuteranopia (green-blind)
#404247
Tritanopia (blue-blind)
#3E4344
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #404247;
/* rgb */ color: rgb(64, 66, 71);
/* oklch */ color: oklch(37.9% 0.009 268.5);
Tailwind
colors: {
  custom: {
    50: '#74767a',
    500: '#404247',
    950: '#000000',
  },
}
SCSS
$custom: #404247;
$custom-light: #74767a;
$custom-dark: #000000;
JSON
{
  "hex": "#404247",
  "rgb": {
    "r": 64,
    "g": 66,
    "b": 71
  },
  "hsl": {
    "h": 222.857,
    "s": 5.185,
    "l": 26.471
  },
  "oklch": {
    "l": 0.37905,
    "c": 0.00889,
    "h": 268.5
  },
  "luminance": 0.05441
}

Semantic roles & 50–950 ramp

primary
#404247
secondary
#76736D
accent
#9F79AE
background
#F7F7F7
surface
#EDEDED
border
#C8C8C8
text
#080809
muted
#7B7B7B

Preview Lab

Preview with #404247

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

Preview Lab → · Contrast checker → · Palette generator →

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