Rosemary color: hex code #405E5C
Rosemary has the hex code #405E5C. It is a dark, grayish cyan.
In the RGB color model it is made of 25.1% red, 36.9% green and 36.1% blue (64, 94, 92).
Its hue angle is 176°, with 19% saturation and 31% lightness. For print, the CMYK equivalent is 32% cyan, 0% magenta, 2% yellow and 63% black.
White text is the more readable choice on this background (contrast 7.06:1).
Rosemary (#405E5C) color codes
| HEX | #405E5C | |
|---|---|---|
| RGB | rgb(64, 94, 92) | |
| RGB percent | rgb(25.1%, 36.9%, 36.1%) | |
| HSL | hsl(176, 19%, 31%) | |
| HSV / HSB | hsv(176, 32%, 37%) | |
| CMYK | cmyk(32%, 0%, 2%, 63%) | |
| CIE LAB | lab(37.6, -11.49, -2.4) | |
| CIE LCH | lch(37.6, 11.74, 191.81) | |
| CIE XYZ | xyz(8.048, 9.868, 11.604) | |
| Decimal | 4218460 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with Rosemary, 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 #405E5C | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.97:1 | Fail | Fail | Fail |
| Sample text | 7.06:1 | Pass | Pass | Pass |
| #405E5C as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 7.06:1 | Pass | Pass | Pass |
| Sample text | 2.97: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 #405E5C looks to people with the most common types of color vision deficiency.
#5b5b5cProtanopia
no red cones#55575cDeuteranopia
no green cones#36605dTritanopia
no blue cones#585858Achromatopsia
no color vision
CSS examples
.background { background-color: #405e5c; }
.text { color: #405e5c; }
.border { border: 2px solid #405e5c; }
.transparent { background-color: rgb(64 94 92 / 50%); }
.gradient { background: linear-gradient(to right, #405e5c, #40515e); }
Similar colors
#475c5dWoodland Night#315955Enchanting Ivy#345c61Arctic Nights#3a5b52Iridescent#2e5c58Lacrosse#4a5d5fStill Waters Run Deep#39636aMediterranea#33534bHunter
Closest common color name: Dark Slate Gray.
See #405E5C on its hex code page
Questions
- What color is #405E5C?
- #405E5C is a dark, grayish cyan known as Rosemary. It belongs to the gray family of colors.
- What is the RGB value of Rosemary?
- The RGB value is 64, 94, 92: 64 red, 94 green and 92 blue on a 0 to 255 scale.
- What is the complementary color of Rosemary?
- The complementary color is #5E4042, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #405E5C?
- White text. Black text has a contrast ratio of 2.97:1 and white text 7.06:1. WCAG asks for at least 4.5:1 for normal text.