HSL(252, 61%, 54%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(252,61%,54%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(252, 61%, 54%) | color: hsl(252, 61%, 54%) | |
| HEX | #5F42D1 | color: #5F42D1 | |
| RGB | rgb(95, 66, 209) | color: rgb(95, 66, 209) | |
| CMYK | cmyk(55%, 68%, 0%, 18%) | — | |
| HSV | hsv(252, 68%, 82%) | — | |
| HWB | hwb(252 26% 18%) | color: hwb(252 26% 18%) | |
| OKLCH | oklch(0.4994 0.2077 285.38) | color: oklch(0.4994 0.2077 285.38) | |
| Lab | lab(39.47 48.97 -69.66) | color: lab(39.47 48.97 -69.66) | |
| LCH | lch(39.47 85.15 305.11) | color: lch(39.47 85.15 305.11) |
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)
#5252AE — rgb(82, 82, 174)
Deuteranopia (Green-blind)
#5456A6 — rgb(84, 86, 166)
Tritanopia (Blue-blind)
#5E938D — rgb(94, 147, 141)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(252, 61%, 54%);
text
color: hsl(252, 61%, 54%);
border
border: 2px solid hsl(252, 61%, 54%);
gradient light
background: linear-gradient(to right, hsl(252, 61%, 74%), hsl(252, 61%, 54%));
gradient dark
background: linear-gradient(to right, hsl(252, 61%, 54%), hsl(252, 61%, 34%))
hex
background-color: #5F42D1;
tailwind
bg-[hsl(252,61%,54%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(252, 61%, 54%, 0.4);
css variable
--color-primary: hsl(252, 61%, 54%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(252, 61%, 54%)?
HEX: #5F42D1 | RGB: rgb(95, 66, 209) | CMYK: 55%, 68%, 0%, 18% | HSV: 252°, 68%, 82%. Copy any format from the conversion table above.
What colors go well with #5F42D1?
The complementary color is HSL(72, 61%, 54%). For a triadic harmony, use hues 252°, 12°, and 132°. For analogous combinations, try hues 222° and 282°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(252, 61%, 54%) in CSS?
As HSL: color: hsl(252, 61%, 54%); — As HEX: color: #5F42D1; — As RGB: color: rgb(95, 66, 209); — Tailwind CSS: bg-[hsl(252,61%,54%)] — CSS variable: --color-primary: hsl(252, 61%, 54%);