Dark slate gray color (#2F4F4F)
#2F4F4F (Dark slate gray) is a dark muted cyan colour. It is rgb(47, 79, 79) in RGB and hsl(180, 25%, 25%) in HSL. Text in white reads better on it: the contrast is 8.93:1 against white and 2.35:1 against black.
How to work it out
- 1
A hex code is three pairs of base-16 digits: red, green and blue, from 00 (none) to FF (full).
\mathrm{#2F4F4F}:\quad R=\mathrm{2F}_{16}=47,\ G=\mathrm{4F}_{16}=79,\ B=\mathrm{4F}_{16}=79 - 2
HSL describes the same colour as a hue angle on the colour wheel (0° red, 120° green, 240° blue), a saturation and a lightness.
- 3
The complementary colour sits opposite on the wheel: add 180° to the hue.
180^\circ + 180^\circ = 0^\circ ;\Rightarrow; \mathrm{#4F2F2F} - 4
Contrast is the ratio of the lighter to the darker relative luminance, each plus 0.05. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text (AA).
LaTeX source of the formulas on this page
\[ \mathrm{#2F4F4F} = \mathrm{rgb}(47, 79, 79) \]
\[ \mathrm{#2F4F4F}:\quad R=\mathrm{2F}_{16}=47,\ G=\mathrm{4F}_{16}=79,\ B=\mathrm{4F}_{16}=79 \]
\[ H=180^\circ,\quad S=25\%,\quad L=25\% \]
\[ 180^\circ + 180^\circ = 0^\circ ;\Rightarrow; \mathrm{#4F2F2F} \]
\[ \text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 8.93:1\ \text{(on white)} \]Dark slate gray in every colour format
| Format | Value |
|---|---|
| HEX | #2F4F4F |
| RGB | rgb(47, 79, 79) |
| RGB (percent) | rgb(18.4%, 31.0%, 31.0%) |
| HSL | hsl(180, 25%, 25%) |
| HSV / HSB | hsv(180, 41%, 31%) |
| CMYK | cmyk(41%, 0%, 0%, 69%) |
| Decimal | 3100495 |
| Description | dark muted cyan |
| CSS name | darkslategray |
Text contrast (WCAG)
| Background of this colour with… | Contrast | AA normal (4.5) | AA large (3) | AAA normal (7) | AAA large (4.5) |
|---|---|---|---|---|---|
| White text | 8.93:1 | pass | pass | pass | pass |
| Black text | 2.35:1 | fail | fail | fail | fail |
Shades and tints
| Kind | Hex codes (darkest to lightest) |
|---|---|
| Shades (mixed with black) | #080D0D #101A1A #182828 #1F3535 #274242 |
| This colour | #2F4F4F |
| Tints (mixed with white) | #526C6C #748A8A #97A7A7 #BAC4C4 #DCE2E2 |
How it looks with colour blindness
| Type | Hex | Distance from the original |
|---|---|---|
| Protanopia | #4B4C4F | 12 |
| Deuteranopia | #45484F | 13 |
| Tritanopia | #22514F | 5 |
| Grayscale | #4A4A4A | - |
Nearest named colours
| Name | Hex |
|---|---|
| Dim gray | #696969 |
| Slate gray | #708090 |
| Teal | #008080 |
| Gray | #808080 |
Questions
What is the RGB value of #2F4F4F?
rgb(47, 79, 79): red 47, green 79, blue 79.
What is the HSL value of #2F4F4F?
hsl(180, 25%, 25%): a hue of 180°, 25% saturation and 25% lightness.
What is the complementary colour of #2F4F4F?
#4F2F2F, found by turning the hue by 180°. The inverted colour (each channel subtracted from 255) is #D0B0B0.
Should I use white or black text on #2F4F4F?
White. White gives 8.93:1 and black 2.35:1; the better one passes WCAG AA for normal text.
What is the CMYK value of #2F4F4F?
cmyk(41%, 0%, 0%, 69%). This is a simple formula conversion; printed colours depend on the printer profile.
Is #2F4F4F a named colour?
Yes: it is the CSS colour name "darkslategray".