HSL(258, 77%, 7%)

Very Dark Indigo — Indigo color

Adjust Color

Color Information

Color Name

Very Dark Indigo

Color Family

Indigo

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(258,77%,7%)]

Color Conversions

Format Value CSS Usage
HSL hsl(258, 77%, 7%) color: hsl(258, 77%, 7%)
HEX #0C0420 color: #0C0420
RGB rgb(12, 4, 32) color: rgb(12, 4, 32)
CMYK cmyk(63%, 88%, 0%, 87%)
HSV hsv(257, 88%, 13%)
HWB hwb(257 2% 87%) color: hwb(257 2% 87%)
OKLCH oklch(0.1456 0.0588 292.44) color: oklch(0.1456 0.0588 292.44)
Lab lab(2.43 8.18 -15.01) color: lab(2.43 8.18 -15.01)
LCH lch(2.43 17.09 298.59) color: lch(2.43 17.09 298.59)

Color Theory

Complementary

Triadic

Analogous

Tetradic (Square)

Split-Complementary

Accessibility (WCAG)

White text on color

Black text on color

Color on white bg

Colored text

Contrast Ratios

vs White 19.93:1
vs Black 1.05:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

AA Large (3:1)

on White: PASS ✓ on Black: FAIL ✗

AAA Normal (7:1)

on White: PASS ✓

Best text on this color: white

Color Blindness Simulation

Protanopia (Red-blind)

#090819 — rgb(9, 8, 25)

Deuteranopia (Green-blind)

#090A18 — rgb(9, 10, 24)

Tritanopia (Blue-blind)

#0C1413 — rgb(12, 20, 19)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(258, 77%, 7%);

text

color: hsl(258, 77%, 7%);

border

border: 2px solid hsl(258, 77%, 7%);

gradient light

background: linear-gradient(to right, hsl(258, 77%, 27%), hsl(258, 77%, 7%));

gradient dark

background: linear-gradient(to right, hsl(258, 77%, 7%), hsl(258, 77%, 0%))

hex

background-color: #0C0420;

tailwind

bg-[hsl(258,77%,7%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(258, 77%, 7%, 0.4);

css variable

--color-primary: hsl(258, 77%, 7%);

Related Colors

Use Cases for Very Dark Indigo

UI elements Web design Branding Graphic design Print design

Frequently Asked Questions

What are all the color codes for HSL(258, 77%, 7%)?

HEX: #0C0420 | RGB: rgb(12, 4, 32) | CMYK: 63%, 88%, 0%, 87% | HSV: 257°, 88%, 13%. Copy any format from the conversion table above.

What colors go well with #0C0420?

The complementary color is HSL(78, 77%, 7%). For a triadic harmony, use hues 258°, 18°, and 138°. For analogous combinations, try hues 228° and 288°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(258, 77%, 7%) in CSS?

As HSL: color: hsl(258, 77%, 7%); — As HEX: color: #0C0420; — As RGB: color: rgb(12, 4, 32); — Tailwind CSS: bg-[hsl(258,77%,7%)] — CSS variable: --color-primary: hsl(258, 77%, 7%);