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
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
Mood
Style
Use case
Tip: tags are heuristic suggestions (helpful for browsing and inspiration).
Color Harmonies
Colors that pair well with #0047AB based on color theory relationships.
The color directly opposite on the color wheel — creates maximum contrast and vibrance.
#0047AB
Base
#AB6400
Colors adjacent on the wheel — naturally harmonious and pleasing to the eye.
#0047AB
Base
#009DAB
#0E00AB
Three colors equally spaced 120° apart — bold, balanced, and visually rich.
#0047AB
Base
#AB0047
#47AB00
Two colors flanking the complement — high contrast with less tension than full complementary.
#0047AB
Base
#AB0E00
#9DAB00
Four colors at 90° intervals — rich variety, best when one color dominates.
#0047AB
Base
#AB009D
#AB6400
#00AB0E
Shades and tints of the same hue — cohesive, elegant, and easy to work with.
#0047AB
Base
#000B1A
#00275E
#003682
#0058D4
#0067F7
#4592FF
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
#0047AB
Base
#0061EA
#2982FF
#68A7FF
#A7CBFF
#E6F0FF
Ready-to-use code snippets for #0047AB. Click the copy button to copy any snippet to your clipboard.
/* Background */
.element {
background-color: #0047AB;
}
/* Text */
.element {
color: #0047AB;
}
/* Border */
.element {
border: 1px solid #0047AB;
}
/* Linear gradient to complementary */
.element {
background: linear-gradient(
to right,
#0047AB,
#FFB957
);
}
/* Radial gradient */
.element {
background: radial-gradient(
circle,
#0047AB,
#FFB957
);
}
// 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);
}
How Cobalt appears to people with different types of color vision deficiency.
#0047AB
How the color appears with full color vision.
#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.
#4343AB
Protanopia affects ~1% of males. Red cones are absent, causing reds to appear dark and indistinguishable from greens and browns.
#005C5C
Tritanopia is rare (~0.003%). Blue cones are absent, making blue and yellow difficult to distinguish. Blues may appear green, yellows appear pink.
#4D4D4D
Achromatopsia is complete color blindness. The world is seen entirely in shades of grey. Affects ~1 in 30,000 people.
How to use this color
- Copy HEX for CSS and design tools, or RGB/HSL for UI adjustments.
- Use CMYK when preparing print assets (posters, packaging, brochures).
- Check contrast before using it for text or important UI elements.