Cobalt (#0047AB)

HEX, RGB, HSL, CMYK values + mood/style/use-case color tags. Use this page to keep your colors consistent across web and print.

Preview

Sample Text
This is how text may look on this color.
Best text color: #FFFFFF
Contrast vs white: 8.44:1 — vs black: 2.49:1

Color values

  • HEX #0047AB
  • RGB rgb(0, 71, 171)
  • HSL hsl(215, 100%, 67%)
  • CMYK cmyk( 100, 58.48, 0, 32.94 )
  • Websafe #003399

Tags

Tip: tags are heuristic suggestions (helpful for browsing and inspiration).

Color Harmonies

Colors that pair well with #0047AB based on color theory relationships.

Complementary

The color directly opposite on the color wheel — creates maximum contrast and vibrance.

Cobalt
#0047AB Base
#AB6400
Analogous

Colors adjacent on the wheel — naturally harmonious and pleasing to the eye.

Cobalt
#0047AB Base
#009DAB
#0E00AB
Triadic

Three colors equally spaced 120° apart — bold, balanced, and visually rich.

Cobalt
#0047AB Base
#AB0047
#47AB00
Split-Complementary

Two colors flanking the complement — high contrast with less tension than full complementary.

Cobalt
#0047AB Base
#AB0E00
#9DAB00
Tetradic (Square)

Four colors at 90° intervals — rich variety, best when one color dominates.

Cobalt
#0047AB Base
#AB009D
#AB6400
#00AB0E
Monochromatic

Shades and tints of the same hue — cohesive, elegant, and easy to work with.

Cobalt
#0047AB Base
#000B1A
#00275E
#003682
#0058D4
#0067F7
#4592FF
Shades & Tints

Darker shades and lighter tints of Cobalt, generated by adjusting lightness while keeping the same hue and saturation.

Shades (darker)

#000B1A
#001737
#002354
#002F71
#003B8E
Cobalt #0047AB Base
#0061EA
#2982FF
#68A7FF
#A7CBFF
#E6F0FF
CSS & SCSS Snippets

Ready-to-use code snippets for #0047AB. Click the copy button to copy any snippet to your clipboard.

CSS Properties
/* Background */
.element {
    background-color: #0047AB;
}

/* Text */
.element {
    color: #0047AB;
}

/* Border */
.element {
    border: 1px solid #0047AB;
}
CSS Gradient
/* Linear gradient to complementary */
.element {
    background: linear-gradient(
        to right,
        #0047AB,
        #FFB957
    );
}

/* Radial gradient */
.element {
    background: radial-gradient(
        circle,
        #0047AB,
        #FFB957
    );
}
SCSS Variable
// SCSS variable
$cobalt: #0047AB;

// With RGB channels (useful for rgba() usage)
$cobalt-r: 0;
$cobalt-g: 71;
$cobalt-b: 171;

// Usage
.element {
    background-color: $cobalt;
    color: rgba($cobalt-r, $cobalt-g, $cobalt-b, 0.8);
}
Color Blindness Simulation

How Cobalt appears to people with different types of color vision deficiency.

Normal Vision #0047AB How the color appears with full color vision.
Deuteranopia #3C3CAB Deuteranopia affects ~8% of males. Green cones are absent, making it difficult to distinguish red from green. The most common form of color blindness.
Protanopia #4343AB Protanopia affects ~1% of males. Red cones are absent, causing reds to appear dark and indistinguishable from greens and browns.
Tritanopia #005C5C Tritanopia is rare (~0.003%). Blue cones are absent, making blue and yellow difficult to distinguish. Blues may appear green, yellows appear pink.
Achromatopsia #4D4D4D Achromatopsia is complete color blindness. The world is seen entirely in shades of grey. Affects ~1 in 30,000 people.
Similar Named Colors

The closest named colors to Cobalt ranked by perceptual difference (Delta-E 2000 — lower = more similar).

Cobalt #0047AB Base
Violet Blue #324AB2 ΔE 3.79
Sapphire #0F52BA ΔE 3.85
Medium Teal Blue #0054B4 ΔE 4.47
Yale Blue #0F4D92 ΔE 4.48

How to use this color

  1. Copy HEX for CSS and design tools, or RGB/HSL for UI adjustments.
  2. Use CMYK when preparing print assets (posters, packaging, brochures).
  3. Check contrast before using it for text or important UI elements.