#404151#404151

#404151 is a dark, muted blue. Relative luminance 0.055; OKLCH L 38.1% C 0.027 H 282.2°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#404151
RGBrgb(64, 65, 81)
HSLhsl(236, 12%, 28%)
HSVhsv(236, 21%, 32%)
CMYKcmyk(21%, 19.8%, 0%, 68.2%)
CIE-LABlab(28.02, 3.53, -9.74)
CIE-LCHlch(28.02, 10.36, 289.93°)
OKLaboklab(38.08% 0.0058 -0.0266)
OKLCHoklch(38.08% 0.027 282.2)
XYZxyz(5.4895, 5.4646, 8.5485)
Luminance0.0546 (WCAG relative)
Temperatureneutral
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404151 #515040
analogous
#404951 #404151 #474051
triadic
#404151 #514041 #415140
tetradic
#404151 #514049 #515040 #405147
square
#404151 #514049 #515040 #405147
split-complementary
#404151 #514740 #495140
monochromatic
#0E0E11 #25262F #404151 #5B5C73 #777994

Accessibility & contrast

On white

10.03
#404151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #404151
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404151#FFFFFF#000000##FFFFFF
##4041511.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D4352
Deuteranopia (green-blind)
#3C4251
Tritanopia (blue-blind)
#3C4446
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #404151;
/* rgb */ color: rgb(64, 65, 81);
/* oklch */ color: oklch(38.1% 0.027 282.2);
Tailwind
colors: {
  custom: {
    50: '#757581',
    500: '#404151',
    950: '#000000',
  },
}
SCSS
$custom: #404151;
$custom-light: #757581;
$custom-dark: #000000;
JSON
{
  "hex": "#404151",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 81
  },
  "hsl": {
    "h": 236.471,
    "s": 11.724,
    "l": 28.431
  },
  "oklch": {
    "l": 0.38077,
    "c": 0.02719,
    "h": 282.2
  },
  "luminance": 0.05465
}

Semantic roles & 50–950 ramp

primary
#404151
secondary
#807F6D
accent
#B173B5
background
#F7F7F7
surface
#EDEDEE
border
#C8C8C9
text
#08080A
muted
#7B7B7C

Preview Lab

Preview with #404151

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

Preview Lab → · Contrast checker → · Palette generator →

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