HSL(252, 23%, 43%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(252,23%,43%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(252, 23%, 43%) | color: hsl(252, 23%, 43%) | |
| HEX | #5F5487 | color: #5F5487 | |
| RGB | rgb(95, 84, 135) | color: rgb(95, 84, 135) | |
| CMYK | cmyk(30%, 38%, 0%, 47%) | — | |
| HSV | hsv(253, 38%, 53%) | — | |
| HWB | hwb(253 33% 47%) | color: hwb(253 33% 47%) | |
| OKLCH | oklch(0.4786 0.0814 292.97) | color: oklch(0.4786 0.0814 292.97) | |
| Lab | lab(38.76 16.59 -26.9) | color: lab(38.76 16.59 -26.9) | |
| LCH | lch(38.76 31.6 301.66) | color: lch(38.76 31.6 301.66) |
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)
#5A5A7B — rgb(90, 90, 123)
Deuteranopia (Green-blind)
#5B5C78 — rgb(91, 92, 120)
Tritanopia (Blue-blind)
#5E716F — rgb(94, 113, 111)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(252, 23%, 43%);
text
color: hsl(252, 23%, 43%);
border
border: 2px solid hsl(252, 23%, 43%);
gradient light
background: linear-gradient(to right, hsl(252, 23%, 63%), hsl(252, 23%, 43%));
gradient dark
background: linear-gradient(to right, hsl(252, 23%, 43%), hsl(252, 23%, 23%))
hex
background-color: #5F5487;
tailwind
bg-[hsl(252,23%,43%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(252, 23%, 43%, 0.4);
css variable
--color-primary: hsl(252, 23%, 43%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(252, 23%, 43%)?
HEX: #5F5487 | RGB: rgb(95, 84, 135) | CMYK: 30%, 38%, 0%, 47% | HSV: 253°, 38%, 53%. Copy any format from the conversion table above.
What colors go well with #5F5487?
The complementary color is HSL(72, 23%, 43%). 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, 23%, 43%) in CSS?
As HSL: color: hsl(252, 23%, 43%); — As HEX: color: #5F5487; — As RGB: color: rgb(95, 84, 135); — Tailwind CSS: bg-[hsl(252,23%,43%)] — CSS variable: --color-primary: hsl(252, 23%, 43%);