HSL(174, 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(174,9%,21%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(174, 9%, 21%) | color: hsl(174, 9%, 21%) | |
| HEX | #313A39 | color: #313A39 | |
| RGB | rgb(49, 58, 57) | color: rgb(49, 58, 57) | |
| CMYK | cmyk(16%, 0%, 2%, 77%) | — | |
| HSV | hsv(173, 16%, 23%) | — | |
| HWB | hwb(173 19% 77%) | color: hwb(173 19% 77%) | |
| OKLCH | oklch(0.3398 0.0122 188.44) | color: oklch(0.3398 0.0122 188.44) | |
| Lab | lab(23.59 -4 -0.65) | color: lab(23.59 -4 -0.65) | |
| LCH | lch(23.59 4.05 189.23) | color: lch(23.59 4.05 189.23) |
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)
#353539 — rgb(53, 53, 57)
Deuteranopia (Green-blind)
#343439 — rgb(52, 52, 57)
Tritanopia (Blue-blind)
#313939 — rgb(49, 57, 57)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(174, 9%, 21%);
text
color: hsl(174, 9%, 21%);
border
border: 2px solid hsl(174, 9%, 21%);
gradient light
background: linear-gradient(to right, hsl(174, 9%, 41%), hsl(174, 9%, 21%));
gradient dark
background: linear-gradient(to right, hsl(174, 9%, 21%), hsl(174, 9%, 1%))
hex
background-color: #313A39;
tailwind
bg-[hsl(174,9%,21%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(174, 9%, 21%, 0.4);
css variable
--color-primary: hsl(174, 9%, 21%);
Related Colors
Use Cases for Grayish Gray
Frequently Asked Questions
What are all the color codes for HSL(174, 9%, 21%)?
HEX: #313A39 | RGB: rgb(49, 58, 57) | CMYK: 16%, 0%, 2%, 77% | HSV: 173°, 16%, 23%. Copy any format from the conversion table above.
What colors go well with #313A39?
The complementary color is HSL(354, 9%, 21%). For a triadic harmony, use hues 174°, 294°, and 54°. For analogous combinations, try hues 144° and 204°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(174, 9%, 21%) in CSS?
As HSL: color: hsl(174, 9%, 21%); — As HEX: color: #313A39; — As RGB: color: rgb(49, 58, 57); — Tailwind CSS: bg-[hsl(174,9%,21%)] — CSS variable: --color-primary: hsl(174, 9%, 21%);