Gradient Page

#0047AB

#0047AB is the HEX color code for
Cobalt
#0047AB

Cobalt

Contrast
Dark
Luminance
24%
Color Conversions
Formats for Cobalt (#0047AB) in various color spaces.
HEX
#0047AB
RGB
0, 71, 171
HSL
215°, 100%, 34%
CMYK
100%, 58%, 0%, 33%
OKLCH
0.428, 0.172, 259.7
CSS Variable
--color-cobalt: #0047AB;

Shades & Tints

#e5f0ff
#b3d2ff
#80b5ff
#4d97ff
#1a79ff
#0060e6
#004ab3
#003580
#00204d
#000b1a
DarkestBaseLightest

Color Harmonies

Complementary

#0047AB
#ad6500

Analogous

#009fad
#0047AB
#0e00ad

Triadic

#0047AB
#ad0048
#48ad00

Split Complementary

#0047AB
#ad0e00
#9fad00

UI Component Examples

See how #0047AB looks when applied to real interface components.

Interactive Elements
Surface & Accent
Pro Tip!

Use lighter tints for backgrounds to maintain readability while keeping brand identity.

Status Indicator
Active
# CSS Variables
Copy-paste these variables into your global CSS to use this palette instantly.
:root {
  /* Cobalt Base */
  --color-primary: #0047AB;
  --color-primary-rgb: 0 71 171;
  --color-primary-hsl: 215 100% 34%;
  
  /* Foreground text color based on contrast */
  --color-primary-foreground: #ffffff;

  /* Shades */
  --color-primary-50:  #e5f0ff;
  --color-primary-100: #b3d2ff;
  --color-primary-200: #80b5ff;
  --color-primary-300: #4d97ff;
  --color-primary-400: #1a79ff;
  --color-primary-500: #0060e6;
  --color-primary-600: #004ab3;
  --color-primary-700: #003580;
  --color-primary-800: #00204d;
  --color-primary-900: #000b1a;
}

Want more?

We hope you enjoyed this color. Keep reading for more amazing colorful content for developers, designers and creators!
View our entire collection of UI gradientsView all our color names