HSL(221, 12%, 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(221,12%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(221, 12%, 40%) | color: hsl(221, 12%, 40%) | |
| HEX | #5A6272 | color: #5A6272 | |
| RGB | rgb(90, 98, 114) | color: rgb(90, 98, 114) | |
| CMYK | cmyk(21%, 14%, 0%, 55%) | — | |
| HSV | hsv(220, 21%, 45%) | — | |
| HWB | hwb(220 36% 55%) | color: hwb(220 36% 55%) | |
| OKLCH | oklch(0.4951 0.0275 264.28) | color: oklch(0.4951 0.0275 264.28) | |
| Lab | lab(41.41 0.7 -10.05) | color: lab(41.41 0.7 -10.05) | |
| LCH | lch(41.41 10.07 273.98) | color: lch(41.41 10.07 273.98) |
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)
#5D5E6E — rgb(93, 94, 110)
Deuteranopia (Green-blind)
#5D5C6D — rgb(93, 92, 109)
Tritanopia (Blue-blind)
#5A6B6A — rgb(90, 107, 106)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(221, 12%, 40%);
text
color: hsl(221, 12%, 40%);
border
border: 2px solid hsl(221, 12%, 40%);
gradient light
background: linear-gradient(to right, hsl(221, 12%, 60%), hsl(221, 12%, 40%));
gradient dark
background: linear-gradient(to right, hsl(221, 12%, 40%), hsl(221, 12%, 20%))
hex
background-color: #5A6272;
tailwind
bg-[hsl(221,12%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(221, 12%, 40%, 0.4);
css variable
--color-primary: hsl(221, 12%, 40%);
Related Colors
Use Cases for Grayish Blue
Frequently Asked Questions
What are all the color codes for HSL(221, 12%, 40%)?
HEX: #5A6272 | RGB: rgb(90, 98, 114) | CMYK: 21%, 14%, 0%, 55% | HSV: 220°, 21%, 45%. Copy any format from the conversion table above.
What colors go well with #5A6272?
The complementary color is HSL(41, 12%, 40%). For a triadic harmony, use hues 221°, 341°, and 101°. For analogous combinations, try hues 191° and 251°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(221, 12%, 40%) in CSS?
As HSL: color: hsl(221, 12%, 40%); — As HEX: color: #5A6272; — As RGB: color: rgb(90, 98, 114); — Tailwind CSS: bg-[hsl(221,12%,40%)] — CSS variable: --color-primary: hsl(221, 12%, 40%);