HSL(247, 75%, 17%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(247,75%,17%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(247, 75%, 17%) | color: hsl(247, 75%, 17%) | |
| HEX | #120B4C | color: #120B4C | |
| RGB | rgb(18, 11, 76) | color: rgb(18, 11, 76) | |
| CMYK | cmyk(76%, 86%, 0%, 70%) | — | |
| HSV | hsv(246, 86%, 30%) | — | |
| HWB | hwb(246 4% 70%) | color: hwb(246 4% 70%) | |
| OKLCH | oklch(0.2188 0.1117 276.68) | color: oklch(0.2188 0.1117 276.68) | |
| Lab | lab(8.04 26.47 -38.37) | color: lab(8.04 26.47 -38.37) | |
| LCH | lch(8.04 46.61 304.6) | color: lch(8.04 46.61 304.6) |
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)
#0F0F3C — rgb(15, 15, 60)
Deuteranopia (Green-blind)
#0F1039 — rgb(15, 16, 57)
Tritanopia (Blue-blind)
#12302D — rgb(18, 48, 45)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(247, 75%, 17%);
text
color: hsl(247, 75%, 17%);
border
border: 2px solid hsl(247, 75%, 17%);
gradient light
background: linear-gradient(to right, hsl(247, 75%, 37%), hsl(247, 75%, 17%));
gradient dark
background: linear-gradient(to right, hsl(247, 75%, 17%), hsl(247, 75%, 0%))
hex
background-color: #120B4C;
tailwind
bg-[hsl(247,75%,17%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(247, 75%, 17%, 0.4);
css variable
--color-primary: hsl(247, 75%, 17%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(247, 75%, 17%)?
HEX: #120B4C | RGB: rgb(18, 11, 76) | CMYK: 76%, 86%, 0%, 70% | HSV: 246°, 86%, 30%. Copy any format from the conversion table above.
What colors go well with #120B4C?
The complementary color is HSL(67, 75%, 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, 75%, 17%) in CSS?
As HSL: color: hsl(247, 75%, 17%); — As HEX: color: #120B4C; — As RGB: color: rgb(18, 11, 76); — Tailwind CSS: bg-[hsl(247,75%,17%)] — CSS variable: --color-primary: hsl(247, 75%, 17%);