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