HSL(262, 55%, 2%)

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(262,55%,2%)]

Color Conversions

Format Value CSS Usage
HSL hsl(262, 55%, 2%) color: hsl(262, 55%, 2%)
HEX #040208 color: #040208
RGB rgb(4, 2, 8) color: rgb(4, 2, 8)
CMYK cmyk(50%, 75%, 0%, 97%)
HSV hsv(260, 75%, 3%)
HWB hwb(260 1% 97%) color: hwb(260 1% 97%)
OKLCH oklch(0.0977 0.023 302.09) color: oklch(0.0977 0.023 302.09)
Lab lab(0.78 1.36 -2.09) color: lab(0.78 1.36 -2.09)
LCH lch(0.78 2.49 303.05) color: lch(0.78 2.49 303.05)

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 20.64:1
vs Black 1.02: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)

#030307 — rgb(3, 3, 7)

Deuteranopia (Green-blind)

#030306 — rgb(3, 3, 6)

Tritanopia (Blue-blind)

#040505 — rgb(4, 5, 5)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(262, 55%, 2%);

text

color: hsl(262, 55%, 2%);

border

border: 2px solid hsl(262, 55%, 2%);

gradient light

background: linear-gradient(to right, hsl(262, 55%, 22%), hsl(262, 55%, 2%));

gradient dark

background: linear-gradient(to right, hsl(262, 55%, 2%), hsl(262, 55%, 0%))

hex

background-color: #040208;

tailwind

bg-[hsl(262,55%,2%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(262, 55%, 2%, 0.4);

css variable

--color-primary: hsl(262, 55%, 2%);

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(262, 55%, 2%)?

HEX: #040208 | RGB: rgb(4, 2, 8) | CMYK: 50%, 75%, 0%, 97% | HSV: 260°, 75%, 3%. Copy any format from the conversion table above.

What colors go well with #040208?

The complementary color is HSL(82, 55%, 2%). 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, 55%, 2%) in CSS?

As HSL: color: hsl(262, 55%, 2%); — As HEX: color: #040208; — As RGB: color: rgb(4, 2, 8); — Tailwind CSS: bg-[hsl(262,55%,2%)] — CSS variable: --color-primary: hsl(262, 55%, 2%);