HSL(198, 34%, 50%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
7000K
CSS Class
bg-[hsl(198,34%,50%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(198, 34%, 50%) | color: hsl(198, 34%, 50%) | |
| HEX | #5491AB | color: #5491AB | |
| RGB | rgb(84, 145, 171) | color: rgb(84, 145, 171) | |
| CMYK | cmyk(51%, 15%, 0%, 33%) | — | |
| HSV | hsv(198, 51%, 67%) | — | |
| HWB | hwb(198 33% 33%) | color: hwb(198 33% 33%) | |
| OKLCH | oklch(0.6255 0.0744 227.44) | color: oklch(0.6255 0.0744 227.44) | |
| Lab | lab(57.15 -12.4 -19.76) | color: lab(57.15 -12.4 -19.76) | |
| LCH | lch(57.15 23.33 237.89) | color: lch(57.15 23.33 237.89) |
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)
#6E6FA5 — rgb(110, 111, 165)
Deuteranopia (Green-blind)
#6B66A3 — rgb(107, 102, 163)
Tritanopia (Blue-blind)
#57A09F — rgb(87, 160, 159)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(198, 34%, 50%);
text
color: hsl(198, 34%, 50%);
border
border: 2px solid hsl(198, 34%, 50%);
gradient light
background: linear-gradient(to right, hsl(198, 34%, 70%), hsl(198, 34%, 50%));
gradient dark
background: linear-gradient(to right, hsl(198, 34%, 50%), hsl(198, 34%, 30%))
hex
background-color: #5491AB;
tailwind
bg-[hsl(198,34%,50%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(198, 34%, 50%, 0.4);
css variable
--color-primary: hsl(198, 34%, 50%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(198, 34%, 50%)?
HEX: #5491AB | RGB: rgb(84, 145, 171) | CMYK: 51%, 15%, 0%, 33% | HSV: 198°, 51%, 67%. Copy any format from the conversion table above.
What colors go well with #5491AB?
The complementary color is HSL(18, 34%, 50%). For a triadic harmony, use hues 198°, 318°, and 78°. For analogous combinations, try hues 168° and 228°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(198, 34%, 50%) in CSS?
As HSL: color: hsl(198, 34%, 50%); — As HEX: color: #5491AB; — As RGB: color: rgb(84, 145, 171); — Tailwind CSS: bg-[hsl(198,34%,50%)] — CSS variable: --color-primary: hsl(198, 34%, 50%);