HSL(219, 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(219,9%,21%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(219, 9%, 21%) | color: hsl(219, 9%, 21%) | |
| HEX | #31343A | color: #31343A | |
| RGB | rgb(49, 52, 58) | color: rgb(49, 52, 58) | |
| CMYK | cmyk(16%, 10%, 0%, 77%) | — | |
| HSV | hsv(220, 16%, 23%) | — | |
| HWB | hwb(220 19% 77%) | color: hwb(220 19% 77%) | |
| OKLCH | oklch(0.3245 0.0114 264.4) | color: oklch(0.3245 0.0114 264.4) | |
| Lab | lab(21.63 0.21 -4.21) | color: lab(21.63 0.21 -4.21) | |
| LCH | lch(21.63 4.22 272.86) | color: lch(21.63 4.22 272.86) |
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)
#323239 — rgb(50, 50, 57)
Deuteranopia (Green-blind)
#323238 — rgb(50, 50, 56)
Tritanopia (Blue-blind)
#313737 — rgb(49, 55, 55)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(219, 9%, 21%);
text
color: hsl(219, 9%, 21%);
border
border: 2px solid hsl(219, 9%, 21%);
gradient light
background: linear-gradient(to right, hsl(219, 9%, 41%), hsl(219, 9%, 21%));
gradient dark
background: linear-gradient(to right, hsl(219, 9%, 21%), hsl(219, 9%, 1%))
hex
background-color: #31343A;
tailwind
bg-[hsl(219,9%,21%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(219, 9%, 21%, 0.4);
css variable
--color-primary: hsl(219, 9%, 21%);
Related Colors
Use Cases for Grayish Gray
Frequently Asked Questions
What are all the color codes for HSL(219, 9%, 21%)?
HEX: #31343A | RGB: rgb(49, 52, 58) | CMYK: 16%, 10%, 0%, 77% | HSV: 220°, 16%, 23%. Copy any format from the conversion table above.
What colors go well with #31343A?
The complementary color is HSL(39, 9%, 21%). For a triadic harmony, use hues 219°, 339°, and 99°. For analogous combinations, try hues 189° and 249°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(219, 9%, 21%) in CSS?
As HSL: color: hsl(219, 9%, 21%); — As HEX: color: #31343A; — As RGB: color: rgb(49, 52, 58); — Tailwind CSS: bg-[hsl(219,9%,21%)] — CSS variable: --color-primary: hsl(219, 9%, 21%);