#0C042F Color Information
Hex color code: #0C042F
The hex color #0C042F is a dark blue with RGB values of (12, 4, 47) and HSL of (251°, 84%, 10%). It is frequently seen in web interfaces.
Shades
color: #0C042F; background-color: #0C042F; border-color: #0C042F; box-shadow: 0 0 10px #0C042F; border: 2px solid #0C042F;
bg-[#0C042F] text-[#0C042F] border-[#0C042F] shadow-[0_0_10px_0C042F]
Generate Gradient
background: linear-gradient(90deg, #0C042F, #FF5733);
Preview in UI
Button
Badge
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.
Alert / Toast
Link / Accent
This is a paragraph with a link using your color. The color can be applied to interactive elements.
Related Colors
Complementary
Analogous
Triadic
Split Complementary
Tetradic
Monochromatic
Popular Colors
Common HEX Colors
Color Theory
Relationships based on the position of #0C042F in the color wheel.
RGB, HSL and CMYK Values
RGB
12, 4, 47
Red: 12 / Green: 4 / Blue: 47
HSL
251°, 84%, 10%
Hue: 251° / Saturation: 84% / Lightness: 10%
CMYK
74%, 91%, 0%, 82%
Cyan: 74% / Magenta: 91% / Yellow: 0% / Key: 82%
What color is #0C042F?
#0C042F is a very dark shade associated with sophistication and elegance.
Color Shades
Complementary Colors
Color Palette
Color Meaning and Usage
#0C042F is a rich blue color with RGB values of 12, 4, 47 and HSL of 251°, 84%, 10%. This very dark shade evokes sophistication and elegance, making it suitable for well suited for marketing pages and hero sections. Lighter variations like #FFFFFF create softer gradients.
The complementary color of #0C042F is #272F04, creating high-contrast pairings. For softer combinations, try analogous colors like #04122F.
Use #0C042F in CSS: color: #0C042F or background-color: #0C042F. Create palettes with Color Palette Generator or check contrast with Contrast Checker.
Contrast with #0C042F
Sample text on this color - The quick brown fox jumps over the lazy dog.
Need more control? Contrast Checker →
Frequently Asked Questions
What color is #0C042F?
#0C042F is a rich blue color - a very dark shade that evokes sophistication and elegance.
What is the RGB value of #0C042F?
#0C042F in RGB is (12, 4, 47) - 12 red, 4 green, and 47 blue.
How to use #0C042F in CSS?
Use #0C042F directly in your CSS properties like color or background-color.