CSS Named Color

Copy-ready color values

HEX#2F4F4F
RGBrgb(47, 79, 79)
HSLhsl(180, 25%, 25%)
HSVhsv(180, 41%, 31%)
CMYK approx.cmyk(41, 0, 0, 69)

Color value table

FormatValueCopy
HEX#2F4F4F
RGBrgb(47, 79, 79)
HSLhsl(180, 25%, 25%)
HSVhsv(180, 41%, 31%)
CMYK approx.cmyk(41, 0, 0, 69)
CSS keyworddarkslategray

Contrast and classification

DarkLightness8.93:1Contrast with white2.35:1Contrast with blackGreen / TealColor family

Shade and tint preview

White 10%
#446161

White 30%
#6D8484

White 70%
#C1CACA

White 90%
#EAEDED

Black 10%
#2A4747

Black 30%
#213737

Black 70%
#0E1818

Black 90%
#050808

Harmony palettes

Complementary

#D0B0B0
#DBC3C3

Analogous

#334F4B
#2F4F4F

Triadic

#4F4F2F
#4F2F4F

Split complementary

#D8BEBE
#AB9090

Using Darkslategray

Darkslategray works best when it is chosen with contrast, surrounding colors, and interface state in mind. Use the HEX value for static CSS, RGB when you need channel-level control, and HSL when adjusting lightness or saturation for hover states. The CMYK value is an approximate screen-to-print conversion, so print workflows should still rely on calibrated design software or a printer profile.

CSS, SCSS, and Tailwind examples

:root {
  --color-darkslategray: #2f4f4f;
}

.button-primary {
  background: var(--color-darkslategray);
  color: #ffffff;
}

$darkslategray: #2f4f4f;

// Tailwind arbitrary value
class="bg-[#2f4f4f] text-white"