Cobalt Hex Code — #0047AB
RGB, HSL, and CMYK values for Cobalt.
Last updated: April 6, 2026
Cobalt Color Values
| Format | Value |
|---|---|
| HEX | #0047AB |
| RGB | rgb(0, 71, 171) |
| HSL | hsl(215, 100%, 34%) |
| CMYK | cmyk(100%, 58%, 0%, 33%) |
When to Use Cobalt in Design
Web Design
Use Cobalt for headings, links, or accent elements against light backgrounds. Dark colors like this provide strong contrast and draw the eye to important content.
Branding & Logo
Cobalt can work as a primary or accent brand color. Test it across different media (screen, print, merchandise) to ensure consistent appearance.
Print Design
Use the CMYK values (C:100% M:58% Y:0% K:33%) for accurate print reproduction in brochures, business cards, and packaging. Request a physical proof — screen colors often appear more vibrant than their printed equivalents.
UI / UX Design
Dark colors like Cobalt are effective for primary buttons, navigation bars, and text. Use a lighter tint (increase HSL lightness to 90%+) for hover backgrounds.
How to Use Cobalt in CSS
/* Using HEX */ color: #0047AB; background-color: #0047AB; /* Using RGB */ color: rgb(0, 71, 171); /* Using HSL — best for creating variations */ color: hsl(215, 100%, 34%); /* Transparent overlay (50% opacity) */ background-color: rgba(0, 71, 171, 0.5); /* Lighter variant for hover states */ background-color: hsl(215, 100%, 44%); /* Darker variant for active states */ background-color: hsl(215, 100%, 24%);
HSL is the most flexible format for creating color systems. By adjusting the lightness value, you can generate an entire shade scale from Cobalt without changing its core hue or saturation.
Colors That Go With Cobalt
Complementary
Analogous
Triadic
Similar Shades of Blue
Frequently Asked Questions
What is the hex code for Cobalt?
What is Cobalt in RGB and when should I use RGB?
How to use Cobalt in CSS with different color formats?
What is the HSL value of Cobalt and why is HSL useful for designers?
What is the CMYK value of Cobalt for print design?
What colors pair well with Cobalt in design projects?
Is Cobalt (#0047AB) accessible for web design and WCAG compliant?
Was this page helpful?
Written by
Tamanna Tasnim
Senior Full Stack Developer
Full-stack developer with deep expertise in data formats, APIs, and developer tooling. Writes in-depth technical comparisons and conversion guides backed by hands-on engineering experience across modern web stacks.