HSL(218, 43%, 28%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(218,43%,28%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(218, 43%, 28%) | color: hsl(218, 43%, 28%) | |
| HEX | #293F66 | color: #293F66 | |
| RGB | rgb(41, 63, 102) | color: rgb(41, 63, 102) | |
| CMYK | cmyk(60%, 38%, 0%, 60%) | — | |
| HSV | hsv(218, 60%, 40%) | — | |
| HWB | hwb(218 16% 60%) | color: hwb(218 16% 60%) | |
| OKLCH | oklch(0.3694 0.0731 261.18) | color: oklch(0.3694 0.0731 261.18) | |
| Lab | lab(26.69 4.44 -25.53) | color: lab(26.69 4.44 -25.53) | |
| LCH | lch(26.69 25.91 279.87) | color: lch(26.69 25.91 279.87) |
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)
#33335D — rgb(51, 51, 93)
Deuteranopia (Green-blind)
#31305A — rgb(49, 48, 90)
Tritanopia (Blue-blind)
#2A5553 — rgb(42, 85, 83)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(218, 43%, 28%);
text
color: hsl(218, 43%, 28%);
border
border: 2px solid hsl(218, 43%, 28%);
gradient light
background: linear-gradient(to right, hsl(218, 43%, 48%), hsl(218, 43%, 28%));
gradient dark
background: linear-gradient(to right, hsl(218, 43%, 28%), hsl(218, 43%, 8%))
hex
background-color: #293F66;
tailwind
bg-[hsl(218,43%,28%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(218, 43%, 28%, 0.4);
css variable
--color-primary: hsl(218, 43%, 28%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(218, 43%, 28%)?
HEX: #293F66 | RGB: rgb(41, 63, 102) | CMYK: 60%, 38%, 0%, 60% | HSV: 218°, 60%, 40%. Copy any format from the conversion table above.
What colors go well with #293F66?
The complementary color is HSL(38, 43%, 28%). For a triadic harmony, use hues 218°, 338°, and 98°. For analogous combinations, try hues 188° and 248°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(218, 43%, 28%) in CSS?
As HSL: color: hsl(218, 43%, 28%); — As HEX: color: #293F66; — As RGB: color: rgb(41, 63, 102); — Tailwind CSS: bg-[hsl(218,43%,28%)] — CSS variable: --color-primary: hsl(218, 43%, 28%);