HSL(184, 9%, 21%)
Grayish Gray — Gray color
Adjust Color
Color Information
Color Name
Grayish Gray
Color Family
Gray
Warm / Cool
🔵 Cool
Temperature
N/A
CSS Class
bg-[hsl(184,9%,21%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(184, 9%, 21%) | color: hsl(184, 9%, 21%) | |
| HEX | #313A3A | color: #313A3A | |
| RGB | rgb(49, 58, 58) | color: rgb(49, 58, 58) | |
| CMYK | cmyk(16%, 0%, 0%, 77%) | — | |
| HSV | hsv(180, 16%, 23%) | — | |
| HWB | hwb(180 19% 77%) | color: hwb(180 19% 77%) | |
| OKLCH | oklch(0.3401 0.0121 196.6) | color: oklch(0.3401 0.0121 196.6) | |
| Lab | lab(23.62 -3.75 -1.27) | color: lab(23.62 -3.75 -1.27) | |
| LCH | lch(23.62 3.96 198.71) | color: lch(23.62 3.96 198.71) |
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)
#35353A — rgb(53, 53, 58)
Deuteranopia (Green-blind)
#34343A — rgb(52, 52, 58)
Tritanopia (Blue-blind)
#313A3A — rgb(49, 58, 58)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(184, 9%, 21%);
text
color: hsl(184, 9%, 21%);
border
border: 2px solid hsl(184, 9%, 21%);
gradient light
background: linear-gradient(to right, hsl(184, 9%, 41%), hsl(184, 9%, 21%));
gradient dark
background: linear-gradient(to right, hsl(184, 9%, 21%), hsl(184, 9%, 1%))
hex
background-color: #313A3A;
tailwind
bg-[hsl(184,9%,21%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(184, 9%, 21%, 0.4);
css variable
--color-primary: hsl(184, 9%, 21%);
Related Colors
Use Cases for Grayish Gray
Frequently Asked Questions
What are all the color codes for HSL(184, 9%, 21%)?
HEX: #313A3A | RGB: rgb(49, 58, 58) | CMYK: 16%, 0%, 0%, 77% | HSV: 180°, 16%, 23%. Copy any format from the conversion table above.
What colors go well with #313A3A?
The complementary color is HSL(4, 9%, 21%). For a triadic harmony, use hues 184°, 304°, and 64°. For analogous combinations, try hues 154° and 214°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(184, 9%, 21%) in CSS?
As HSL: color: hsl(184, 9%, 21%); — As HEX: color: #313A3A; — As RGB: color: rgb(49, 58, 58); — Tailwind CSS: bg-[hsl(184,9%,21%)] — CSS variable: --color-primary: hsl(184, 9%, 21%);