HSL(220, 50%, 41%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(220,50%,41%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(220, 50%, 41%) | color: hsl(220, 50%, 41%) | |
| HEX | #34579D | color: #34579D | |
| RGB | rgb(52, 87, 157) | color: rgb(52, 87, 157) | |
| CMYK | cmyk(67%, 45%, 0%, 38%) | — | |
| HSV | hsv(220, 67%, 62%) | — | |
| HWB | hwb(220 20% 38%) | color: hwb(220 20% 38%) | |
| OKLCH | oklch(0.4675 0.1207 262.65) | color: oklch(0.4675 0.1207 262.65) | |
| Lab | lab(37.81 11.06 -41.9) | color: lab(37.81 11.06 -41.9) | |
| LCH | lch(37.81 43.34 284.79) | color: lch(37.81 43.34 284.79) |
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)
#43438C — rgb(67, 67, 140)
Deuteranopia (Green-blind)
#413F88 — rgb(65, 63, 136)
Tritanopia (Blue-blind)
#367F7C — rgb(54, 127, 124)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(220, 50%, 41%);
text
color: hsl(220, 50%, 41%);
border
border: 2px solid hsl(220, 50%, 41%);
gradient light
background: linear-gradient(to right, hsl(220, 50%, 61%), hsl(220, 50%, 41%));
gradient dark
background: linear-gradient(to right, hsl(220, 50%, 41%), hsl(220, 50%, 21%))
hex
background-color: #34579D;
tailwind
bg-[hsl(220,50%,41%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(220, 50%, 41%, 0.4);
css variable
--color-primary: hsl(220, 50%, 41%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(220, 50%, 41%)?
HEX: #34579D | RGB: rgb(52, 87, 157) | CMYK: 67%, 45%, 0%, 38% | HSV: 220°, 67%, 62%. Copy any format from the conversion table above.
What colors go well with #34579D?
The complementary color is HSL(40, 50%, 41%). For a triadic harmony, use hues 220°, 340°, and 100°. For analogous combinations, try hues 190° and 250°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(220, 50%, 41%) in CSS?
As HSL: color: hsl(220, 50%, 41%); — As HEX: color: #34579D; — As RGB: color: rgb(52, 87, 157); — Tailwind CSS: bg-[hsl(220,50%,41%)] — CSS variable: --color-primary: hsl(220, 50%, 41%);