HSL(262, 18%, 12%)
Very Dark Indigo — Indigo color
Adjust Color
Color Information
Color Name
Very Dark Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
N/A
CSS Class
bg-[hsl(262,18%,12%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(262, 18%, 12%) | color: hsl(262, 18%, 12%) | |
| HEX | #1D1924 | color: #1D1924 | |
| RGB | rgb(29, 25, 36) | color: rgb(29, 25, 36) | |
| CMYK | cmyk(19%, 31%, 0%, 86%) | — | |
| HSV | hsv(262, 31%, 14%) | — | |
| HWB | hwb(262 10% 86%) | color: hwb(262 10% 86%) | |
| OKLCH | oklch(0.2232 0.0218 301.28) | color: oklch(0.2232 0.0218 301.28) | |
| Lab | lab(9.67 4.88 -6.84) | color: lab(9.67 4.88 -6.84) | |
| LCH | lch(9.67 8.4 305.51) | color: lch(9.67 8.4 305.51) |
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)
#1B1B21 — rgb(27, 27, 33)
Deuteranopia (Green-blind)
#1C1C21 — rgb(28, 28, 33)
Tritanopia (Blue-blind)
#1D1F1F — rgb(29, 31, 31)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(262, 18%, 12%);
text
color: hsl(262, 18%, 12%);
border
border: 2px solid hsl(262, 18%, 12%);
gradient light
background: linear-gradient(to right, hsl(262, 18%, 32%), hsl(262, 18%, 12%));
gradient dark
background: linear-gradient(to right, hsl(262, 18%, 12%), hsl(262, 18%, 0%))
hex
background-color: #1D1924;
tailwind
bg-[hsl(262,18%,12%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(262, 18%, 12%, 0.4);
css variable
--color-primary: hsl(262, 18%, 12%);
Related Colors
Use Cases for Very Dark Indigo
Frequently Asked Questions
What are all the color codes for HSL(262, 18%, 12%)?
HEX: #1D1924 | RGB: rgb(29, 25, 36) | CMYK: 19%, 31%, 0%, 86% | HSV: 262°, 31%, 14%. Copy any format from the conversion table above.
What colors go well with #1D1924?
The complementary color is HSL(82, 18%, 12%). For a triadic harmony, use hues 262°, 22°, and 142°. For analogous combinations, try hues 232° and 292°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(262, 18%, 12%) in CSS?
As HSL: color: hsl(262, 18%, 12%); — As HEX: color: #1D1924; — As RGB: color: rgb(29, 25, 36); — Tailwind CSS: bg-[hsl(262,18%,12%)] — CSS variable: --color-primary: hsl(262, 18%, 12%);