#404751#404751

#404751 is a dark, near-neutral blue. Relative luminance 0.062; OKLCH L 39.5% C 0.019 H 257.3°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#404751
RGBrgb(64, 71, 81)
HSLhsl(215, 12%, 28%)
HSVhsv(215, 21%, 32%)
CMYKcmyk(21%, 12.3%, 0%, 68.2%)
CIE-LABlab(29.89, -0.35, -6.92)
CIE-LCHlch(29.89, 6.93, 267.09°)
OKLaboklab(39.54% -0.0042 -0.0188)
OKLCHoklch(39.54% 0.019 257.3)
XYZxyz(5.8524, 6.1904, 8.6695)
Luminance0.0619 (WCAG relative)
Temperatureneutral
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404751 #514A40
analogous
#404F51 #404751 #414051
triadic
#404751 #514047 #475140
tetradic
#404751 #51404F #514A40 #405141
square
#404751 #51404F #514A40 #405141
split-complementary
#404751 #514140 #4F5140
monochromatic
#0E0F11 #25292F #404751 #5B6573 #778394

Accessibility & contrast

On white

9.38
#404751 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#404751 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404751
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404751#FFFFFF#000000##FFFFFF
##4047511.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#444752
Deuteranopia (green-blind)
#424651
Tritanopia (blue-blind)
#3C494A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #404751;
/* rgb */ color: rgb(64, 71, 81);
/* oklch */ color: oklch(39.5% 0.019 257.3);
Tailwind
colors: {
  custom: {
    50: '#757a81',
    500: '#404751',
    950: '#000000',
  },
}
SCSS
$custom: #404751;
$custom-light: #757a81;
$custom-dark: #000000;
JSON
{
  "hex": "#404751",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 81
  },
  "hsl": {
    "h": 215.294,
    "s": 11.724,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3954,
    "c": 0.01927,
    "h": 257.3
  },
  "luminance": 0.06191
}

Semantic roles & 50–950 ramp

primary
#404751
secondary
#80786D
accent
#9A73B5
background
#F7F7F7
surface
#EDEDEE
border
#C8C8C9
text
#08090A
muted
#7B7B7C

Preview Lab

Preview with #404751

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

Preview Lab → · Contrast checker → · Palette generator →

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