HSL(252, 20%, 26%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(252,20%,26%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(252, 20%, 26%) | color: hsl(252, 20%, 26%) | |
| HEX | #3A3550 | color: #3A3550 | |
| RGB | rgb(58, 53, 80) | color: rgb(58, 53, 80) | |
| CMYK | cmyk(28%, 34%, 0%, 69%) | — | |
| HSV | hsv(251, 34%, 31%) | — | |
| HWB | hwb(251 20% 69%) | color: hwb(251 20% 69%) | |
| OKLCH | oklch(0.3462 0.0469 292.26) | color: oklch(0.3462 0.0469 292.26) | |
| Lab | lab(23.75 9.07 -15.68) | color: lab(23.75 9.07 -15.68) | |
| LCH | lch(23.75 18.11 300.05) | color: lch(23.75 18.11 300.05) |
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)
#383849 — rgb(56, 56, 73)
Deuteranopia (Green-blind)
#383948 — rgb(56, 57, 72)
Tritanopia (Blue-blind)
#3A4443 — rgb(58, 68, 67)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(252, 20%, 26%);
text
color: hsl(252, 20%, 26%);
border
border: 2px solid hsl(252, 20%, 26%);
gradient light
background: linear-gradient(to right, hsl(252, 20%, 46%), hsl(252, 20%, 26%));
gradient dark
background: linear-gradient(to right, hsl(252, 20%, 26%), hsl(252, 20%, 6%))
hex
background-color: #3A3550;
tailwind
bg-[hsl(252,20%,26%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(252, 20%, 26%, 0.4);
css variable
--color-primary: hsl(252, 20%, 26%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(252, 20%, 26%)?
HEX: #3A3550 | RGB: rgb(58, 53, 80) | CMYK: 28%, 34%, 0%, 69% | HSV: 251°, 34%, 31%. Copy any format from the conversion table above.
What colors go well with #3A3550?
The complementary color is HSL(72, 20%, 26%). For a triadic harmony, use hues 252°, 12°, and 132°. For analogous combinations, try hues 222° and 282°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(252, 20%, 26%) in CSS?
As HSL: color: hsl(252, 20%, 26%); — As HEX: color: #3A3550; — As RGB: color: rgb(58, 53, 80); — Tailwind CSS: bg-[hsl(252,20%,26%)] — CSS variable: --color-primary: hsl(252, 20%, 26%);