HSL(246, 50%, 54%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(246,50%,54%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(246, 50%, 54%) | color: hsl(246, 50%, 54%) | |
| HEX | #5B4FC4 | color: #5B4FC4 | |
| RGB | rgb(91, 79, 196) | color: rgb(91, 79, 196) | |
| CMYK | cmyk(54%, 60%, 0%, 23%) | — | |
| HSV | hsv(246, 60%, 77%) | — | |
| HWB | hwb(246 31% 23%) | color: hwb(246 31% 23%) | |
| OKLCH | oklch(0.5057 0.1758 282.76) | color: oklch(0.5057 0.1758 282.76) | |
| Lab | lab(40.9 36.86 -59.81) | color: lab(40.9 36.86 -59.81) | |
| LCH | lch(40.9 70.26 301.64) | color: lch(40.9 70.26 301.64) |
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)
#5656A8 — rgb(86, 86, 168)
Deuteranopia (Green-blind)
#5757A1 — rgb(87, 87, 161)
Tritanopia (Blue-blind)
#5A918C — rgb(90, 145, 140)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(246, 50%, 54%);
text
color: hsl(246, 50%, 54%);
border
border: 2px solid hsl(246, 50%, 54%);
gradient light
background: linear-gradient(to right, hsl(246, 50%, 74%), hsl(246, 50%, 54%));
gradient dark
background: linear-gradient(to right, hsl(246, 50%, 54%), hsl(246, 50%, 34%))
hex
background-color: #5B4FC4;
tailwind
bg-[hsl(246,50%,54%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(246, 50%, 54%, 0.4);
css variable
--color-primary: hsl(246, 50%, 54%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(246, 50%, 54%)?
HEX: #5B4FC4 | RGB: rgb(91, 79, 196) | CMYK: 54%, 60%, 0%, 23% | HSV: 246°, 60%, 77%. Copy any format from the conversion table above.
What colors go well with #5B4FC4?
The complementary color is HSL(66, 50%, 54%). For a triadic harmony, use hues 246°, 6°, and 126°. For analogous combinations, try hues 216° and 276°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(246, 50%, 54%) in CSS?
As HSL: color: hsl(246, 50%, 54%); — As HEX: color: #5B4FC4; — As RGB: color: rgb(91, 79, 196); — Tailwind CSS: bg-[hsl(246,50%,54%)] — CSS variable: --color-primary: hsl(246, 50%, 54%);