HSL(227, 70%, 60%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(227,70%,60%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(227, 70%, 60%) | color: hsl(227, 70%, 60%) | |
| HEX | #5271E0 | color: #5271E0 | |
| RGB | rgb(82, 113, 224) | color: rgb(82, 113, 224) | |
| CMYK | cmyk(63%, 50%, 0%, 12%) | — | |
| HSV | hsv(227, 63%, 88%) | — | |
| HWB | hwb(227 33% 12%) | color: hwb(227 33% 12%) | |
| OKLCH | oklch(0.5833 0.1722 268.82) | color: oklch(0.5833 0.1722 268.82) | |
| Lab | lab(50.67 23.47 -60.07) | color: lab(50.67 23.47 -60.07) | |
| LCH | lch(50.67 64.49 291.34) | color: lch(50.67 64.49 291.34) |
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: black
Color Blindness Simulation
Protanopia (Red-blind)
#5F60C5 — rgb(95, 96, 197)
Deuteranopia (Green-blind)
#5E5BBF — rgb(94, 91, 191)
Tritanopia (Blue-blind)
#54B0AB — rgb(84, 176, 171)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(227, 70%, 60%);
text
color: hsl(227, 70%, 60%);
border
border: 2px solid hsl(227, 70%, 60%);
gradient light
background: linear-gradient(to right, hsl(227, 70%, 80%), hsl(227, 70%, 60%));
gradient dark
background: linear-gradient(to right, hsl(227, 70%, 60%), hsl(227, 70%, 40%))
hex
background-color: #5271E0;
tailwind
bg-[hsl(227,70%,60%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(227, 70%, 60%, 0.4);
css variable
--color-primary: hsl(227, 70%, 60%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(227, 70%, 60%)?
HEX: #5271E0 | RGB: rgb(82, 113, 224) | CMYK: 63%, 50%, 0%, 12% | HSV: 227°, 63%, 88%. Copy any format from the conversion table above.
What colors go well with #5271E0?
The complementary color is HSL(47, 70%, 60%). 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, 70%, 60%) in CSS?
As HSL: color: hsl(227, 70%, 60%); — As HEX: color: #5271E0; — As RGB: color: rgb(82, 113, 224); — Tailwind CSS: bg-[hsl(227,70%,60%)] — CSS variable: --color-primary: hsl(227, 70%, 60%);