HSL(252, 31%, 42%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(252,31%,42%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(252, 31%, 42%) | color: hsl(252, 31%, 42%) | |
| HEX | #574A8C | color: #574A8C | |
| RGB | rgb(87, 74, 140) | color: rgb(87, 74, 140) | |
| CMYK | cmyk(38%, 47%, 0%, 45%) | — | |
| HSV | hsv(252, 47%, 55%) | — | |
| HWB | hwb(252 29% 45%) | color: hwb(252 29% 45%) | |
| OKLCH | oklch(0.4539 0.1053 290.64) | color: oklch(0.4539 0.1053 290.64) | |
| Lab | lab(35.63 21.94 -34.94) | color: lab(35.63 21.94 -34.94) | |
| LCH | lch(35.63 41.26 302.13) | color: lch(35.63 41.26 302.13) |
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)
#51517C — rgb(81, 81, 124)
Deuteranopia (Green-blind)
#525378 — rgb(82, 83, 120)
Tritanopia (Blue-blind)
#566F6D — rgb(86, 111, 109)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(252, 31%, 42%);
text
color: hsl(252, 31%, 42%);
border
border: 2px solid hsl(252, 31%, 42%);
gradient light
background: linear-gradient(to right, hsl(252, 31%, 62%), hsl(252, 31%, 42%));
gradient dark
background: linear-gradient(to right, hsl(252, 31%, 42%), hsl(252, 31%, 22%))
hex
background-color: #574A8C;
tailwind
bg-[hsl(252,31%,42%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(252, 31%, 42%, 0.4);
css variable
--color-primary: hsl(252, 31%, 42%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(252, 31%, 42%)?
HEX: #574A8C | RGB: rgb(87, 74, 140) | CMYK: 38%, 47%, 0%, 45% | HSV: 252°, 47%, 55%. Copy any format from the conversion table above.
What colors go well with #574A8C?
The complementary color is HSL(72, 31%, 42%). 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, 31%, 42%) in CSS?
As HSL: color: hsl(252, 31%, 42%); — As HEX: color: #574A8C; — As RGB: color: rgb(87, 74, 140); — Tailwind CSS: bg-[hsl(252,31%,42%)] — CSS variable: --color-primary: hsl(252, 31%, 42%);