HSL(242, 12%, 22%)
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(242,12%,22%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(242, 12%, 22%) | color: hsl(242, 12%, 22%) | |
| HEX | #32313F | color: #32313F | |
| RGB | rgb(50, 49, 63) | color: rgb(50, 49, 63) | |
| CMYK | cmyk(21%, 22%, 0%, 75%) | — | |
| HSV | hsv(244, 22%, 25%) | — | |
| HWB | hwb(244 20% 75%) | color: hwb(244 20% 75%) | |
| OKLCH | oklch(0.3201 0.0247 288.19) | color: oklch(0.3201 0.0247 288.19) | |
| Lab | lab(20.96 4 -8.62) | color: lab(20.96 4 -8.62) | |
| LCH | lch(20.96 9.5 294.89) | color: lch(20.96 9.5 294.89) |
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)
#32323C — rgb(50, 50, 60)
Deuteranopia (Green-blind)
#32323B — rgb(50, 50, 59)
Tritanopia (Blue-blind)
#323938 — rgb(50, 57, 56)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(242, 12%, 22%);
text
color: hsl(242, 12%, 22%);
border
border: 2px solid hsl(242, 12%, 22%);
gradient light
background: linear-gradient(to right, hsl(242, 12%, 42%), hsl(242, 12%, 22%));
gradient dark
background: linear-gradient(to right, hsl(242, 12%, 22%), hsl(242, 12%, 2%))
hex
background-color: #32313F;
tailwind
bg-[hsl(242,12%,22%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(242, 12%, 22%, 0.4);
css variable
--color-primary: hsl(242, 12%, 22%);
Related Colors
Use Cases for Grayish Blue
Frequently Asked Questions
What are all the color codes for HSL(242, 12%, 22%)?
HEX: #32313F | RGB: rgb(50, 49, 63) | CMYK: 21%, 22%, 0%, 75% | HSV: 244°, 22%, 25%. Copy any format from the conversion table above.
What colors go well with #32313F?
The complementary color is HSL(62, 12%, 22%). For a triadic harmony, use hues 242°, 2°, and 122°. For analogous combinations, try hues 212° and 272°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(242, 12%, 22%) in CSS?
As HSL: color: hsl(242, 12%, 22%); — As HEX: color: #32313F; — As RGB: color: rgb(50, 49, 63); — Tailwind CSS: bg-[hsl(242,12%,22%)] — CSS variable: --color-primary: hsl(242, 12%, 22%);