HSL(247, 50%, 17%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(247,50%,17%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(247, 50%, 17%) | color: hsl(247, 50%, 17%) | |
| HEX | #1B1641 | color: #1B1641 | |
| RGB | rgb(27, 22, 65) | color: rgb(27, 22, 65) | |
| CMYK | cmyk(58%, 66%, 0%, 75%) | — | |
| HSV | hsv(247, 66%, 25%) | — | |
| HWB | hwb(247 9% 75%) | color: hwb(247 9% 75%) | |
| OKLCH | oklch(0.235 0.0785 283.84) | color: oklch(0.235 0.0785 283.84) | |
| Lab | lab(10.47 16.47 -26.64) | color: lab(10.47 16.47 -26.64) | |
| LCH | lch(10.47 31.32 301.73) | color: lch(10.47 31.32 301.73) |
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)
#191937 — rgb(25, 25, 55)
Deuteranopia (Green-blind)
#191A34 — rgb(25, 26, 52)
Tritanopia (Blue-blind)
#1B2E2D — rgb(27, 46, 45)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(247, 50%, 17%);
text
color: hsl(247, 50%, 17%);
border
border: 2px solid hsl(247, 50%, 17%);
gradient light
background: linear-gradient(to right, hsl(247, 50%, 37%), hsl(247, 50%, 17%));
gradient dark
background: linear-gradient(to right, hsl(247, 50%, 17%), hsl(247, 50%, 0%))
hex
background-color: #1B1641;
tailwind
bg-[hsl(247,50%,17%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(247, 50%, 17%, 0.4);
css variable
--color-primary: hsl(247, 50%, 17%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(247, 50%, 17%)?
HEX: #1B1641 | RGB: rgb(27, 22, 65) | CMYK: 58%, 66%, 0%, 75% | HSV: 247°, 66%, 25%. Copy any format from the conversion table above.
What colors go well with #1B1641?
The complementary color is HSL(67, 50%, 17%). For a triadic harmony, use hues 247°, 7°, and 127°. For analogous combinations, try hues 217° and 277°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(247, 50%, 17%) in CSS?
As HSL: color: hsl(247, 50%, 17%); — As HEX: color: #1B1641; — As RGB: color: rgb(27, 22, 65); — Tailwind CSS: bg-[hsl(247,50%,17%)] — CSS variable: --color-primary: hsl(247, 50%, 17%);