HSL(317, 2%, 17%)
Grayish Black — Black color
Adjust Color
Color Information
Color Name
Grayish Black
Color Family
Black
Warm / Cool
🔴 Warm
Temperature
N/A
CSS Class
bg-[hsl(317,2%,17%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(317, 2%, 17%) | color: hsl(317, 2%, 17%) | |
| HEX | #2C2A2C | color: #2C2A2C | |
| RGB | rgb(44, 42, 44) | color: rgb(44, 42, 44) | |
| CMYK | cmyk(0%, 5%, 0%, 83%) | — | |
| HSV | hsv(300, 5%, 17%) | — | |
| HWB | hwb(300 16% 83%) | color: hwb(300 16% 83%) | |
| OKLCH | oklch(0.2879 0.0046 325.7) | color: oklch(0.2879 0.0046 325.7) | |
| Lab | lab(17.34 1.38 -0.98) | color: lab(17.34 1.38 -0.98) | |
| LCH | lch(17.34 1.69 324.62) | color: lch(17.34 1.69 324.62) |
Color Theory
Accessibility (WCAG)
White text on color
Black text on color
Colored text
Contrast Ratios
AA Normal (4.5:1)
AA Large (3:1)
AAA Normal (7:1)
Best text on this color: white
Color Blindness Simulation
Protanopia (Red-blind)
#2B2B2C — rgb(43, 43, 44)
Deuteranopia (Green-blind)
#2B2B2B — rgb(43, 43, 43)
Tritanopia (Blue-blind)
#2C2B2B — rgb(44, 43, 43)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(317, 2%, 17%);
text
color: hsl(317, 2%, 17%);
border
border: 2px solid hsl(317, 2%, 17%);
gradient light
background: linear-gradient(to right, hsl(317, 2%, 37%), hsl(317, 2%, 17%));
gradient dark
background: linear-gradient(to right, hsl(317, 2%, 17%), hsl(317, 2%, 0%))
hex
background-color: #2C2A2C;
tailwind
bg-[hsl(317,2%,17%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(317, 2%, 17%, 0.4);
css variable
--color-primary: hsl(317, 2%, 17%);
Related Colors
Use Cases for Grayish Black
Frequently Asked Questions
What are all the color codes for HSL(317, 2%, 17%)?
HEX: #2C2A2C | RGB: rgb(44, 42, 44) | CMYK: 0%, 5%, 0%, 83% | HSV: 300°, 5%, 17%. Copy any format from the conversion table above.
What colors go well with #2C2A2C?
The complementary color is HSL(137, 2%, 17%). For a triadic harmony, use hues 317°, 77°, and 197°. For analogous combinations, try hues 287° and 347°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(317, 2%, 17%) in CSS?
As HSL: color: hsl(317, 2%, 17%); — As HEX: color: #2C2A2C; — As RGB: color: rgb(44, 42, 44); — Tailwind CSS: bg-[hsl(317,2%,17%)] — CSS variable: --color-primary: hsl(317, 2%, 17%);