HSL(217, 78%, 52%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(217,78%,52%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(217, 78%, 52%) | color: hsl(217, 78%, 52%) | |
| HEX | #256EE4 | color: #256EE4 | |
| RGB | rgb(37, 110, 228) | color: rgb(37, 110, 228) | |
| CMYK | cmyk(84%, 52%, 0%, 11%) | — | |
| HSV | hsv(217, 84%, 89%) | — | |
| HWB | hwb(217 14% 11%) | color: hwb(217 14% 11%) | |
| OKLCH | oklch(0.5626 0.1934 259.94) | color: oklch(0.5626 0.1934 259.94) | |
| Lab | lab(48.44 21.29 -66.01) | color: lab(48.44 21.29 -66.01) | |
| LCH | lch(48.44 69.36 287.88) | color: lch(48.44 69.36 287.88) |
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)
#4545C7 — rgb(69, 69, 199)
Deuteranopia (Green-blind)
#403BC1 — rgb(64, 59, 193)
Tritanopia (Blue-blind)
#29B1AC — rgb(41, 177, 172)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(217, 78%, 52%);
text
color: hsl(217, 78%, 52%);
border
border: 2px solid hsl(217, 78%, 52%);
gradient light
background: linear-gradient(to right, hsl(217, 78%, 72%), hsl(217, 78%, 52%));
gradient dark
background: linear-gradient(to right, hsl(217, 78%, 52%), hsl(217, 78%, 32%))
hex
background-color: #256EE4;
tailwind
bg-[hsl(217,78%,52%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(217, 78%, 52%, 0.4);
css variable
--color-primary: hsl(217, 78%, 52%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(217, 78%, 52%)?
HEX: #256EE4 | RGB: rgb(37, 110, 228) | CMYK: 84%, 52%, 0%, 11% | HSV: 217°, 84%, 89%. Copy any format from the conversion table above.
What colors go well with #256EE4?
The complementary color is HSL(37, 78%, 52%). 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, 78%, 52%) in CSS?
As HSL: color: hsl(217, 78%, 52%); — As HEX: color: #256EE4; — As RGB: color: rgb(37, 110, 228); — Tailwind CSS: bg-[hsl(217,78%,52%)] — CSS variable: --color-primary: hsl(217, 78%, 52%);