HSL(339, 9%, 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(339,9%,17%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(339, 9%, 17%) | color: hsl(339, 9%, 17%) | |
| HEX | #2F272A | color: #2F272A | |
| RGB | rgb(47, 39, 42) | color: rgb(47, 39, 42) | |
| CMYK | cmyk(0%, 17%, 11%, 82%) | — | |
| HSV | hsv(338, 17%, 18%) | — | |
| HWB | hwb(338 15% 82%) | color: hwb(338 15% 82%) | |
| OKLCH | oklch(0.2828 0.013 353.35) | color: oklch(0.2828 0.013 353.35) | |
| Lab | lab(16.61 4.37 -0.59) | color: lab(16.61 4.37 -0.59) | |
| LCH | lch(16.61 4.41 352.31) | color: lch(16.61 4.41 352.31) |
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)
#2C2B29 — rgb(44, 43, 41)
Deuteranopia (Green-blind)
#2C2D29 — rgb(44, 45, 41)
Tritanopia (Blue-blind)
#2F2929 — rgb(47, 41, 41)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(339, 9%, 17%);
text
color: hsl(339, 9%, 17%);
border
border: 2px solid hsl(339, 9%, 17%);
gradient light
background: linear-gradient(to right, hsl(339, 9%, 37%), hsl(339, 9%, 17%));
gradient dark
background: linear-gradient(to right, hsl(339, 9%, 17%), hsl(339, 9%, 0%))
hex
background-color: #2F272A;
tailwind
bg-[hsl(339,9%,17%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(339, 9%, 17%, 0.4);
css variable
--color-primary: hsl(339, 9%, 17%);
Related Colors
Use Cases for Grayish Black
Frequently Asked Questions
What are all the color codes for HSL(339, 9%, 17%)?
HEX: #2F272A | RGB: rgb(47, 39, 42) | CMYK: 0%, 17%, 11%, 82% | HSV: 338°, 17%, 18%. Copy any format from the conversion table above.
What colors go well with #2F272A?
The complementary color is HSL(159, 9%, 17%). For a triadic harmony, use hues 339°, 99°, and 219°. For analogous combinations, try hues 309° and 9°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(339, 9%, 17%) in CSS?
As HSL: color: hsl(339, 9%, 17%); — As HEX: color: #2F272A; — As RGB: color: rgb(47, 39, 42); — Tailwind CSS: bg-[hsl(339,9%,17%)] — CSS variable: --color-primary: hsl(339, 9%, 17%);