HSL(229, 81%, 34%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(229,81%,34%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(229, 81%, 34%) | color: hsl(229, 81%, 34%) | |
| HEX | #102A9D | color: #102A9D | |
| RGB | rgb(16, 42, 157) | color: rgb(16, 42, 157) | |
| CMYK | cmyk(90%, 73%, 0%, 38%) | — | |
| HSV | hsv(229, 90%, 62%) | — | |
| HWB | hwb(229 6% 38%) | color: hwb(229 6% 38%) | |
| OKLCH | oklch(0.3625 0.1858 265.81) | color: oklch(0.3625 0.1858 265.81) | |
| Lab | lab(24.32 37.03 -63.91) | color: lab(24.32 37.03 -63.91) | |
| LCH | lch(24.32 73.86 300.09) | color: lch(24.32 73.86 300.09) |
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)
#1B1B81 — rgb(27, 27, 129)
Deuteranopia (Green-blind)
#1A187B — rgb(26, 24, 123)
Tritanopia (Blue-blind)
#116B66 — rgb(17, 107, 102)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(229, 81%, 34%);
text
color: hsl(229, 81%, 34%);
border
border: 2px solid hsl(229, 81%, 34%);
gradient light
background: linear-gradient(to right, hsl(229, 81%, 54%), hsl(229, 81%, 34%));
gradient dark
background: linear-gradient(to right, hsl(229, 81%, 34%), hsl(229, 81%, 14%))
hex
background-color: #102A9D;
tailwind
bg-[hsl(229,81%,34%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(229, 81%, 34%, 0.4);
css variable
--color-primary: hsl(229, 81%, 34%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(229, 81%, 34%)?
HEX: #102A9D | RGB: rgb(16, 42, 157) | CMYK: 90%, 73%, 0%, 38% | HSV: 229°, 90%, 62%. Copy any format from the conversion table above.
What colors go well with #102A9D?
The complementary color is HSL(49, 81%, 34%). 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, 81%, 34%) in CSS?
As HSL: color: hsl(229, 81%, 34%); — As HEX: color: #102A9D; — As RGB: color: rgb(16, 42, 157); — Tailwind CSS: bg-[hsl(229,81%,34%)] — CSS variable: --color-primary: hsl(229, 81%, 34%);