HSL(227, 64%, 47%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(227,64%,47%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(227, 64%, 47%) | color: hsl(227, 64%, 47%) | |
| HEX | #2B4CC5 | color: #2B4CC5 | |
| RGB | rgb(43, 76, 197) | color: rgb(43, 76, 197) | |
| CMYK | cmyk(78%, 61%, 0%, 23%) | — | |
| HSV | hsv(227, 78%, 77%) | — | |
| HWB | hwb(227 17% 23%) | color: hwb(227 17% 23%) | |
| OKLCH | oklch(0.4719 0.1922 266.81) | color: oklch(0.4719 0.1922 266.81) | |
| Lab | lab(37.32 32.04 -66.35) | color: lab(37.32 32.04 -66.35) | |
| LCH | lch(37.32 73.68 295.78) | color: lch(37.32 73.68 295.78) |
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)
#393AA8 — rgb(57, 58, 168)
Deuteranopia (Green-blind)
#3735A1 — rgb(55, 53, 161)
Tritanopia (Blue-blind)
#2D918C — rgb(45, 145, 140)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(227, 64%, 47%);
text
color: hsl(227, 64%, 47%);
border
border: 2px solid hsl(227, 64%, 47%);
gradient light
background: linear-gradient(to right, hsl(227, 64%, 67%), hsl(227, 64%, 47%));
gradient dark
background: linear-gradient(to right, hsl(227, 64%, 47%), hsl(227, 64%, 27%))
hex
background-color: #2B4CC5;
tailwind
bg-[hsl(227,64%,47%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(227, 64%, 47%, 0.4);
css variable
--color-primary: hsl(227, 64%, 47%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(227, 64%, 47%)?
HEX: #2B4CC5 | RGB: rgb(43, 76, 197) | CMYK: 78%, 61%, 0%, 23% | HSV: 227°, 78%, 77%. Copy any format from the conversion table above.
What colors go well with #2B4CC5?
The complementary color is HSL(47, 64%, 47%). 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, 64%, 47%) in CSS?
As HSL: color: hsl(227, 64%, 47%); — As HEX: color: #2B4CC5; — As RGB: color: rgb(43, 76, 197); — Tailwind CSS: bg-[hsl(227,64%,47%)] — CSS variable: --color-primary: hsl(227, 64%, 47%);