HSL(247, 57%, 16%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(247,57%,16%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(247, 57%, 16%) | color: hsl(247, 57%, 16%) | |
| HEX | #171240 | color: #171240 | |
| RGB | rgb(23, 18, 64) | color: rgb(23, 18, 64) | |
| CMYK | cmyk(64%, 72%, 0%, 75%) | — | |
| HSV | hsv(247, 72%, 25%) | — | |
| HWB | hwb(247 7% 75%) | color: hwb(247 7% 75%) | |
| OKLCH | oklch(0.2219 0.0839 282.03) | color: oklch(0.2219 0.0839 282.03) | |
| Lab | lab(8.86 18.1 -28.56) | color: lab(8.86 18.1 -28.56) | |
| LCH | lch(8.86 33.81 302.36) | color: lch(8.86 33.81 302.36) |
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)
#151535 — rgb(21, 21, 53)
Deuteranopia (Green-blind)
#151632 — rgb(21, 22, 50)
Tritanopia (Blue-blind)
#172C2A — rgb(23, 44, 42)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(247, 57%, 16%);
text
color: hsl(247, 57%, 16%);
border
border: 2px solid hsl(247, 57%, 16%);
gradient light
background: linear-gradient(to right, hsl(247, 57%, 36%), hsl(247, 57%, 16%));
gradient dark
background: linear-gradient(to right, hsl(247, 57%, 16%), hsl(247, 57%, 0%))
hex
background-color: #171240;
tailwind
bg-[hsl(247,57%,16%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(247, 57%, 16%, 0.4);
css variable
--color-primary: hsl(247, 57%, 16%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(247, 57%, 16%)?
HEX: #171240 | RGB: rgb(23, 18, 64) | CMYK: 64%, 72%, 0%, 75% | HSV: 247°, 72%, 25%. Copy any format from the conversion table above.
What colors go well with #171240?
The complementary color is HSL(67, 57%, 16%). 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, 57%, 16%) in CSS?
As HSL: color: hsl(247, 57%, 16%); — As HEX: color: #171240; — As RGB: color: rgb(23, 18, 64); — Tailwind CSS: bg-[hsl(247,57%,16%)] — CSS variable: --color-primary: hsl(247, 57%, 16%);