HSL(220, 42%, 54%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(220,42%,54%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(220, 42%, 54%) | color: hsl(220, 42%, 54%) | |
| HEX | #5879BB | color: #5879BB | |
| RGB | rgb(88, 121, 187) | color: rgb(88, 121, 187) | |
| CMYK | cmyk(53%, 35%, 0%, 27%) | — | |
| HSV | hsv(220, 53%, 73%) | — | |
| HWB | hwb(220 34% 27%) | color: hwb(220 34% 27%) | |
| OKLCH | oklch(0.5806 0.1089 263.22) | color: oklch(0.5806 0.1089 263.22) | |
| Lab | lab(51.08 7.41 -38.33) | color: lab(51.08 7.41 -38.33) | |
| LCH | lch(51.08 39.04 280.94) | color: lch(51.08 39.04 280.94) |
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: black
Color Blindness Simulation
Protanopia (Red-blind)
#6667AB — rgb(102, 103, 171)
Deuteranopia (Green-blind)
#6462A7 — rgb(100, 98, 167)
Tritanopia (Blue-blind)
#5A9E9C — rgb(90, 158, 156)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(220, 42%, 54%);
text
color: hsl(220, 42%, 54%);
border
border: 2px solid hsl(220, 42%, 54%);
gradient light
background: linear-gradient(to right, hsl(220, 42%, 74%), hsl(220, 42%, 54%));
gradient dark
background: linear-gradient(to right, hsl(220, 42%, 54%), hsl(220, 42%, 34%))
hex
background-color: #5879BB;
tailwind
bg-[hsl(220,42%,54%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(220, 42%, 54%, 0.4);
css variable
--color-primary: hsl(220, 42%, 54%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(220, 42%, 54%)?
HEX: #5879BB | RGB: rgb(88, 121, 187) | CMYK: 53%, 35%, 0%, 27% | HSV: 220°, 53%, 73%. Copy any format from the conversion table above.
What colors go well with #5879BB?
The complementary color is HSL(40, 42%, 54%). 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, 42%, 54%) in CSS?
As HSL: color: hsl(220, 42%, 54%); — As HEX: color: #5879BB; — As RGB: color: rgb(88, 121, 187); — Tailwind CSS: bg-[hsl(220,42%,54%)] — CSS variable: --color-primary: hsl(220, 42%, 54%);