HSL(245, 5%, 26%)
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(245,5%,26%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(245, 5%, 26%) | color: hsl(245, 5%, 26%) | |
| HEX | #403F46 | color: #403F46 | |
| RGB | rgb(64, 63, 70) | color: rgb(64, 63, 70) | |
| CMYK | cmyk(9%, 10%, 0%, 73%) | — | |
| HSV | hsv(249, 10%, 27%) | — | |
| HWB | hwb(249 24% 73%) | color: hwb(249 24% 73%) | |
| OKLCH | oklch(0.3713 0.0119 292.37) | color: oklch(0.3713 0.0119 292.37) | |
| Lab | lab(26.98 2.05 -4.11) | color: lab(26.98 2.05 -4.11) | |
| LCH | lch(26.98 4.59 296.51) | color: lch(26.98 4.59 296.51) |
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)
#404044 — rgb(64, 64, 68)
Deuteranopia (Green-blind)
#404044 — rgb(64, 64, 68)
Tritanopia (Blue-blind)
#404343 — rgb(64, 67, 67)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(245, 5%, 26%);
text
color: hsl(245, 5%, 26%);
border
border: 2px solid hsl(245, 5%, 26%);
gradient light
background: linear-gradient(to right, hsl(245, 5%, 46%), hsl(245, 5%, 26%));
gradient dark
background: linear-gradient(to right, hsl(245, 5%, 26%), hsl(245, 5%, 6%))
hex
background-color: #403F46;
tailwind
bg-[hsl(245,5%,26%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(245, 5%, 26%, 0.4);
css variable
--color-primary: hsl(245, 5%, 26%);
Related Colors
Use Cases for Grayish Gray
Frequently Asked Questions
What are all the color codes for HSL(245, 5%, 26%)?
HEX: #403F46 | RGB: rgb(64, 63, 70) | CMYK: 9%, 10%, 0%, 73% | HSV: 249°, 10%, 27%. Copy any format from the conversion table above.
What colors go well with #403F46?
The complementary color is HSL(65, 5%, 26%). For a triadic harmony, use hues 245°, 5°, and 125°. For analogous combinations, try hues 215° and 275°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(245, 5%, 26%) in CSS?
As HSL: color: hsl(245, 5%, 26%); — As HEX: color: #403F46; — As RGB: color: rgb(64, 63, 70); — Tailwind CSS: bg-[hsl(245,5%,26%)] — CSS variable: --color-primary: hsl(245, 5%, 26%);