HSL(220, 77%, 50%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(220,77%,50%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(220, 77%, 50%) | color: hsl(220, 77%, 50%) | |
| HEX | #1D5FE2 | color: #1D5FE2 | |
| RGB | rgb(29, 95, 226) | color: rgb(29, 95, 226) | |
| CMYK | cmyk(87%, 58%, 0%, 11%) | — | |
| HSV | hsv(220, 87%, 89%) | — | |
| HWB | hwb(220 12% 11%) | color: hwb(220 12% 11%) | |
| OKLCH | oklch(0.529 0.21 262.07) | color: oklch(0.529 0.21 262.07) | |
| Lab | lab(44.14 29.61 -71.88) | color: lab(44.14 29.61 -71.88) | |
| LCH | lch(44.14 77.74 292.39) | color: lch(44.14 77.74 292.39) |
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)
#3A3AC2 — rgb(58, 58, 194)
Deuteranopia (Green-blind)
#3631BB — rgb(54, 49, 187)
Tritanopia (Blue-blind)
#20A9A4 — rgb(32, 169, 164)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(220, 77%, 50%);
text
color: hsl(220, 77%, 50%);
border
border: 2px solid hsl(220, 77%, 50%);
gradient light
background: linear-gradient(to right, hsl(220, 77%, 70%), hsl(220, 77%, 50%));
gradient dark
background: linear-gradient(to right, hsl(220, 77%, 50%), hsl(220, 77%, 30%))
hex
background-color: #1D5FE2;
tailwind
bg-[hsl(220,77%,50%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(220, 77%, 50%, 0.4);
css variable
--color-primary: hsl(220, 77%, 50%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(220, 77%, 50%)?
HEX: #1D5FE2 | RGB: rgb(29, 95, 226) | CMYK: 87%, 58%, 0%, 11% | HSV: 220°, 87%, 89%. Copy any format from the conversion table above.
What colors go well with #1D5FE2?
The complementary color is HSL(40, 77%, 50%). 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, 77%, 50%) in CSS?
As HSL: color: hsl(220, 77%, 50%); — As HEX: color: #1D5FE2; — As RGB: color: rgb(29, 95, 226); — Tailwind CSS: bg-[hsl(220,77%,50%)] — CSS variable: --color-primary: hsl(220, 77%, 50%);