HSL(112, 9%, 18%)
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(112,9%,18%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(112, 9%, 18%) | color: hsl(112, 9%, 18%) | |
| HEX | #2B322A | color: #2B322A | |
| RGB | rgb(43, 50, 42) | color: rgb(43, 50, 42) | |
| CMYK | cmyk(14%, 0%, 16%, 80%) | — | |
| HSV | hsv(113, 16%, 20%) | — | |
| HWB | hwb(113 17% 80%) | color: hwb(113 17% 80%) | |
| OKLCH | oklch(0.3076 0.0171 141.68) | color: oklch(0.3076 0.0171 141.68) | |
| Lab | lab(19.89 -4.93 4.09) | color: lab(19.89 -4.93 4.09) | |
| LCH | lch(19.89 6.41 140.32) | color: lch(19.89 6.41 140.32) |
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)
#2E2E2C — rgb(46, 46, 44)
Deuteranopia (Green-blind)
#2E2D2C — rgb(46, 45, 44)
Tritanopia (Blue-blind)
#2B2D2E — rgb(43, 45, 46)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(112, 9%, 18%);
text
color: hsl(112, 9%, 18%);
border
border: 2px solid hsl(112, 9%, 18%);
gradient light
background: linear-gradient(to right, hsl(112, 9%, 38%), hsl(112, 9%, 18%));
gradient dark
background: linear-gradient(to right, hsl(112, 9%, 18%), hsl(112, 9%, 0%))
hex
background-color: #2B322A;
tailwind
bg-[hsl(112,9%,18%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(112, 9%, 18%, 0.4);
css variable
--color-primary: hsl(112, 9%, 18%);
Related Colors
Use Cases for Grayish Black
Frequently Asked Questions
What are all the color codes for HSL(112, 9%, 18%)?
HEX: #2B322A | RGB: rgb(43, 50, 42) | CMYK: 14%, 0%, 16%, 80% | HSV: 113°, 16%, 20%. Copy any format from the conversion table above.
What colors go well with #2B322A?
The complementary color is HSL(292, 9%, 18%). For a triadic harmony, use hues 112°, 232°, and 352°. For analogous combinations, try hues 82° and 142°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(112, 9%, 18%) in CSS?
As HSL: color: hsl(112, 9%, 18%); — As HEX: color: #2B322A; — As RGB: color: rgb(43, 50, 42); — Tailwind CSS: bg-[hsl(112,9%,18%)] — CSS variable: --color-primary: hsl(112, 9%, 18%);