#404F42 color

#404F42 rgb(64, 79, 66)
Shades of gray

The hex color #404F42 is a dark, grayish green.

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

Its hue angle is 128°, with 10% saturation and 28% lightness. For print, the CMYK equivalent is 19% cyan, 0% magenta, 16% yellow and 69% black.

The closest named color is Mountain View (#394C3B), a difference of 2.8 ΔE, a small difference.

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

#404F42 color codes

HEX#404F42
RGBrgb(64, 79, 66)
RGB percentrgb(25.1%, 31%, 25.9%)
HSLhsl(128, 10%, 28%)
HSV / HSBhsv(128, 19%, 31%)
CMYKcmyk(19%, 0%, 16%, 69%)
CIE LABlab(31.98, -8.9, 5.74)
CIE LCHlch(31.98, 10.59, 147.17)
CIE XYZxyz(5.893, 7.075, 6.208)
Decimal4214594
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #404F42, 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 #404F42RatioAAAAAAA large
Sample text2.42:1FailFailFail
Sample text8.7:1PassPassPass
#404F42 as text onRatioAAAAAAA large
Sample text8.7:1PassPassPass
Sample text2.42: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 #404F42 looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #404f42; }
.text { color: #404f42; }
.border { border: 2px solid #404f42; }
.transparent { background-color: rgb(64 79 66 / 50%); }
.gradient { background: linear-gradient(to right, #404f42, #404f4a); }
Background
Text color
Border

Similar colors

Closest common color name: Ebony.

Questions

What color is #404F42?
#404F42 is a dark, grayish green, closest to the named color Mountain View. It belongs to the gray family of colors.
What is the RGB value of #404F42?
The RGB value is 64, 79, 66: 64 red, 79 green and 66 blue on a 0 to 255 scale.
What is the complementary color of #404F42?
The complementary color is #4F404D, found by rotating the hue 180° on the color wheel.
Is black or white text better on #404F42?
White text. Black text has a contrast ratio of 2.42:1 and white text 8.7:1. WCAG asks for at least 4.5:1 for normal text.