HSL(222, 45%, 53%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(222,45%,53%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(222, 45%, 53%) | color: hsl(222, 45%, 53%) | |
| HEX | #5172BD | color: #5172BD | |
| RGB | rgb(81, 114, 189) | color: rgb(81, 114, 189) | |
| CMYK | cmyk(57%, 40%, 0%, 26%) | — | |
| HSV | hsv(222, 57%, 74%) | — | |
| HWB | hwb(222 32% 26%) | color: hwb(222 32% 26%) | |
| OKLCH | oklch(0.5625 0.1227 264.82) | color: oklch(0.5625 0.1227 264.82) | |
| Lab | lab(48.83 10.81 -43.06) | color: lab(48.83 10.81 -43.06) | |
| LCH | lch(48.83 44.4 284.09) | color: lch(48.83 44.4 284.09) |
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)
#5F60AB — rgb(95, 96, 171)
Deuteranopia (Green-blind)
#5D5BA7 — rgb(93, 91, 167)
Tritanopia (Blue-blind)
#539D99 — rgb(83, 157, 153)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(222, 45%, 53%);
text
color: hsl(222, 45%, 53%);
border
border: 2px solid hsl(222, 45%, 53%);
gradient light
background: linear-gradient(to right, hsl(222, 45%, 73%), hsl(222, 45%, 53%));
gradient dark
background: linear-gradient(to right, hsl(222, 45%, 53%), hsl(222, 45%, 33%))
hex
background-color: #5172BD;
tailwind
bg-[hsl(222,45%,53%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(222, 45%, 53%, 0.4);
css variable
--color-primary: hsl(222, 45%, 53%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(222, 45%, 53%)?
HEX: #5172BD | RGB: rgb(81, 114, 189) | CMYK: 57%, 40%, 0%, 26% | HSV: 222°, 57%, 74%. Copy any format from the conversion table above.
What colors go well with #5172BD?
The complementary color is HSL(42, 45%, 53%). For a triadic harmony, use hues 222°, 342°, and 102°. For analogous combinations, try hues 192° and 252°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(222, 45%, 53%) in CSS?
As HSL: color: hsl(222, 45%, 53%); — As HEX: color: #5172BD; — As RGB: color: rgb(81, 114, 189); — Tailwind CSS: bg-[hsl(222,45%,53%)] — CSS variable: --color-primary: hsl(222, 45%, 53%);