#404147#404147

#404147 is a dark, near-neutral grey. Relative luminance 0.053; OKLCH L 37.7% C 0.010 H 278.4°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#404147
RGBrgb(64, 65, 71)
HSLhsl(231, 5%, 26%)
HSVhsv(231, 10%, 28%)
CMYKcmyk(9.9%, 8.5%, 0%, 72.2%)
CIE-LABlab(27.64, 0.99, -3.78)
CIE-LCHlch(27.64, 3.91, 284.61°)
OKLaboklab(37.66% 0.0015 -0.0101)
OKLCHoklch(37.66% 0.01 278.4)
XYZxyz(5.1417, 5.3255, 6.7170)
Luminance0.0533 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404147 #474640
analogous
#404547 #404147 #434047
triadic
#404147 #474041 #414740
tetradic
#404147 #474045 #474640 #404743
square
#404147 #474045 #474640 #404743
split-complementary
#404147 #474340 #454740
monochromatic
#0F0F10 #232427 #404147 #5D5E67 #7A7C87

Accessibility & contrast

On white

10.17
#404147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#404147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404147
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404147#FFFFFF#000000##FFFFFF
##4041471.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#404247
Deuteranopia (green-blind)
#3F4147
Tritanopia (blue-blind)
#3F4243
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #404147;
/* rgb */ color: rgb(64, 65, 71);
/* oklch */ color: oklch(37.7% 0.010 278.4);
Tailwind
colors: {
  custom: {
    50: '#74757a',
    500: '#404147',
    950: '#000000',
  },
}
SCSS
$custom: #404147;
$custom-light: #74757a;
$custom-dark: #000000;
JSON
{
  "hex": "#404147",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 71
  },
  "hsl": {
    "h": 231.429,
    "s": 5.185,
    "l": 26.471
  },
  "oklch": {
    "l": 0.37658,
    "c": 0.01025,
    "h": 278.4
  },
  "luminance": 0.05326
}

Semantic roles & 50–950 ramp

primary
#404147
secondary
#76746D
accent
#A779AE
background
#F7F7F7
surface
#EDEDED
border
#C8C8C8
text
#080809
muted
#7B7B7B

Preview Lab

Preview with #404147

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

Preview Lab → · Contrast checker → · Palette generator →

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