HSL(229, 49%, 23%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(229,49%,23%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(229, 49%, 23%) | color: hsl(229, 49%, 23%) | |
| HEX | #1E2857 | color: #1E2857 | |
| RGB | rgb(30, 40, 87) | color: rgb(30, 40, 87) | |
| CMYK | cmyk(66%, 54%, 0%, 66%) | — | |
| HSV | hsv(229, 66%, 34%) | — | |
| HWB | hwb(229 12% 66%) | color: hwb(229 12% 66%) | |
| OKLCH | oklch(0.2963 0.0854 271.27) | color: oklch(0.2963 0.0854 271.27) | |
| Lab | lab(17.83 12.42 -29.85) | color: lab(17.83 12.42 -29.85) | |
| LCH | lch(17.83 32.33 292.59) | color: lch(17.83 32.33 292.59) |
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)
#22224C — rgb(34, 34, 76)
Deuteranopia (Green-blind)
#222149 — rgb(34, 33, 73)
Tritanopia (Blue-blind)
#1F4341 — rgb(31, 67, 65)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(229, 49%, 23%);
text
color: hsl(229, 49%, 23%);
border
border: 2px solid hsl(229, 49%, 23%);
gradient light
background: linear-gradient(to right, hsl(229, 49%, 43%), hsl(229, 49%, 23%));
gradient dark
background: linear-gradient(to right, hsl(229, 49%, 23%), hsl(229, 49%, 3%))
hex
background-color: #1E2857;
tailwind
bg-[hsl(229,49%,23%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(229, 49%, 23%, 0.4);
css variable
--color-primary: hsl(229, 49%, 23%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(229, 49%, 23%)?
HEX: #1E2857 | RGB: rgb(30, 40, 87) | CMYK: 66%, 54%, 0%, 66% | HSV: 229°, 66%, 34%. Copy any format from the conversion table above.
What colors go well with #1E2857?
The complementary color is HSL(49, 49%, 23%). For a triadic harmony, use hues 229°, 349°, and 109°. For analogous combinations, try hues 199° and 259°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(229, 49%, 23%) in CSS?
As HSL: color: hsl(229, 49%, 23%); — As HEX: color: #1E2857; — As RGB: color: rgb(30, 40, 87); — Tailwind CSS: bg-[hsl(229,49%,23%)] — CSS variable: --color-primary: hsl(229, 49%, 23%);