HSL(231, 94%, 32%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(231,94%,32%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(231, 94%, 32%) | color: hsl(231, 94%, 32%) | |
| HEX | #051C9E | color: #051C9E | |
| RGB | rgb(5, 28, 158) | color: rgb(5, 28, 158) | |
| CMYK | cmyk(97%, 82%, 0%, 38%) | — | |
| HSV | hsv(231, 97%, 62%) | — | |
| HWB | hwb(231 2% 38%) | color: hwb(231 2% 38%) | |
| OKLCH | oklch(0.3408 0.2023 264.92) | color: oklch(0.3408 0.2023 264.92) | |
| Lab | lab(21.32 45.13 -69.5) | color: lab(21.32 45.13 -69.5) | |
| LCH | lch(21.32 82.87 303) | color: lch(21.32 82.87 303) |
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)
#0F0F7F — rgb(15, 15, 127)
Deuteranopia (Green-blind)
#0E0C77 — rgb(14, 12, 119)
Tritanopia (Blue-blind)
#066660 — rgb(6, 102, 96)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(231, 94%, 32%);
text
color: hsl(231, 94%, 32%);
border
border: 2px solid hsl(231, 94%, 32%);
gradient light
background: linear-gradient(to right, hsl(231, 94%, 52%), hsl(231, 94%, 32%));
gradient dark
background: linear-gradient(to right, hsl(231, 94%, 32%), hsl(231, 94%, 12%))
hex
background-color: #051C9E;
tailwind
bg-[hsl(231,94%,32%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(231, 94%, 32%, 0.4);
css variable
--color-primary: hsl(231, 94%, 32%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(231, 94%, 32%)?
HEX: #051C9E | RGB: rgb(5, 28, 158) | CMYK: 97%, 82%, 0%, 38% | HSV: 231°, 97%, 62%. Copy any format from the conversion table above.
What colors go well with #051C9E?
The complementary color is HSL(51, 94%, 32%). For a triadic harmony, use hues 231°, 351°, and 111°. For analogous combinations, try hues 201° and 261°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(231, 94%, 32%) in CSS?
As HSL: color: hsl(231, 94%, 32%); — As HEX: color: #051C9E; — As RGB: color: rgb(5, 28, 158); — Tailwind CSS: bg-[hsl(231,94%,32%)] — CSS variable: --color-primary: hsl(231, 94%, 32%);