HSL(234, 84%, 9%)

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(234,84%,9%)]

Color Conversions

Format Value CSS Usage
HSL hsl(234, 84%, 9%) color: hsl(234, 84%, 9%)
HEX #04082A color: #04082A
RGB rgb(4, 8, 42) color: rgb(4, 8, 42)
CMYK cmyk(90%, 81%, 0%, 84%)
HSV hsv(234, 90%, 16%)
HWB hwb(234 2% 84%) color: hwb(234 2% 84%)
OKLCH oklch(0.1593 0.0691 269.4) color: oklch(0.1593 0.0691 269.4)
Lab lab(3.31 8.45 -21.44) color: lab(3.31 8.45 -21.44)
LCH lch(3.31 23.05 291.51) color: lch(3.31 23.05 291.51)

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

#060622 — rgb(6, 6, 34)

Deuteranopia (Green-blind)

#060520 — rgb(6, 5, 32)

Tritanopia (Blue-blind)

#041B1A — rgb(4, 27, 26)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(234, 84%, 9%);

text

color: hsl(234, 84%, 9%);

border

border: 2px solid hsl(234, 84%, 9%);

gradient light

background: linear-gradient(to right, hsl(234, 84%, 29%), hsl(234, 84%, 9%));

gradient dark

background: linear-gradient(to right, hsl(234, 84%, 9%), hsl(234, 84%, 0%))

hex

background-color: #04082A;

tailwind

bg-[hsl(234,84%,9%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(234, 84%, 9%, 0.4);

css variable

--color-primary: hsl(234, 84%, 9%);

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(234, 84%, 9%)?

HEX: #04082A | RGB: rgb(4, 8, 42) | CMYK: 90%, 81%, 0%, 84% | HSV: 234°, 90%, 16%. Copy any format from the conversion table above.

What colors go well with #04082A?

The complementary color is HSL(54, 84%, 9%). For a triadic harmony, use hues 234°, 354°, and 114°. For analogous combinations, try hues 204° and 264°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(234, 84%, 9%) in CSS?

As HSL: color: hsl(234, 84%, 9%); — As HEX: color: #04082A; — As RGB: color: rgb(4, 8, 42); — Tailwind CSS: bg-[hsl(234,84%,9%)] — CSS variable: --color-primary: hsl(234, 84%, 9%);