#404151 color

#404151 rgb(64, 65, 81)
Shades of gray

The hex color #404151 is a dark, grayish blue.

In the RGB color model it is made of 25.1% red, 25.5% green and 31.8% blue (64, 65, 81).

Its hue angle is 236°, with 12% saturation and 28% lightness. For print, the CMYK equivalent is 21% cyan, 20% magenta, 0% yellow and 68% black.

The closest named color is Madonna (#3F4250), a difference of 1.7 ΔE, which is barely visible.

White text is the more readable choice on this background (contrast 10.03:1).

#404151 color codes

HEX#404151
RGBrgb(64, 65, 81)
RGB percentrgb(25.1%, 25.5%, 31.8%)
HSLhsl(236, 12%, 28%)
HSV / HSBhsv(236, 21%, 32%)
CMYKcmyk(21%, 20%, 0%, 68%)
CIE LABlab(28.02, 3.53, -9.74)
CIE LCHlch(28.02, 10.36, 289.93)
CIE XYZxyz(5.49, 5.465, 8.549)
Decimal4211025
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #404151, based on their position on the color wheel.

Complementary

The color opposite on the color wheel (180°). Strongest contrast.

Analogous

Neighbors 30° either side. Calm, natural combinations.

Split complementary

The two colors next to the complement (150° and 210°).

Triadic

Three colors evenly spaced, 120° apart.

Tetradic (square)

Four colors 90° apart.

Shades, tints and tones

Shades (darker, mixed with black)

Tints (lighter, mixed with white)

Tones (mixed with gray)

Contrast and accessibility

Text on #404151RatioAAAAAAA large
Sample text2.09:1FailFailFail
Sample text10.03:1PassPassPass
#404151 as text onRatioAAAAAAA large
Sample text10.03:1PassPassPass
Sample text2.09:1FailFailFail

WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.

Color blindness simulation

How #404151 looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #404151; }
.text { color: #404151; }
.border { border: 2px solid #404151; }
.transparent { background-color: rgb(64 65 81 / 50%); }
.gradient { background: linear-gradient(to right, #404151, #484051); }
Background
Text color
Border

Similar colors

Closest common color name: Charcoal.

Questions

What color is #404151?
#404151 is a dark, grayish blue, closest to the named color Madonna. It belongs to the gray family of colors.
What is the RGB value of #404151?
The RGB value is 64, 65, 81: 64 red, 65 green and 81 blue on a 0 to 255 scale.
What is the complementary color of #404151?
The complementary color is #515040, found by rotating the hue 180° on the color wheel.
Is black or white text better on #404151?
White text. Black text has a contrast ratio of 2.09:1 and white text 10.03:1. WCAG asks for at least 4.5:1 for normal text.