Vibrant Royal Mineral Blue Category: Blue

Cobalt Blue (#0047AB) — Color Codes, Meaning & UI Palettes

Cobalt Blue is a deep, luminous blue with historical origins in cobalt aluminate pigment dating back to 1802. Renowned for its visual stability, electric brilliance, and high saturation, it is a staple in fine art, ceramics, and modern high-tech interfaces.

Quick Answer (Cobalt Blue Color Code): The exact HEX code for Cobalt Blue is #0047AB. In RGB, it is rgb(0, 71, 171). In HSL, it is hsl(215deg, 100%, 34%), and its print CMYK formulation is cmyk(100%, 58%, 0%, 33%). It has a relative luminance of 0.074 and pairs best in UI design with Pure White (#FFFFFF) and Pale Slate (#D9E2EC).
Click to Copy HEX
Cobalt Blue
#0047AB
HEX
#0047AB
RGB
rgb(0, 71, 171)
HSL
hsl(215deg, 100%, 34%)
CMYK (Print)
cmyk(100%, 58%, 0%, 33%)
Apple Display P3
color(display-p3 0.000 0.278 0.671)

WCAG 2.1 Accessibility & Contrast Rating

White Text (#FFFFFF) 8.44:1 (AAA)
Black Text (#000000) 2.49:1 (Fail)

11-Step Tints & Shades Scale (Tailwind 50–950)

Mathematically balanced luminance scale for design tokens and CSS color palettes. Click any shade to copy hex code:

50
#F0F4FA
100
#D6E2F2
200
#ADC4E4
300
#7A9FD3
400
#3D73BF
500
#0047AB
600
#003989
700
#002B67
800
#001C44
900
#001026
950
#000915

Color Harmonies & Palette Schemes

Complementary

#AD6500
Opposite 180° Contrast

Analogous -30°

#009FAD
Natural Harmony

Analogous +30°

#0E00AD
Natural Harmony

Triadic +120°

#AD0048
120° Balanced Triad

Triadic +240°

#48AD00
120° Balanced Triad

Curated UI Design Pairings for Cobalt Blue

Pairs exceptionally well with crisp white typography and subtle slate grays. Use as a high-authority primary action color in fintech, analytics dashboards, and developer tooling.

Pure White
#FFFFFF
Primary High-Contrast Text
Pale Slate
#D9E2EC
Subtle Card Border
Amber Gold
#F59E0B
Complementary Accent
Deep Obsidian
#0A0B0E
Dark Background

Export Cobalt Blue Code Snippets

CSS Variable --color-cobalt-blue: #0047AB;
Tailwind Config 'cobalt-blue': '#0047AB'
Swift / SwiftUI Color(hex: "#0047AB")
JSON Design Token {"name": "Cobalt Blue", "hex": "#0047AB"}

Frequently Asked Questions About Cobalt Blue (#0047AB)

What is the exact HEX code for Cobalt Blue?

The exact HEX code for Cobalt Blue is #0047AB. In 8-digit hexadecimal (with 100% opacity), it is #0047ABFF. Its RGB decimal equivalent is rgb(0, 71, 171) and its HSL value is hsl(215deg, 100%, 34%).

What colors go best with Cobalt Blue in UI and web design?

Cobalt Blue pairs exceptionally well with Pure White (#FFFFFF), Pale Slate (#D9E2EC), Amber Gold (#F59E0B), and Deep Obsidian (#0A0B0E).

How do I use Cobalt Blue in CSS and Tailwind CSS?

In standard CSS, apply it directly via color: #0047AB; or background-color: #0047AB;. In Tailwind CSS, use arbitrary value syntax like bg-[#0047ab] or text-[#0047ab], or define it in your Tailwind v4 @theme block as --color-cobalt-blue: #0047AB;.

Is Cobalt Blue WCAG accessible for readable text?

Against a pure white background (#FFFFFF), Cobalt Blue achieves a contrast ratio of 8.44:1 (AAA). Against a pure black background (#000000), it achieves 2.49:1 (Fail). Check custom contrast pairings on Pikka's WCAG Contrast Checker.

Explore More Colors in the Dictionary

Browse our complete catalog of curated named colors, harmonic palettes, and accessible UI combinations.

Named Color Dictionary Interactive Color Wheel Tint & Shade Generator