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

Color Conversions

Format Value CSS Usage
HSL hsl(262, 30%, 2%) color: hsl(262, 30%, 2%)
HEX #050407 color: #050407
RGB rgb(5, 4, 7) color: rgb(5, 4, 7)
CMYK cmyk(29%, 43%, 0%, 97%)
HSV hsv(260, 43%, 3%)
HWB hwb(260 2% 97%) color: hwb(260 2% 97%)
OKLCH oklch(0.1112 0.0102 301.72) color: oklch(0.1112 0.0102 301.72)
Lab lab(1.21 0.68 -1.04) color: lab(1.21 0.68 -1.04)
LCH lch(1.21 1.24 303.18) color: lch(1.21 1.24 303.18)

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.45:1
vs Black 1.03: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)

#050506 — rgb(5, 5, 6)

Deuteranopia (Green-blind)

#050506 — rgb(5, 5, 6)

Tritanopia (Blue-blind)

#050606 — rgb(5, 6, 6)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

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

text

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

border

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

gradient light

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

gradient dark

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

hex

background-color: #050407;

tailwind

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

box shadow

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

css variable

--color-primary: hsl(262, 30%, 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, 30%, 2%)?

HEX: #050407 | RGB: rgb(5, 4, 7) | CMYK: 29%, 43%, 0%, 97% | HSV: 260°, 43%, 3%. Copy any format from the conversion table above.

What colors go well with #050407?

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

As HSL: color: hsl(262, 30%, 2%); — As HEX: color: #050407; — As RGB: color: rgb(5, 4, 7); — Tailwind CSS: bg-[hsl(262,30%,2%)] — CSS variable: --color-primary: hsl(262, 30%, 2%);