HSL(271, 7%, 22%)
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(271,7%,22%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(271, 7%, 22%) | color: hsl(271, 7%, 22%) | |
| HEX | #38343C | color: #38343C | |
| RGB | rgb(56, 52, 60) | color: rgb(56, 52, 60) | |
| CMYK | cmyk(7%, 13%, 0%, 76%) | — | |
| HSV | hsv(270, 13%, 24%) | — | |
| HWB | hwb(270 21% 76%) | color: hwb(270 21% 76%) | |
| OKLCH | oklch(0.3323 0.0149 307.96) | color: oklch(0.3323 0.0149 307.96) | |
| Lab | lab(22.38 3.62 -4.37) | color: lab(22.38 3.62 -4.37) | |
| LCH | lch(22.38 5.67 309.64) | color: lch(22.38 5.67 309.64) |
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)
#36363A — rgb(54, 54, 58)
Deuteranopia (Green-blind)
#37373A — rgb(55, 55, 58)
Tritanopia (Blue-blind)
#383938 — rgb(56, 57, 56)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(271, 7%, 22%);
text
color: hsl(271, 7%, 22%);
border
border: 2px solid hsl(271, 7%, 22%);
gradient light
background: linear-gradient(to right, hsl(271, 7%, 42%), hsl(271, 7%, 22%));
gradient dark
background: linear-gradient(to right, hsl(271, 7%, 22%), hsl(271, 7%, 2%))
hex
background-color: #38343C;
tailwind
bg-[hsl(271,7%,22%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(271, 7%, 22%, 0.4);
css variable
--color-primary: hsl(271, 7%, 22%);
Related Colors
Use Cases for Grayish Gray
Frequently Asked Questions
What are all the color codes for HSL(271, 7%, 22%)?
HEX: #38343C | RGB: rgb(56, 52, 60) | CMYK: 7%, 13%, 0%, 76% | HSV: 270°, 13%, 24%. Copy any format from the conversion table above.
What colors go well with #38343C?
The complementary color is HSL(91, 7%, 22%). For a triadic harmony, use hues 271°, 31°, and 151°. For analogous combinations, try hues 241° and 301°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(271, 7%, 22%) in CSS?
As HSL: color: hsl(271, 7%, 22%); — As HEX: color: #38343C; — As RGB: color: rgb(56, 52, 60); — Tailwind CSS: bg-[hsl(271,7%,22%)] — CSS variable: --color-primary: hsl(271, 7%, 22%);