Dark Slate Gray color: hex code #2F4F4F
Dark Slate Gray has the hex code #2F4F4F. It is a dark, desaturated cyan.
In the RGB color model it is made of 18.4% red, 31% green and 31% blue (47, 79, 79).
Its hue angle is 180°, with 25% saturation and 25% lightness. For print, the CMYK equivalent is 41% cyan, 0% magenta, 0% yellow and 69% black.
You can use it in CSS with the keyword darkslategray.
White text is the more readable choice on this background (contrast 8.93:1).
Dark Slate Gray (#2F4F4F) color codes
| HEX | #2F4F4F | |
|---|---|---|
| RGB | rgb(47, 79, 79) | |
| RGB percent | rgb(18.4%, 31%, 31%) | |
| HSL | hsl(180, 25%, 25%) | |
| HSV / HSB | hsv(180, 41%, 31%) | |
| CMYK | cmyk(41%, 0%, 0%, 69%) | |
| CIE LAB | lab(31.26, -11.72, -3.72) | |
| CIE LCH | lch(31.26, 12.3, 197.63) | |
| CIE XYZ | xyz(5.379, 6.76, 8.417) | |
| Decimal | 3100495 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with Dark Slate Gray, 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 #2F4F4F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.35:1 | Fail | Fail | Fail |
| Sample text | 8.93:1 | Pass | Pass | Pass |
| #2F4F4F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 8.93:1 | Pass | Pass | Pass |
| Sample text | 2.35: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 #2F4F4F looks to people with the most common types of color vision deficiency.
#4b4c4fProtanopia
no red cones#45484fDeuteranopia
no green cones#22514fTritanopia
no blue cones#4a4a4aAchromatopsia
no color vision
CSS examples
.background { background-color: #2f4f4f; }
.text { color: #2f4f4f; }
.border { border: 2px solid #2f4f4f; }
.transparent { background-color: rgb(47 79 79 / 50%); }
.gradient { background: linear-gradient(to right, #2f4f4f, #2f3f4f); }
Similar colors
#3c4f4eNight Watch#315955Enchanting Ivy#33534bHunter#27454aMysterious Waters#224347Emerald Forest#345c61Arctic Nights#23505aSunken Mystery#2d454aLittle Mermaid
See #2F4F4F on its hex code page
Questions
- What color is #2F4F4F?
- #2F4F4F is a dark, desaturated cyan known as Dark Slate Gray. It belongs to the gray family of colors.
- What is the RGB value of Dark Slate Gray?
- The RGB value is 47, 79, 79: 47 red, 79 green and 79 blue on a 0 to 255 scale.
- What is the complementary color of Dark Slate Gray?
- The complementary color is #4F2F2F, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #2F4F4F?
- White text. Black text has a contrast ratio of 2.35:1 and white text 8.93:1. WCAG asks for at least 4.5:1 for normal text.