HSL(227, 50%, 54%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(227,50%,54%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(227, 50%, 54%) | color: hsl(227, 50%, 54%) | |
| HEX | #4F68C4 | color: #4F68C4 | |
| RGB | rgb(79, 104, 196) | color: rgb(79, 104, 196) | |
| CMYK | cmyk(60%, 47%, 0%, 23%) | — | |
| HSV | hsv(227, 60%, 77%) | — | |
| HWB | hwb(227 31% 23%) | color: hwb(227 31% 23%) | |
| OKLCH | oklch(0.5447 0.1457 269.62) | color: oklch(0.5447 0.1457 269.62) | |
| Lab | lab(46.37 18.99 -51.02) | color: lab(46.37 18.99 -51.02) | |
| LCH | lch(46.37 54.44 290.42) | color: lch(46.37 54.44 290.42) |
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)
#5A5AAE — rgb(90, 90, 174)
Deuteranopia (Green-blind)
#5857A8 — rgb(88, 87, 168)
Tritanopia (Blue-blind)
#509C98 — rgb(80, 156, 152)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(227, 50%, 54%);
text
color: hsl(227, 50%, 54%);
border
border: 2px solid hsl(227, 50%, 54%);
gradient light
background: linear-gradient(to right, hsl(227, 50%, 74%), hsl(227, 50%, 54%));
gradient dark
background: linear-gradient(to right, hsl(227, 50%, 54%), hsl(227, 50%, 34%))
hex
background-color: #4F68C4;
tailwind
bg-[hsl(227,50%,54%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(227, 50%, 54%, 0.4);
css variable
--color-primary: hsl(227, 50%, 54%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(227, 50%, 54%)?
HEX: #4F68C4 | RGB: rgb(79, 104, 196) | CMYK: 60%, 47%, 0%, 23% | HSV: 227°, 60%, 77%. Copy any format from the conversion table above.
What colors go well with #4F68C4?
The complementary color is HSL(47, 50%, 54%). 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, 50%, 54%) in CSS?
As HSL: color: hsl(227, 50%, 54%); — As HEX: color: #4F68C4; — As RGB: color: rgb(79, 104, 196); — Tailwind CSS: bg-[hsl(227,50%,54%)] — CSS variable: --color-primary: hsl(227, 50%, 54%);