#40535C color
The hex color #40535C is a dark, grayish azure.
In the RGB color model it is made of 25.1% red, 32.5% green and 36.1% blue (64, 83, 92).
Its hue angle is 199°, with 18% saturation and 31% lightness. For print, the CMYK equivalent is 30% cyan, 10% magenta, 0% yellow and 64% black.
The closest named color is Good Night! (#46565F), a difference of 1.7 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 8.05:1).
#40535C color codes
| HEX | #40535C | |
|---|---|---|
| RGB | rgb(64, 83, 92) | |
| RGB percent | rgb(25.1%, 32.5%, 36.1%) | |
| HSL | hsl(199, 18%, 31%) | |
| HSV / HSB | hsv(199, 30%, 36%) | |
| CMYK | cmyk(30%, 10%, 0%, 64%) | |
| CIE LAB | lab(34.08, -4.92, -7.64) | |
| CIE LCH | lch(34.08, 9.09, 237.2) | |
| CIE XYZ | xyz(7.139, 8.049, 11.301) | |
| Decimal | 4215644 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #40535C, 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 #40535C | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.61:1 | Fail | Fail | Fail |
| Sample text | 8.05:1 | Pass | Pass | Pass |
| #40535C as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 8.05:1 | Pass | Pass | Pass |
| Sample text | 2.61: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 #40535C looks to people with the most common types of color vision deficiency.
#4e525cProtanopia
no red cones#4a4f5cDeuteranopia
no green cones#375656Tritanopia
no blue cones#505050Achromatopsia
no color vision
CSS examples
.background { background-color: #40535c; }
.text { color: #40535c; }
.border { border: 2px solid #40535c; }
.transparent { background-color: rgb(64 83 92 / 50%); }
.gradient { background: linear-gradient(to right, #40535c, #40455c); }
Similar colors
#46565fGood Night!#43535eNightfall#3e5361Dark Secret#37525fMoonlit Sonata#3f5865Stargazer#445055Obsidian#445155Descent Into the Catacombs#344d58Nocturne
Closest common color name: Charcoal.
Questions
- What color is #40535C?
- #40535C 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 #40535C?
- The RGB value is 64, 83, 92: 64 red, 83 green and 92 blue on a 0 to 255 scale.
- What is the complementary color of #40535C?
- The complementary color is #5C4940, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #40535C?
- White text. Black text has a contrast ratio of 2.61:1 and white text 8.05:1. WCAG asks for at least 4.5:1 for normal text.