HSL(248, 10%, 40%)
Grayish Blue — Blue color
Adjust Color
Color Information
Color Name
Grayish Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
N/A
CSS Class
bg-[hsl(248,10%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(248, 10%, 40%) | color: hsl(248, 10%, 40%) | |
| HEX | #5F5C70 | color: #5F5C70 | |
| RGB | rgb(95, 92, 112) | color: rgb(95, 92, 112) | |
| CMYK | cmyk(15%, 18%, 0%, 56%) | — | |
| HSV | hsv(249, 18%, 44%) | — | |
| HWB | hwb(249 36% 56%) | color: hwb(249 36% 56%) | |
| OKLCH | oklch(0.485 0.0319 292.04) | color: oklch(0.485 0.0319 292.04) | |
| Lab | lab(40.01 5.67 -10.9) | color: lab(40.01 5.67 -10.9) | |
| LCH | lch(40.01 12.29 297.48) | color: lch(40.01 12.29 297.48) |
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)
#5E5E6B — rgb(94, 94, 107)
Deuteranopia (Green-blind)
#5E5E6A — rgb(94, 94, 106)
Tritanopia (Blue-blind)
#5F6767 — rgb(95, 103, 103)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(248, 10%, 40%);
text
color: hsl(248, 10%, 40%);
border
border: 2px solid hsl(248, 10%, 40%);
gradient light
background: linear-gradient(to right, hsl(248, 10%, 60%), hsl(248, 10%, 40%));
gradient dark
background: linear-gradient(to right, hsl(248, 10%, 40%), hsl(248, 10%, 20%))
hex
background-color: #5F5C70;
tailwind
bg-[hsl(248,10%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(248, 10%, 40%, 0.4);
css variable
--color-primary: hsl(248, 10%, 40%);
Related Colors
Use Cases for Grayish Blue
Frequently Asked Questions
What are all the color codes for HSL(248, 10%, 40%)?
HEX: #5F5C70 | RGB: rgb(95, 92, 112) | CMYK: 15%, 18%, 0%, 56% | HSV: 249°, 18%, 44%. Copy any format from the conversion table above.
What colors go well with #5F5C70?
The complementary color is HSL(68, 10%, 40%). For a triadic harmony, use hues 248°, 8°, and 128°. For analogous combinations, try hues 218° and 278°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(248, 10%, 40%) in CSS?
As HSL: color: hsl(248, 10%, 40%); — As HEX: color: #5F5C70; — As RGB: color: rgb(95, 92, 112); — Tailwind CSS: bg-[hsl(248,10%,40%)] — CSS variable: --color-primary: hsl(248, 10%, 40%);