HSL(251, 92%, 23%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(251,92%,23%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(251, 92%, 23%) | color: hsl(251, 92%, 23%) | |
| HEX | #180571 | color: #180571 | |
| RGB | rgb(24, 5, 113) | color: rgb(24, 5, 113) | |
| CMYK | cmyk(79%, 96%, 0%, 56%) | — | |
| HSV | hsv(251, 96%, 44%) | — | |
| HWB | hwb(251 2% 56%) | color: hwb(251 2% 56%) | |
| OKLCH | oklch(0.2656 0.1612 274.22) | color: oklch(0.2656 0.1612 274.22) | |
| Lab | lab(12.57 41.75 -55.67) | color: lab(12.57 41.75 -55.67) | |
| LCH | lch(12.57 69.59 306.87) | color: lch(12.57 69.59 306.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)
#101057 — rgb(16, 16, 87)
Deuteranopia (Green-blind)
#111251 — rgb(17, 18, 81)
Tritanopia (Blue-blind)
#17423E — rgb(23, 66, 62)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(251, 92%, 23%);
text
color: hsl(251, 92%, 23%);
border
border: 2px solid hsl(251, 92%, 23%);
gradient light
background: linear-gradient(to right, hsl(251, 92%, 43%), hsl(251, 92%, 23%));
gradient dark
background: linear-gradient(to right, hsl(251, 92%, 23%), hsl(251, 92%, 3%))
hex
background-color: #180571;
tailwind
bg-[hsl(251,92%,23%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(251, 92%, 23%, 0.4);
css variable
--color-primary: hsl(251, 92%, 23%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(251, 92%, 23%)?
HEX: #180571 | RGB: rgb(24, 5, 113) | CMYK: 79%, 96%, 0%, 56% | HSV: 251°, 96%, 44%. Copy any format from the conversion table above.
What colors go well with #180571?
The complementary color is HSL(71, 92%, 23%). For a triadic harmony, use hues 251°, 11°, and 131°. For analogous combinations, try hues 221° and 281°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(251, 92%, 23%) in CSS?
As HSL: color: hsl(251, 92%, 23%); — As HEX: color: #180571; — As RGB: color: rgb(24, 5, 113); — Tailwind CSS: bg-[hsl(251,92%,23%)] — CSS variable: --color-primary: hsl(251, 92%, 23%);