HSL(262, 18%, 4%)
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%,4%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(262, 18%, 4%) | color: hsl(262, 18%, 4%) | |
| HEX | #0A080C | color: #0A080C | |
| RGB | rgb(10, 8, 12) | color: rgb(10, 8, 12) | |
| CMYK | cmyk(17%, 33%, 0%, 95%) | — | |
| HSV | hsv(270, 33%, 5%) | — | |
| HWB | hwb(270 3% 95%) | color: hwb(270 3% 95%) | |
| OKLCH | oklch(0.1392 0.0096 308.39) | color: oklch(0.1392 0.0096 308.39) | |
| Lab | lab(2.39 1.09 -1.37) | color: lab(2.39 1.09 -1.37) | |
| LCH | lch(2.39 1.75 308.51) | color: lch(2.39 1.75 308.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)
#09090B — rgb(9, 9, 11)
Deuteranopia (Green-blind)
#09090B — rgb(9, 9, 11)
Tritanopia (Blue-blind)
#0A0A0A — rgb(10, 10, 10)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(262, 18%, 4%);
text
color: hsl(262, 18%, 4%);
border
border: 2px solid hsl(262, 18%, 4%);
gradient light
background: linear-gradient(to right, hsl(262, 18%, 24%), hsl(262, 18%, 4%));
gradient dark
background: linear-gradient(to right, hsl(262, 18%, 4%), hsl(262, 18%, 0%))
hex
background-color: #0A080C;
tailwind
bg-[hsl(262,18%,4%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(262, 18%, 4%, 0.4);
css variable
--color-primary: hsl(262, 18%, 4%);
Related Colors
Use Cases for Very Dark Indigo
Frequently Asked Questions
What are all the color codes for HSL(262, 18%, 4%)?
HEX: #0A080C | RGB: rgb(10, 8, 12) | CMYK: 17%, 33%, 0%, 95% | HSV: 270°, 33%, 5%. Copy any format from the conversion table above.
What colors go well with #0A080C?
The complementary color is HSL(82, 18%, 4%). 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%, 4%) in CSS?
As HSL: color: hsl(262, 18%, 4%); — As HEX: color: #0A080C; — As RGB: color: rgb(10, 8, 12); — Tailwind CSS: bg-[hsl(262,18%,4%)] — CSS variable: --color-primary: hsl(262, 18%, 4%);