HSL(248, 40%, 47%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(248,40%,47%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(248, 40%, 47%) | color: hsl(248, 40%, 47%) | |
| HEX | #5548A8 | color: #5548A8 | |
| RGB | rgb(85, 72, 168) | color: rgb(85, 72, 168) | |
| CMYK | cmyk(49%, 57%, 0%, 34%) | — | |
| HSV | hsv(248, 57%, 66%) | — | |
| HWB | hwb(248 28% 34%) | color: hwb(248 28% 34%) | |
| OKLCH | oklch(0.4674 0.1483 285.29) | color: oklch(0.4674 0.1483 285.29) | |
| Lab | lab(36.73 31.19 -50.1) | color: lab(36.73 31.19 -50.1) | |
| LCH | lch(36.73 59.02 301.9) | color: lch(36.73 59.02 301.9) |
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)
#4F4F91 — rgb(79, 79, 145)
Deuteranopia (Green-blind)
#50518B — rgb(80, 81, 139)
Tritanopia (Blue-blind)
#547E7A — rgb(84, 126, 122)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(248, 40%, 47%);
text
color: hsl(248, 40%, 47%);
border
border: 2px solid hsl(248, 40%, 47%);
gradient light
background: linear-gradient(to right, hsl(248, 40%, 67%), hsl(248, 40%, 47%));
gradient dark
background: linear-gradient(to right, hsl(248, 40%, 47%), hsl(248, 40%, 27%))
hex
background-color: #5548A8;
tailwind
bg-[hsl(248,40%,47%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(248, 40%, 47%, 0.4);
css variable
--color-primary: hsl(248, 40%, 47%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(248, 40%, 47%)?
HEX: #5548A8 | RGB: rgb(85, 72, 168) | CMYK: 49%, 57%, 0%, 34% | HSV: 248°, 57%, 66%. Copy any format from the conversion table above.
What colors go well with #5548A8?
The complementary color is HSL(68, 40%, 47%). For a triadic harmony, use hues 248°, 8°, and 128°. For analogous combinations, try hues 218° and 278°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(248, 40%, 47%) in CSS?
As HSL: color: hsl(248, 40%, 47%); — As HEX: color: #5548A8; — As RGB: color: rgb(85, 72, 168); — Tailwind CSS: bg-[hsl(248,40%,47%)] — CSS variable: --color-primary: hsl(248, 40%, 47%);