HSL(237, 45%, 53%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(237,45%,53%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(237, 45%, 53%) | color: hsl(237, 45%, 53%) | |
| HEX | #5157BD | color: #5157BD | |
| RGB | rgb(81, 87, 189) | color: rgb(81, 87, 189) | |
| CMYK | cmyk(57%, 54%, 0%, 26%) | — | |
| HSV | hsv(237, 57%, 74%) | — | |
| HWB | hwb(237 32% 26%) | color: hwb(237 32% 26%) | |
| OKLCH | oklch(0.5074 0.1576 276.68) | color: oklch(0.5074 0.1576 276.68) | |
| Lab | lab(41.59 27.74 -54.65) | color: lab(41.59 27.74 -54.65) | |
| LCH | lch(41.59 61.29 296.91) | color: lch(41.59 61.29 296.91) |
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)
#5454A4 — rgb(84, 84, 164)
Deuteranopia (Green-blind)
#53539E — rgb(83, 83, 158)
Tritanopia (Blue-blind)
#51918D — rgb(81, 145, 141)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(237, 45%, 53%);
text
color: hsl(237, 45%, 53%);
border
border: 2px solid hsl(237, 45%, 53%);
gradient light
background: linear-gradient(to right, hsl(237, 45%, 73%), hsl(237, 45%, 53%));
gradient dark
background: linear-gradient(to right, hsl(237, 45%, 53%), hsl(237, 45%, 33%))
hex
background-color: #5157BD;
tailwind
bg-[hsl(237,45%,53%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(237, 45%, 53%, 0.4);
css variable
--color-primary: hsl(237, 45%, 53%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(237, 45%, 53%)?
HEX: #5157BD | RGB: rgb(81, 87, 189) | CMYK: 57%, 54%, 0%, 26% | HSV: 237°, 57%, 74%. Copy any format from the conversion table above.
What colors go well with #5157BD?
The complementary color is HSL(57, 45%, 53%). 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, 45%, 53%) in CSS?
As HSL: color: hsl(237, 45%, 53%); — As HEX: color: #5157BD; — As RGB: color: rgb(81, 87, 189); — Tailwind CSS: bg-[hsl(237,45%,53%)] — CSS variable: --color-primary: hsl(237, 45%, 53%);