HSL(237, 40%, 52%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(237,40%,52%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(237, 40%, 52%) | color: hsl(237, 40%, 52%) | |
| HEX | #5459B6 | color: #5459B6 | |
| RGB | rgb(84, 89, 182) | color: rgb(84, 89, 182) | |
| CMYK | cmyk(54%, 51%, 0%, 29%) | — | |
| HSV | hsv(237, 54%, 71%) | — | |
| HWB | hwb(237 33% 29%) | color: hwb(237 33% 29%) | |
| OKLCH | oklch(0.5084 0.1444 277.63) | color: oklch(0.5084 0.1444 277.63) | |
| Lab | lab(41.85 24.79 -50.12) | color: lab(41.85 24.79 -50.12) | |
| LCH | lch(41.85 55.92 296.32) | color: lch(41.85 55.92 296.32) |
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)
#56569F — rgb(86, 86, 159)
Deuteranopia (Green-blind)
#56569A — rgb(86, 86, 154)
Tritanopia (Blue-blind)
#548E8A — rgb(84, 142, 138)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(237, 40%, 52%);
text
color: hsl(237, 40%, 52%);
border
border: 2px solid hsl(237, 40%, 52%);
gradient light
background: linear-gradient(to right, hsl(237, 40%, 72%), hsl(237, 40%, 52%));
gradient dark
background: linear-gradient(to right, hsl(237, 40%, 52%), hsl(237, 40%, 32%))
hex
background-color: #5459B6;
tailwind
bg-[hsl(237,40%,52%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(237, 40%, 52%, 0.4);
css variable
--color-primary: hsl(237, 40%, 52%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(237, 40%, 52%)?
HEX: #5459B6 | RGB: rgb(84, 89, 182) | CMYK: 54%, 51%, 0%, 29% | HSV: 237°, 54%, 71%. Copy any format from the conversion table above.
What colors go well with #5459B6?
The complementary color is HSL(57, 40%, 52%). For a triadic harmony, use hues 237°, 357°, and 117°. For analogous combinations, try hues 207° and 267°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(237, 40%, 52%) in CSS?
As HSL: color: hsl(237, 40%, 52%); — As HEX: color: #5459B6; — As RGB: color: rgb(84, 89, 182); — Tailwind CSS: bg-[hsl(237,40%,52%)] — CSS variable: --color-primary: hsl(237, 40%, 52%);