#40474C color

#40474C rgb(64, 71, 76)
Shades of gray

The hex color #40474C is a dark, grayish azure.

In the RGB color model it is made of 25.1% red, 27.8% green and 29.8% blue (64, 71, 76).

Its hue angle is 205°, with 9% saturation and 27% lightness. For print, the CMYK equivalent is 16% cyan, 7% magenta, 0% yellow and 70% black.

The closest named color is Stargazing (#414549), a difference of 1.6 ΔE, which is barely visible.

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

#40474C color codes

HEX#40474C
RGBrgb(64, 71, 76)
RGB percentrgb(25.1%, 27.8%, 29.8%)
HSLhsl(205, 9%, 27%)
HSV / HSBhsv(205, 16%, 30%)
CMYKcmyk(16%, 7%, 0%, 70%)
CIE LABlab(29.71, -1.63, -3.96)
CIE LCHlch(29.71, 4.29, 247.62)
CIE XYZxyz(5.672, 6.118, 7.718)
Decimal4212556
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #40474C, 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 #40474CRatioAAAAAAA large
Sample text2.22:1FailFailFail
Sample text9.44:1PassPassPass
#40474C as text onRatioAAAAAAA large
Sample text9.44:1PassPassPass
Sample text2.22: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 #40474C looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #40474c; }
.text { color: #40474c; }
.border { border: 2px solid #40474c; }
.transparent { background-color: rgb(64 71 76 / 50%); }
.gradient { background: linear-gradient(to right, #40474c, #40414c); }
Background
Text color
Border

Similar colors

Closest common color name: Charcoal.

Questions

What color is #40474C?
#40474C is a dark, grayish azure, closest to the named color Stargazing. It belongs to the gray family of colors.
What is the RGB value of #40474C?
The RGB value is 64, 71, 76: 64 red, 71 green and 76 blue on a 0 to 255 scale.
What is the complementary color of #40474C?
The complementary color is #4C4540, found by rotating the hue 180° on the color wheel.
Is black or white text better on #40474C?
White text. Black text has a contrast ratio of 2.22:1 and white text 9.44:1. WCAG asks for at least 4.5:1 for normal text.