What is hex #005FA7 color?

 
The hex code #005FA7 is closest to the named color Denim (#1560BD).
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 65% blue, resulting in rgb(0, 95, 167) and hsl(206, 100%, 33%).
For print media and manufacturing layout, the CMYK equivalent is (100%, 43%, 0%, 35%).
In the HSV/HSB scale, #005FA7 features a hue of 206°, 100% saturation, and 65% brightness.

Hex #005FA7 Color Codes & Conversions

Closest Named Color
Denim (#1560BD)
Hex Code #005FA7
Hex8 (RGBA Hex) #005FA7FF
RGB (CSS) rgb(0, 95, 167)
RGBA (CSS) rgba(0, 95, 167, 1)
HSL (CSS) hsl(206, 100%, 33%)
HSLA (CSS) hsla(206, 100%, 33%, 1)
HSV / HSB (206°, 100%, 65%)
CMYK Values (100%, 43%, 0%, 35%)
OKLCH (Modern CSS) oklch(47.9% 0.138 250.5)
CIE-LAB (D65) 39.53, 4.76, -45.17
CIE XYZ 11.06, 10.97, 38.09
Decimal / Binary 24487
00000000 01011111 10100111

Closest Standards & Equivalents

Closest Web Safe
#006699
Inverse Color
#FFA058
Complementary Color
#A74800
Closest Pantone®
Pantone 307 C
Closest RAL
RAL 5017 [Traffic blue]

#005FA7 Grayscale Equivalents

Average
#575757
Lightness (Desaturation)
#545454
Weighted (BT601)
#4B4B4B
Luma (BT709)
#505050

WCAG 2.1 Color Contrast & Accessibility

Check how #005FA7 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 #005FA7

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

Contrast Ratio: 6.57:1
AA Pass AAA Fail

Black Text on #005FA7

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

Contrast Ratio: 3.19:1
AA Fail AAA Fail

HTML / CSS Live Previews & Snippets for #005FA7

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

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

Hex #005FA7 Color Palettes

Complementary Palette

The complementary color of #005FA7 is #A74800. 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 #005FA7 pairs with #00A79B and #000BA7, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.

Split-Complementary Palette

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

Triadic Palette

The triadic color scheme of #005FA7 uses #5FA700 and #A7005F, spaced 120° apart for balanced, high-energy contrast.

Tetradic Palette

The tetradic color scheme of #005FA7 combines #A7005F, #A74800 and #00A748 around the color wheel for rich multi-accent UI systems.

Square Palette

The square color scheme of #005FA7 pairs with #9B00A7, #A74800 and #0BA700 spaced evenly at 90° intervals.

Tints, Tones & Shades of Hex #005FA7

Tints

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

Tones

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

Shades

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

Hex #005FA7 in Programming & CSS Frameworks

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

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