#40424B color

#40424B rgb(64, 66, 75)
Shades of gray

The hex color #40424B is a dark gray.

In the RGB color model it is made of 25.1% red, 25.9% green and 29.4% blue (64, 66, 75).

Its hue angle is 229°, with 8% saturation and 27% lightness. For print, the CMYK equivalent is 15% cyan, 12% magenta, 0% yellow and 71% black.

The closest named color is Midnight Serenade (#41434E), a difference of 1.1 ΔE, which is barely visible.

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

#40424B color codes

HEX#40424B
RGBrgb(64, 66, 75)
RGB percentrgb(25.1%, 25.9%, 29.4%)
HSLhsl(229, 8%, 27%)
HSV / HSBhsv(229, 15%, 29%)
CMYKcmyk(15%, 12%, 0%, 71%)
CIE LABlab(28.1, 1.33, -5.71)
CIE LCHlch(28.1, 5.86, 283.07)
CIE XYZxyz(5.332, 5.494, 7.435)
Decimal4211275
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #40424B, 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 #40424BRatioAAAAAAA large
Sample text2.1:1FailFailFail
Sample text10.01:1PassPassPass
#40424B as text onRatioAAAAAAA large
Sample text10.01:1PassPassPass
Sample text2.1: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 #40424B looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #40424b; }
.text { color: #40424b; }
.border { border: 2px solid #40424b; }
.transparent { background-color: rgb(64 66 75 / 50%); }
.gradient { background: linear-gradient(to right, #40424b, #43404b); }
Background
Text color
Border

Similar colors

Closest common color name: Graphite.

Questions

What color is #40424B?
#40424B is a dark gray, closest to the named color Midnight Serenade. It belongs to the gray family of colors.
What is the RGB value of #40424B?
The RGB value is 64, 66, 75: 64 red, 66 green and 75 blue on a 0 to 255 scale.
What is the complementary color of #40424B?
The complementary color is #4B4940, found by rotating the hue 180° on the color wheel.
Is black or white text better on #40424B?
White text. Black text has a contrast ratio of 2.1:1 and white text 10.01:1. WCAG asks for at least 4.5:1 for normal text.