#405148 color
The hex color #405148 is a dark, grayish green.
In the RGB color model it is made of 25.1% red, 31.8% green and 28.2% blue (64, 81, 72).
Its hue angle is 148°, with 12% saturation and 28% lightness. For print, the CMYK equivalent is 21% cyan, 0% magenta, 11% yellow and 68% black.
The closest named color is Pine Needle (#334D41), a difference of 4 ΔE, a small difference.
White text is the more readable choice on this background (contrast 8.44:1).
#405148 color codes
| HEX | #405148 | |
|---|---|---|
| RGB | rgb(64, 81, 72) | |
| RGB percent | rgb(25.1%, 31.8%, 28.2%) | |
| HSL | hsl(148, 12%, 28%) | |
| HSV / HSB | hsv(148, 21%, 32%) | |
| CMYK | cmyk(21%, 0%, 11%, 68%) | |
| CIE LAB | lab(32.79, -8.76, 3.11) | |
| CIE LCH | lch(32.79, 9.3, 160.47) | |
| CIE XYZ | xyz(6.226, 7.443, 7.238) | |
| Decimal | 4215112 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #405148, 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 #405148 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.49:1 | Fail | Fail | Fail |
| Sample text | 8.44:1 | Pass | Pass | Pass |
| #405148 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 8.44:1 | Pass | Pass | Pass |
| Sample text | 2.49:1 | Fail | Fail | Fail |
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 #405148 looks to people with the most common types of color vision deficiency.
#504e48Protanopia
no red cones#4d4c49Deuteranopia
no green cones#3d514eTritanopia
no blue cones#4d4d4dAchromatopsia
no color vision
CSS examples
.background { background-color: #405148; }
.text { color: #405148; }
.border { border: 2px solid #405148; }
.transparent { background-color: rgb(64 81 72 / 50%); }
.gradient { background: linear-gradient(to right, #405148, #405151); }
Similar colors
#334d41Pine Needle#394c3bMountain View#3c4f4eNight Watch#3c463eDeep Forest#3e594cPlantation#444b43Ancient Pine#33534bHunter#4e5a4aVerdant Hush
Closest common color name: Dark Slate Gray.
Questions
- What color is #405148?
- #405148 is a dark, grayish green, closest to the named color Pine Needle. It belongs to the gray family of colors.
- What is the RGB value of #405148?
- The RGB value is 64, 81, 72: 64 red, 81 green and 72 blue on a 0 to 255 scale.
- What is the complementary color of #405148?
- The complementary color is #514049, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #405148?
- White text. Black text has a contrast ratio of 2.49:1 and white text 8.44:1. WCAG asks for at least 4.5:1 for normal text.