#405159 color
The hex color #405159 is a dark, grayish azure.
In the RGB color model it is made of 25.1% red, 31.8% green and 34.9% blue (64, 81, 89).
Its hue angle is 199°, with 16% saturation and 30% lightness. For print, the CMYK equivalent is 28% cyan, 9% magenta, 0% yellow and 65% black.
The closest named color is Good Night! (#46565F), a difference of 2 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 8.27:1).
#405159 color codes
| HEX | #405159 | |
|---|---|---|
| RGB | rgb(64, 81, 89) | |
| RGB percent | rgb(25.1%, 31.8%, 34.9%) | |
| HSL | hsl(199, 16%, 30%) | |
| HSV / HSB | hsv(199, 28%, 35%) | |
| CMYK | cmyk(28%, 9%, 0%, 65%) | |
| CIE LAB | lab(33.34, -4.51, -6.86) | |
| CIE LCH | lch(33.34, 8.21, 236.68) | |
| CIE XYZ | xyz(6.859, 7.696, 10.573) | |
| Decimal | 4215129 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #405159, 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 #405159 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.54:1 | Fail | Fail | Fail |
| Sample text | 8.27:1 | Pass | Pass | Pass |
| #405159 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 8.27:1 | Pass | Pass | Pass |
| Sample text | 2.54: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 #405159 looks to people with the most common types of color vision deficiency.
#4d5059Protanopia
no red cones#494d59Deuteranopia
no green cones#385353Tritanopia
no blue cones#4e4e4eAchromatopsia
no color vision
CSS examples
.background { background-color: #405159; }
.text { color: #405159; }
.border { border: 2px solid #405159; }
.transparent { background-color: rgb(64 81 89 / 50%); }
.gradient { background: linear-gradient(to right, #405159, #404459); }
Similar colors
#46565fGood Night!#445055Obsidian#43535eNightfall#445155Descent Into the Catacombs#3e5361Dark Secret#344d58Nocturne#37525fMoonlit Sonata#4b5a62Fiord
Closest common color name: Charcoal.
Questions
- What color is #405159?
- #405159 is a dark, grayish azure, closest to the named color Good Night!. It belongs to the gray family of colors.
- What is the RGB value of #405159?
- The RGB value is 64, 81, 89: 64 red, 81 green and 89 blue on a 0 to 255 scale.
- What is the complementary color of #405159?
- The complementary color is #594840, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #405159?
- White text. Black text has a contrast ratio of 2.54:1 and white text 8.27:1. WCAG asks for at least 4.5:1 for normal text.