HSL(227, 30%, 51%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(227,30%,51%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(227, 30%, 51%) | color: hsl(227, 30%, 51%) | |
| HEX | #5D6DA8 | color: #5D6DA8 | |
| RGB | rgb(93, 109, 168) | color: rgb(93, 109, 168) | |
| CMYK | cmyk(45%, 35%, 0%, 34%) | — | |
| HSV | hsv(227, 45%, 66%) | — | |
| HWB | hwb(227 36% 34%) | color: hwb(227 36% 34%) | |
| OKLCH | oklch(0.5475 0.0943 271.47) | color: oklch(0.5475 0.0943 271.47) | |
| Lab | lab(47.09 10.03 -33.55) | color: lab(47.09 10.03 -33.55) | |
| LCH | lch(47.09 35.02 286.64) | color: lch(47.09 35.02 286.64) |
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)
#64649A — rgb(100, 100, 154)
Deuteranopia (Green-blind)
#636296 — rgb(99, 98, 150)
Tritanopia (Blue-blind)
#5E8E8C — rgb(94, 142, 140)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(227, 30%, 51%);
text
color: hsl(227, 30%, 51%);
border
border: 2px solid hsl(227, 30%, 51%);
gradient light
background: linear-gradient(to right, hsl(227, 30%, 71%), hsl(227, 30%, 51%));
gradient dark
background: linear-gradient(to right, hsl(227, 30%, 51%), hsl(227, 30%, 31%))
hex
background-color: #5D6DA8;
tailwind
bg-[hsl(227,30%,51%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(227, 30%, 51%, 0.4);
css variable
--color-primary: hsl(227, 30%, 51%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(227, 30%, 51%)?
HEX: #5D6DA8 | RGB: rgb(93, 109, 168) | CMYK: 45%, 35%, 0%, 34% | HSV: 227°, 45%, 66%. Copy any format from the conversion table above.
What colors go well with #5D6DA8?
The complementary color is HSL(47, 30%, 51%). 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, 30%, 51%) in CSS?
As HSL: color: hsl(227, 30%, 51%); — As HEX: color: #5D6DA8; — As RGB: color: rgb(93, 109, 168); — Tailwind CSS: bg-[hsl(227,30%,51%)] — CSS variable: --color-primary: hsl(227, 30%, 51%);