HSL(277, 9%, 17%)
Grayish Black — Black color
Adjust Color
Color Information
Color Name
Grayish Black
Color Family
Black
Warm / Cool
🔵 Cool
Temperature
N/A
CSS Class
bg-[hsl(277,9%,17%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(277, 9%, 17%) | color: hsl(277, 9%, 17%) | |
| HEX | #2C272F | color: #2C272F | |
| RGB | rgb(44, 39, 47) | color: rgb(44, 39, 47) | |
| CMYK | cmyk(6%, 17%, 0%, 82%) | — | |
| HSV | hsv(278, 17%, 18%) | — | |
| HWB | hwb(278 15% 82%) | color: hwb(278 15% 82%) | |
| OKLCH | oklch(0.2815 0.0161 312.93) | color: oklch(0.2815 0.0161 312.93) | |
| Lab | lab(16.46 4.22 -4.38) | color: lab(16.46 4.22 -4.38) | |
| LCH | lch(16.46 6.08 313.93) | color: lch(16.46 6.08 313.93) |
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)
#2A2A2D — rgb(42, 42, 45)
Deuteranopia (Green-blind)
#2A2B2D — rgb(42, 43, 45)
Tritanopia (Blue-blind)
#2C2C2B — rgb(44, 44, 43)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(277, 9%, 17%);
text
color: hsl(277, 9%, 17%);
border
border: 2px solid hsl(277, 9%, 17%);
gradient light
background: linear-gradient(to right, hsl(277, 9%, 37%), hsl(277, 9%, 17%));
gradient dark
background: linear-gradient(to right, hsl(277, 9%, 17%), hsl(277, 9%, 0%))
hex
background-color: #2C272F;
tailwind
bg-[hsl(277,9%,17%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(277, 9%, 17%, 0.4);
css variable
--color-primary: hsl(277, 9%, 17%);
Related Colors
Use Cases for Grayish Black
Frequently Asked Questions
What are all the color codes for HSL(277, 9%, 17%)?
HEX: #2C272F | RGB: rgb(44, 39, 47) | CMYK: 6%, 17%, 0%, 82% | HSV: 278°, 17%, 18%. Copy any format from the conversion table above.
What colors go well with #2C272F?
The complementary color is HSL(97, 9%, 17%). For a triadic harmony, use hues 277°, 37°, and 157°. For analogous combinations, try hues 247° and 307°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(277, 9%, 17%) in CSS?
As HSL: color: hsl(277, 9%, 17%); — As HEX: color: #2C272F; — As RGB: color: rgb(44, 39, 47); — Tailwind CSS: bg-[hsl(277,9%,17%)] — CSS variable: --color-primary: hsl(277, 9%, 17%);