HSL(227, 43%, 28%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(227,43%,28%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(227, 43%, 28%) | color: hsl(227, 43%, 28%) | |
| HEX | #293666 | color: #293666 | |
| RGB | rgb(41, 54, 102) | color: rgb(41, 54, 102) | |
| CMYK | cmyk(60%, 47%, 0%, 60%) | — | |
| HSV | hsv(227, 60%, 40%) | — | |
| HWB | hwb(227 16% 60%) | color: hwb(227 16% 60%) | |
| OKLCH | oklch(0.3478 0.0853 270.1) | color: oklch(0.3478 0.0853 270.1) | |
| Lab | lab(23.9 10.65 -29.97) | color: lab(23.9 10.65 -29.97) | |
| LCH | lch(23.9 31.81 289.56) | color: lch(23.9 31.81 289.56) |
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)
#2F2F5A — rgb(47, 47, 90)
Deuteranopia (Green-blind)
#2E2D58 — rgb(46, 45, 88)
Tritanopia (Blue-blind)
#2A514F — rgb(42, 81, 79)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(227, 43%, 28%);
text
color: hsl(227, 43%, 28%);
border
border: 2px solid hsl(227, 43%, 28%);
gradient light
background: linear-gradient(to right, hsl(227, 43%, 48%), hsl(227, 43%, 28%));
gradient dark
background: linear-gradient(to right, hsl(227, 43%, 28%), hsl(227, 43%, 8%))
hex
background-color: #293666;
tailwind
bg-[hsl(227,43%,28%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(227, 43%, 28%, 0.4);
css variable
--color-primary: hsl(227, 43%, 28%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(227, 43%, 28%)?
HEX: #293666 | RGB: rgb(41, 54, 102) | CMYK: 60%, 47%, 0%, 60% | HSV: 227°, 60%, 40%. Copy any format from the conversion table above.
What colors go well with #293666?
The complementary color is HSL(47, 43%, 28%). 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, 43%, 28%) in CSS?
As HSL: color: hsl(227, 43%, 28%); — As HEX: color: #293666; — As RGB: color: rgb(41, 54, 102); — Tailwind CSS: bg-[hsl(227,43%,28%)] — CSS variable: --color-primary: hsl(227, 43%, 28%);