HSL(215, 42%, 54%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(215,42%,54%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(215, 42%, 54%) | color: hsl(215, 42%, 54%) | |
| HEX | #5881BB | color: #5881BB | |
| RGB | rgb(88, 129, 187) | color: rgb(88, 129, 187) | |
| CMYK | cmyk(53%, 31%, 0%, 27%) | — | |
| HSV | hsv(215, 53%, 73%) | — | |
| HWB | hwb(215 34% 27%) | color: hwb(215 34% 27%) | |
| OKLCH | oklch(0.5982 0.1003 257.14) | color: oklch(0.5982 0.1003 257.14) | |
| Lab | lab(53.34 2.62 -34.77) | color: lab(53.34 2.62 -34.77) | |
| LCH | lch(53.34 34.87 274.31) | color: lch(53.34 34.87 274.31) |
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)
#6A6AAD — rgb(106, 106, 173)
Deuteranopia (Green-blind)
#6764AA — rgb(103, 100, 170)
Tritanopia (Blue-blind)
#5AA29F — rgb(90, 162, 159)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(215, 42%, 54%);
text
color: hsl(215, 42%, 54%);
border
border: 2px solid hsl(215, 42%, 54%);
gradient light
background: linear-gradient(to right, hsl(215, 42%, 74%), hsl(215, 42%, 54%));
gradient dark
background: linear-gradient(to right, hsl(215, 42%, 54%), hsl(215, 42%, 34%))
hex
background-color: #5881BB;
tailwind
bg-[hsl(215,42%,54%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(215, 42%, 54%, 0.4);
css variable
--color-primary: hsl(215, 42%, 54%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(215, 42%, 54%)?
HEX: #5881BB | RGB: rgb(88, 129, 187) | CMYK: 53%, 31%, 0%, 27% | HSV: 215°, 53%, 73%. Copy any format from the conversion table above.
What colors go well with #5881BB?
The complementary color is HSL(35, 42%, 54%). For a triadic harmony, use hues 215°, 335°, and 95°. For analogous combinations, try hues 185° and 245°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(215, 42%, 54%) in CSS?
As HSL: color: hsl(215, 42%, 54%); — As HEX: color: #5881BB; — As RGB: color: rgb(88, 129, 187); — Tailwind CSS: bg-[hsl(215,42%,54%)] — CSS variable: --color-primary: hsl(215, 42%, 54%);