HSL(270, 70%, 12%)
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(270,70%,12%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(270, 70%, 12%) | color: hsl(270, 70%, 12%) | |
| HEX | #1F0934 | color: #1F0934 | |
| RGB | rgb(31, 9, 52) | color: rgb(31, 9, 52) | |
| CMYK | cmyk(40%, 83%, 0%, 80%) | — | |
| HSV | hsv(271, 83%, 20%) | — | |
| HWB | hwb(271 3% 80%) | color: hwb(271 3% 80%) | |
| OKLCH | oklch(0.2041 0.0804 303.33) | color: oklch(0.2041 0.0804 303.33) | |
| Lab | lab(6.64 21.47 -23.47) | color: lab(6.64 21.47 -23.47) | |
| LCH | lch(6.64 31.81 312.45) | color: lch(6.64 31.81 312.45) |
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)
#15152A — rgb(21, 21, 42)
Deuteranopia (Green-blind)
#171827 — rgb(23, 24, 39)
Tritanopia (Blue-blind)
#1E2120 — rgb(30, 33, 32)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(270, 70%, 12%);
text
color: hsl(270, 70%, 12%);
border
border: 2px solid hsl(270, 70%, 12%);
gradient light
background: linear-gradient(to right, hsl(270, 70%, 32%), hsl(270, 70%, 12%));
gradient dark
background: linear-gradient(to right, hsl(270, 70%, 12%), hsl(270, 70%, 0%))
hex
background-color: #1F0934;
tailwind
bg-[hsl(270,70%,12%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(270, 70%, 12%, 0.4);
css variable
--color-primary: hsl(270, 70%, 12%);
Related Colors
Use Cases for Very Dark Indigo
Frequently Asked Questions
What are all the color codes for HSL(270, 70%, 12%)?
HEX: #1F0934 | RGB: rgb(31, 9, 52) | CMYK: 40%, 83%, 0%, 80% | HSV: 271°, 83%, 20%. Copy any format from the conversion table above.
What colors go well with #1F0934?
The complementary color is HSL(90, 70%, 12%). For a triadic harmony, use hues 270°, 30°, and 150°. For analogous combinations, try hues 240° and 300°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(270, 70%, 12%) in CSS?
As HSL: color: hsl(270, 70%, 12%); — As HEX: color: #1F0934; — As RGB: color: rgb(31, 9, 52); — Tailwind CSS: bg-[hsl(270,70%,12%)] — CSS variable: --color-primary: hsl(270, 70%, 12%);