What is hex #005FA0 color?

 
The hex code #005FA0 is closest to the named color Cobalt Blue (#0047AB).
In professional design frameworks, this hue is considered a highly vibrant and energetic tone. It is perfect for drawing attention to critical elements like call-to-action buttons, highlights, or modern branding.

From a technical standpoint, this color is composed of 0% red, 37% green and 63% blue, resulting in rgb(0, 95, 160) and hsl(204, 100%, 31%).
For print media and manufacturing layout, the CMYK equivalent is (100%, 41%, 0%, 37%).
In the HSV/HSB scale, #005FA0 features a hue of 204°, 100% saturation, and 63% brightness.

Hex #005FA0 Color Codes & Conversions

Closest Named Color
Cobalt Blue (#0047AB)
Hex Code #005FA0
Hex8 (RGBA Hex) #005FA0FF
RGB (CSS) rgb(0, 95, 160)
RGBA (CSS) rgba(0, 95, 160, 1)
HSL (CSS) hsl(204, 100%, 31%)
HSLA (CSS) hsla(204, 100%, 31%, 1)
HSV / HSB (204°, 100%, 63%)
CMYK Values (100%, 41%, 0%, 37%)
OKLCH (Modern CSS) oklch(47.5% 0.129 248.3)
CIE-LAB (D65) 39.11, 1.89, -41.69
CIE XYZ 10.43, 10.72, 34.77
Decimal / Binary 24480
00000000 01011111 10100000

Closest Standards & Equivalents

Closest Web Safe
#006699
Inverse Color
#FFA05F
Complementary Color
#A04100
Closest Pantone®
Pantone 3015 C
Closest RAL
RAL 5017 [Traffic blue]

#005FA0 Grayscale Equivalents

Average
#555555 [Davy Grey]
Lightness (Desaturation)
#505050
Weighted (BT601)
#4A4A4A
Luma (BT709)
#4F4F4F

WCAG 2.1 Color Contrast & Accessibility

Check how #005FA0 complies with web accessibility standards (WCAG AA & AAA) for typography. Need to test against another custom color? Use our interactive contrast checker.

White Text on #005FA0

Sample preview of readable typography on top of #005FA0.

Contrast Ratio: 6.68:1
AA Pass AAA Fail

Black Text on #005FA0

Sample preview of readable typography on top of #005FA0.

Contrast Ratio: 3.14:1
AA Fail AAA Fail

HTML / CSS Live Previews & Snippets for #005FA0

Preview #005FA0 in real UI elements and copy ready-to-use CSS rules.

Background Preview
background-color: #005FA0;
Typography Color Preview
color: #005FA0;
Border & Shadow Preview
border: 2px solid #005FA0;
CSS Custom Properties & Gradient
:root {
  --color-primary: #005FA0;
  --color-primary-rgb: 0, 95, 160;
  --color-complementary: #A04100;
}
.btn-accent {
  background-color: #005FA0;
  color: #ffffff;
}

Hex #005FA0 Color Palettes

Complementary Palette

The complementary color of #005FA0 is #A04100. Opposite on the color wheel, placing these two colors next to each other creates the strongest visual contrast.

Analogous Palette

The analogous color scheme of #005FA0 pairs with #00A091 and #000FA0, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.

Split-Complementary Palette

The split-complementary scheme of #005FA0 pairs with #A09100 and #A0000F, delivering strong contrast while remaining easier to balance than a direct complement.

Triadic Palette

The triadic color scheme of #005FA0 uses #5FA000 and #A0005F, spaced 120° apart for balanced, high-energy contrast.

Tetradic Palette

The tetradic color scheme of #005FA0 combines #A0005F, #A04100 and #00A041 around the color wheel for rich multi-accent UI systems.

Square Palette

The square color scheme of #005FA0 pairs with #9100A0, #A04100 and #0FA000 spaced evenly at 90° intervals.

Tints, Tones & Shades of Hex #005FA0

Tints

Tints are created by mixing #005FA0 with white, producing lighter variations.

Tones

Tones are created by mixing #005FA0 with gray, softening saturation.

Shades

Shades result from mixing #005FA0 with black, creating deeper variations.

Hex #005FA0 in Programming & CSS Frameworks

Copy the exact syntax for #005FA0 in CSS, Tailwind, Java, Python, .NET, Swift, or Kotlin:

HTML / CSS #005FA0
Tailwind CSS bg-[#005FA0] text-[#005FA0]
Java (AWT) new Color(0,95,160);
Python Color("#005FA0")
.NET (C#) Color.FromArgb(255, 0,95,160);
Swift / iOS UIColor(red: 0, green: 0.37, blue: 0.63, alpha: 1)
Kotlin / Android Color.rgb(0, 95, 160)