HSL(248, 35%, 48%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(248,35%,48%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(248, 35%, 48%) | color: hsl(248, 35%, 48%) | |
| HEX | #5B50A5 | color: #5B50A5 | |
| RGB | rgb(91, 80, 165) | color: rgb(91, 80, 165) | |
| CMYK | cmyk(45%, 52%, 0%, 35%) | — | |
| HSV | hsv(248, 52%, 65%) | — | |
| HWB | hwb(248 31% 35%) | color: hwb(248 31% 35%) | |
| OKLCH | oklch(0.4852 0.132 286.3) | color: oklch(0.4852 0.132 286.3) | |
| Lab | lab(39.03 26.68 -44.58) | color: lab(39.03 26.68 -44.58) | |
| LCH | lch(39.03 51.95 300.9) | color: lch(39.03 51.95 300.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)
#565690 — rgb(86, 86, 144)
Deuteranopia (Green-blind)
#57588C — rgb(87, 88, 140)
Tritanopia (Blue-blind)
#5A807D — rgb(90, 128, 125)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(248, 35%, 48%);
text
color: hsl(248, 35%, 48%);
border
border: 2px solid hsl(248, 35%, 48%);
gradient light
background: linear-gradient(to right, hsl(248, 35%, 68%), hsl(248, 35%, 48%));
gradient dark
background: linear-gradient(to right, hsl(248, 35%, 48%), hsl(248, 35%, 28%))
hex
background-color: #5B50A5;
tailwind
bg-[hsl(248,35%,48%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(248, 35%, 48%, 0.4);
css variable
--color-primary: hsl(248, 35%, 48%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(248, 35%, 48%)?
HEX: #5B50A5 | RGB: rgb(91, 80, 165) | CMYK: 45%, 52%, 0%, 35% | HSV: 248°, 52%, 65%. Copy any format from the conversion table above.
What colors go well with #5B50A5?
The complementary color is HSL(68, 35%, 48%). 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, 35%, 48%) in CSS?
As HSL: color: hsl(248, 35%, 48%); — As HEX: color: #5B50A5; — As RGB: color: rgb(91, 80, 165); — Tailwind CSS: bg-[hsl(248,35%,48%)] — CSS variable: --color-primary: hsl(248, 35%, 48%);