HSL(227, 15%, 42%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
N/A
CSS Class
bg-[hsl(227,15%,42%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(227, 15%, 42%) | color: hsl(227, 15%, 42%) | |
| HEX | #5B627B | color: #5B627B | |
| RGB | rgb(91, 98, 123) | color: rgb(91, 98, 123) | |
| CMYK | cmyk(26%, 20%, 0%, 52%) | — | |
| HSV | hsv(227, 26%, 48%) | — | |
| HWB | hwb(227 36% 52%) | color: hwb(227 36% 52%) | |
| OKLCH | oklch(0.4997 0.0409 272.63) | color: oklch(0.4997 0.0409 272.63) | |
| Lab | lab(41.83 3.35 -14.89) | color: lab(41.83 3.35 -14.89) | |
| LCH | lch(41.83 15.26 282.68) | color: lch(41.83 15.26 282.68) |
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)
#5E5E75 — rgb(94, 94, 117)
Deuteranopia (Green-blind)
#5E5D74 — rgb(94, 93, 116)
Tritanopia (Blue-blind)
#5B706F — rgb(91, 112, 111)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(227, 15%, 42%);
text
color: hsl(227, 15%, 42%);
border
border: 2px solid hsl(227, 15%, 42%);
gradient light
background: linear-gradient(to right, hsl(227, 15%, 62%), hsl(227, 15%, 42%));
gradient dark
background: linear-gradient(to right, hsl(227, 15%, 42%), hsl(227, 15%, 22%))
hex
background-color: #5B627B;
tailwind
bg-[hsl(227,15%,42%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(227, 15%, 42%, 0.4);
css variable
--color-primary: hsl(227, 15%, 42%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(227, 15%, 42%)?
HEX: #5B627B | RGB: rgb(91, 98, 123) | CMYK: 26%, 20%, 0%, 52% | HSV: 227°, 26%, 48%. Copy any format from the conversion table above.
What colors go well with #5B627B?
The complementary color is HSL(47, 15%, 42%). For a triadic harmony, use hues 227°, 347°, and 107°. For analogous combinations, try hues 197° and 257°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(227, 15%, 42%) in CSS?
As HSL: color: hsl(227, 15%, 42%); — As HEX: color: #5B627B; — As RGB: color: rgb(91, 98, 123); — Tailwind CSS: bg-[hsl(227,15%,42%)] — CSS variable: --color-primary: hsl(227, 15%, 42%);