HSL(246, 66%, 4%)

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(246,66%,4%)]

Color Conversions

Format Value CSS Usage
HSL hsl(246, 66%, 4%) color: hsl(246, 66%, 4%)
HEX #050311 color: #050311
RGB rgb(5, 3, 17) color: rgb(5, 3, 17)
CMYK cmyk(71%, 82%, 0%, 93%)
HSV hsv(249, 82%, 7%)
HWB hwb(249 1% 93%) color: hwb(249 1% 93%)
OKLCH oklch(0.1146 0.0361 289.05) color: oklch(0.1146 0.0361 289.05)
Lab lab(1.25 2.67 -5.67) color: lab(1.25 2.67 -5.67)
LCH lch(1.25 6.27 295.22) color: lch(1.25 6.27 295.22)

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.44: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)

#04040E — rgb(4, 4, 14)

Deuteranopia (Green-blind)

#04040D — rgb(4, 4, 13)

Tritanopia (Blue-blind)

#050B0A — rgb(5, 11, 10)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(246, 66%, 4%);

text

color: hsl(246, 66%, 4%);

border

border: 2px solid hsl(246, 66%, 4%);

gradient light

background: linear-gradient(to right, hsl(246, 66%, 24%), hsl(246, 66%, 4%));

gradient dark

background: linear-gradient(to right, hsl(246, 66%, 4%), hsl(246, 66%, 0%))

hex

background-color: #050311;

tailwind

bg-[hsl(246,66%,4%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(246, 66%, 4%, 0.4);

css variable

--color-primary: hsl(246, 66%, 4%);

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(246, 66%, 4%)?

HEX: #050311 | RGB: rgb(5, 3, 17) | CMYK: 71%, 82%, 0%, 93% | HSV: 249°, 82%, 7%. Copy any format from the conversion table above.

What colors go well with #050311?

The complementary color is HSL(66, 66%, 4%). For a triadic harmony, use hues 246°, 6°, and 126°. For analogous combinations, try hues 216° and 276°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(246, 66%, 4%) in CSS?

As HSL: color: hsl(246, 66%, 4%); — As HEX: color: #050311; — As RGB: color: rgb(5, 3, 17); — Tailwind CSS: bg-[hsl(246,66%,4%)] — CSS variable: --color-primary: hsl(246, 66%, 4%);