HSL(217, 39%, 50%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(217,39%,50%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(217, 39%, 50%) | color: hsl(217, 39%, 50%) | |
| HEX | #4E74B1 | color: #4E74B1 | |
| RGB | rgb(78, 116, 177) | color: rgb(78, 116, 177) | |
| CMYK | cmyk(56%, 34%, 0%, 31%) | — | |
| HSV | hsv(217, 56%, 69%) | — | |
| HWB | hwb(217 30% 31%) | color: hwb(217 30% 31%) | |
| OKLCH | oklch(0.5584 0.1047 259.51) | color: oklch(0.5584 0.1047 259.51) | |
| Lab | lab(48.62 4.96 -36.47) | color: lab(48.62 4.96 -36.47) | |
| LCH | lch(48.62 36.81 277.74) | color: lch(48.62 36.81 277.74) |
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)
#5E5FA2 — rgb(94, 95, 162)
Deuteranopia (Green-blind)
#5C599F — rgb(92, 89, 159)
Tritanopia (Blue-blind)
#509794 — rgb(80, 151, 148)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(217, 39%, 50%);
text
color: hsl(217, 39%, 50%);
border
border: 2px solid hsl(217, 39%, 50%);
gradient light
background: linear-gradient(to right, hsl(217, 39%, 70%), hsl(217, 39%, 50%));
gradient dark
background: linear-gradient(to right, hsl(217, 39%, 50%), hsl(217, 39%, 30%))
hex
background-color: #4E74B1;
tailwind
bg-[hsl(217,39%,50%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(217, 39%, 50%, 0.4);
css variable
--color-primary: hsl(217, 39%, 50%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(217, 39%, 50%)?
HEX: #4E74B1 | RGB: rgb(78, 116, 177) | CMYK: 56%, 34%, 0%, 31% | HSV: 217°, 56%, 69%. Copy any format from the conversion table above.
What colors go well with #4E74B1?
The complementary color is HSL(37, 39%, 50%). For a triadic harmony, use hues 217°, 337°, and 97°. For analogous combinations, try hues 187° and 247°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(217, 39%, 50%) in CSS?
As HSL: color: hsl(217, 39%, 50%); — As HEX: color: #4E74B1; — As RGB: color: rgb(78, 116, 177); — Tailwind CSS: bg-[hsl(217,39%,50%)] — CSS variable: --color-primary: hsl(217, 39%, 50%);