HSL(271, 72%, 2%)
Very Dark Indigo — Indigo color
Adjust Color
Color Information
Color Name
Very Dark Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(271,72%,2%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(271, 72%, 2%) | color: hsl(271, 72%, 2%) | |
| HEX | #050109 | color: #050109 | |
| RGB | rgb(5, 1, 9) | color: rgb(5, 1, 9) | |
| CMYK | cmyk(44%, 89%, 0%, 96%) | — | |
| HSV | hsv(270, 89%, 4%) | — | |
| HWB | hwb(270 0% 96%) | color: hwb(270 0% 96%) | |
| OKLCH | oklch(0.0944 0.0331 310.98) | color: oklch(0.0944 0.0331 310.98) | |
| Lab | lab(0.67 2.16 -2.66) | color: lab(0.67 2.16 -2.66) | |
| LCH | lch(0.67 3.43 309.08) | color: lch(0.67 3.43 309.08) |
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)
#030307 — rgb(3, 3, 7)
Deuteranopia (Green-blind)
#040407 — rgb(4, 4, 7)
Tritanopia (Blue-blind)
#050605 — rgb(5, 6, 5)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(271, 72%, 2%);
text
color: hsl(271, 72%, 2%);
border
border: 2px solid hsl(271, 72%, 2%);
gradient light
background: linear-gradient(to right, hsl(271, 72%, 22%), hsl(271, 72%, 2%));
gradient dark
background: linear-gradient(to right, hsl(271, 72%, 2%), hsl(271, 72%, 0%))
hex
background-color: #050109;
tailwind
bg-[hsl(271,72%,2%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(271, 72%, 2%, 0.4);
css variable
--color-primary: hsl(271, 72%, 2%);
Related Colors
Use Cases for Very Dark Indigo
Frequently Asked Questions
What are all the color codes for HSL(271, 72%, 2%)?
HEX: #050109 | RGB: rgb(5, 1, 9) | CMYK: 44%, 89%, 0%, 96% | HSV: 270°, 89%, 4%. Copy any format from the conversion table above.
What colors go well with #050109?
The complementary color is HSL(91, 72%, 2%). For a triadic harmony, use hues 271°, 31°, and 151°. For analogous combinations, try hues 241° and 301°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(271, 72%, 2%) in CSS?
As HSL: color: hsl(271, 72%, 2%); — As HEX: color: #050109; — As RGB: color: rgb(5, 1, 9); — Tailwind CSS: bg-[hsl(271,72%,2%)] — CSS variable: --color-primary: hsl(271, 72%, 2%);