#04040B Color Information

Hex color code: #04040B

The hex color #04040B is a rich blue with RGB values of (4, 4, 11) and HSL of (240°, 47%, 3%). It is popular in mobile app design.

Try:
Color NameBlack
HEX
#04040B
RGB
4, 4, 11
HSL
240°, 47%, 3%
CMYK
64%, 64%, 0%, 96%

Shades

CSS Usage
color: #04040B;
background-color: #04040B;
border-color: #04040B;
box-shadow: 0 0 10px #04040B;
border: 2px solid #04040B;
Tailwind Usage
bg-[#04040B]
text-[#04040B]
border-[#04040B]
shadow-[0_0_10px_04040B]

Generate Gradient

Gradient CSS
background: linear-gradient(90deg, #04040B, #FF5733);

Preview in UI

Button

.btn-primary { background-color: #04040B; color: #FFFFFF; }

Badge

New Feature
.badge { background-color: #04040B; color: #FFFFFF; }

Text Highlight

The quick brown fox jumps over the lazy dog. highlighted text example shows how the color looks as a text highlight.

Card

Card Title

This card uses your color as a border accent.

.card-accent { border: 2px solid #04040B; background-color: #04040B15; }

Alert / Toast

This is an alert using your color as accent.
.alert { background-color: #04040B20; border-left: 4px solid #04040B; }

Link / Accent

This is a paragraph with a link using your color. The color can be applied to interactive elements.

a { color: #04040B; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #04040B in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

4, 4, 11

Red: 4 / Green: 4 / Blue: 11

HSL

240°, 47%, 3%

Hue: 240° / Saturation: 47% / Lightness: 3%

CMYK

64%, 64%, 0%, 96%

Cyan: 64% / Magenta: 64% / Yellow: 0% / Key: 96%

What color is #04040B?

#04040B is a very dark shade associated with sophistication and elegance.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #04040B to RGB:

rgb(4, 4, 11)HEX to RGB Converter →

HEX to HSL

Convert #04040B to HSL:

hsl(240, 47%, 3%)RGB to HSL Converter →

HEX to CMYK

Convert #04040B to CMYK:

cmyk(64%, 64%, 0%, 96%)Color Converter →

Color Meaning and Usage

A intense blue tone, #04040B has RGB (4, 4, 11) and HSL (240°, 47%, 3%). Known for evoking sophistication and elegance, this very dark shade is popular in mobile app design. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #04040B is #0B0B04, creating high-contrast pairings. For softer combinations, try analogous colors like #04080B.

Use #04040B in CSS: color: #04040B or background-color: #04040B. Create palettes with Color Palette Generator or check contrast with Contrast Checker.

Contrast with #04040B

Sample text on this color - The quick brown fox jumps over the lazy dog.

Contrast Ratio: 1.03:1
WCAG AA: Fail
WCAG AAA: Fail

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #04040B?

#04040B is a intense blue color - a very dark shade that evokes sophistication and elegance.

What is the RGB value of #04040B?

#04040B in RGB is (4, 4, 11) - 4 red, 4 green, and 11 blue.

How to use #04040B in CSS?

Use #04040B directly in your CSS properties like color or background-color.

What colors go well with #04040B?

#0B0B04 (complementary), #04080B (analogous), and #000000 (lighter shade) work well with #04040B.