HSL(217, 40%, 5%)

Very Dark Blue — Blue color

Adjust Color

Color Information

Color Name

Very Dark Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(217,40%,5%)]

Color Conversions

Format Value CSS Usage
HSL hsl(217, 40%, 5%) color: hsl(217, 40%, 5%)
HEX #080C12 color: #080C12
RGB rgb(8, 12, 18) color: rgb(8, 12, 18)
CMYK cmyk(56%, 33%, 0%, 93%)
HSV hsv(216, 56%, 7%)
HWB hwb(216 3% 93%) color: hwb(216 3% 93%)
OKLCH oklch(0.153 0.0146 257.65) color: oklch(0.153 0.0146 257.65)
Lab lab(3.24 0.01 -3.34) color: lab(3.24 0.01 -3.34)
LCH lch(3.24 3.34 270.17) color: lch(3.24 3.34 270.17)

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.6:1
vs Black 1.07: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)

#0A0A11 — rgb(10, 10, 17)

Deuteranopia (Green-blind)

#0A0910 — rgb(10, 9, 16)

Tritanopia (Blue-blind)

#080F0F — rgb(8, 15, 15)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(217, 40%, 5%);

text

color: hsl(217, 40%, 5%);

border

border: 2px solid hsl(217, 40%, 5%);

gradient light

background: linear-gradient(to right, hsl(217, 40%, 25%), hsl(217, 40%, 5%));

gradient dark

background: linear-gradient(to right, hsl(217, 40%, 5%), hsl(217, 40%, 0%))

hex

background-color: #080C12;

tailwind

bg-[hsl(217,40%,5%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(217, 40%, 5%, 0.4);

css variable

--color-primary: hsl(217, 40%, 5%);

Related Colors

Use Cases for Very Dark Blue

Corporate branding Trust signals Tech products Social media Primary buttons

Frequently Asked Questions

What are all the color codes for HSL(217, 40%, 5%)?

HEX: #080C12 | RGB: rgb(8, 12, 18) | CMYK: 56%, 33%, 0%, 93% | HSV: 216°, 56%, 7%. Copy any format from the conversion table above.

What colors go well with #080C12?

The complementary color is HSL(37, 40%, 5%). For a triadic harmony, use hues 217°, 337°, and 97°. For analogous combinations, try hues 187° and 247°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(217, 40%, 5%) in CSS?

As HSL: color: hsl(217, 40%, 5%); — As HEX: color: #080C12; — As RGB: color: rgb(8, 12, 18); — Tailwind CSS: bg-[hsl(217,40%,5%)] — CSS variable: --color-primary: hsl(217, 40%, 5%);