Dark slate gray #2F4F4F
Dark slate gray is one of the named colours in CSS, written darkslategray or darkslategrey. White text reaches 8.93:1 on it, enough for body text.
Try on walls Preview on a website
Colour codes
| CSS keyword | darkslategray or darkslategrey |
|---|---|
| HEX | #2F4F4F |
| RGB | rgb(47 79 79) |
| HSL | hsl(180 25% 25%) |
| OKLCH | oklch(40.3% 0.038 195.8) |
| White text | 8.93:1 · body text AA Pass |
| Black text | 2.35:1 · body text AA Fail |
Colours that go with Dark slate gray
The closest colour in Sanzo Wada's A Dictionary of Color Combinations is Slate Color (#34454C), close. These are the colours Wada paired it with, ranked by their contrast with Dark slate gray itself.
| Colour | HEX | Contrast with Dark slate gray | Body text AA |
|---|---|---|---|
| Yellow | #FFF200 | 7.63:1 | Pass |
| Sulpher Yellow | #F5ECC2 | 7.51:1 | Pass |
| Lemon Yellow | #F8ED43 | 7.31:1 | Pass |
| Ivory Buff | #EBD3A2 | 6.11:1 | Pass |
| Turquoise Green | #B5DECC | 6.07:1 | Pass |
| Cream Yellow | #FDBF68 | 5.45:1 | Pass |
| Corinthian Pink | #F8B6BA | 5.27:1 | Pass |
| Cobalt Green | #96D1AA | 5.10:1 | Pass |
| Pinkish Cinnamon | #EEB480 | 4.88:1 | Pass |
| Golden Yellow | #F3A257 | 4.30:1 | Fail |
| Yellow Orange | #F99D1B | 4.19:1 | Fail |
| Grayish Lavender - B | #C0A9B3 | 4.07:1 | Fail |
| Ochraceous Salmon | #D8A37B | 4.02:1 | Fail |
| Apricot Orange | #F68C50 | 3.74:1 | Fail |
| Oil Green | #819238 | 2.59:1 | Fail |
| Raw Sienna | #BB7125 | 2.34:1 | Fail |
| Olive Green | #6B7140 | 1.73:1 | Fail |
| Burnt Sienna | #AE5224 | 1.71:1 | Fail |
| Antwarp Blue | #007190 | 1.60:1 | Fail |
| Cotinga Purple | #501345 | 1.55:1 | Fail |
| Diamine Green | #1A7444 | 1.54:1 | Fail |
| Dark Tyrian Blue | #12354E | 1.43:1 | Fail |
| Carmine Red | #A62C37 | 1.29:1 | Fail |
| Red | #A72144 | 1.25:1 | Fail |
| Pale Raw Umber | #71502F | 1.23:1 | Fail |
| Taupe Brown | #7A4456 | 1.19:1 | Fail |
| Vandyke Red | #82241F | 1.06:1 | Fail |
| Violet | #4F4086 | 1.02:1 | Fail |
Palettes with Slate Color
- Combination #27 Corinthian Pink · Slate Color
- Combination #33 Raw Sienna · Slate Color
- Combination #57 Taupe Brown · Slate Color
- Combination #140 Golden Yellow · Antwarp Blue · Slate Color
- Combination #202 Turquoise Green · Cobalt Green · Slate Color
- Combination #243 Raw Sienna · Ivory Buff · Olive Green · Slate Color
- Combination #245 Carmine Red · Oil Green · Dark Tyrian Blue · Slate Color
- Combination #251 Red · Yellow · Diamine Green · Slate Color
- Combination #253 Lemon Yellow · Apricot Orange · Cotinga Purple · Slate Color
- Combination #263 Burnt Sienna · Pinkish Cinnamon · Turquoise Green · Slate Color
- Combination #296 Sulpher Yellow · Ochraceous Salmon · Pale Raw Umber · Slate Color
- Combination #329 Cream Yellow · Grayish Lavender - B · Cotinga Purple · Slate Color
Shades and tints of Dark slate gray
Nine lightness steps in OKLCH that keep the hue of Dark slate gray. Chroma is reduced only where sRGB cannot show it.
- 100#D9FEFD
- 200#C9EDED
- 300#B2D6D6
- 400#96B9B9
- 500#789A9A
- 600#587979
- 700#3C5C5C
- 800#214141
- 900#062727
:root {
--darkslategray-100: #D9FEFD;
--darkslategray-200: #C9EDED;
--darkslategray-300: #B2D6D6;
--darkslategray-400: #96B9B9;
--darkslategray-500: #789A9A;
--darkslategray-600: #587979;
--darkslategray-700: #3C5C5C;
--darkslategray-800: #214141;
--darkslategray-900: #062727;
}
Text that keeps Dark slate gray on screen
Text #2F4F4F on #D9FEFD reaches 8.31:1, which passes WCAG AA for body text. Check it on a dashboard