What is hex #0400A4 color?

 
The hex code #0400A4 is closest to the named color Duke Blue (#00009C).
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 2% red, 0% green and 64% blue, resulting in rgb(4, 0, 164) and hsl(241, 100%, 32%).
For print media and manufacturing layout, the CMYK equivalent is (98%, 100%, 0%, 36%).
In the HSV/HSB scale, #0400A4 features a hue of 241°, 100% saturation, and 64% brightness.

Hex #0400A4 Color Codes & Conversions

Closest Named Color
Duke Blue (#00009C)
Hex Code #0400A4
Hex8 (RGBA Hex) #0400A4FF
RGB (CSS) rgb(4, 0, 164)
RGBA (CSS) rgba(4, 0, 164, 1)
HSL (CSS) hsl(241, 100%, 32%)
HSLA (CSS) hsla(241, 100%, 32%, 1)
HSV / HSB (241°, 100%, 64%)
CMYK Values (98%, 100%, 0%, 36%)
OKLCH (Modern CSS) oklch(32.6% 0.224 264.8)
CIE-LAB (D65) 18.82, 56.95, -77.33
CIE XYZ 6.75, 2.71, 35.28
Decimal / Binary 262308
00000100 00000000 10100100

Closest Standards & Equivalents

Closest Web Safe
#000099
Inverse Color
#FBFF5B
Complementary Color
#A0A400
Closest Pantone®
Pantone Blue 072 C
Closest RAL
RAL 5005 [Signal blue]

#0400A4 Grayscale Equivalents

Average
#383838
Lightness (Desaturation)
#525252
Weighted (BT601)
#141414
Luma (BT709)
#0D0D0D

WCAG 2.1 Color Contrast & Accessibility

Check how #0400A4 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 #0400A4

Sample preview of readable typography on top of #0400A4.

Contrast Ratio: 13.63:1
AA Pass AAA Pass

Black Text on #0400A4

Sample preview of readable typography on top of #0400A4.

Contrast Ratio: 1.54:1
AA Fail AAA Fail

HTML / CSS Live Previews & Snippets for #0400A4

Preview #0400A4 in real UI elements and copy ready-to-use CSS rules.

Background Preview
background-color: #0400A4;
Typography Color Preview
color: #0400A4;
Border & Shadow Preview
border: 2px solid #0400A4;
CSS Custom Properties & Gradient
:root {
  --color-primary: #0400A4;
  --color-primary-rgb: 4, 0, 164;
  --color-complementary: #A0A400;
}
.btn-accent {
  background-color: #0400A4;
  color: #ffffff;
}

Hex #0400A4 Color Palettes

Complementary Palette

The complementary color of #0400A4 is #A0A400. 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 #0400A4 pairs with #004EA4 and #5600A4, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.

Split-Complementary Palette

The split-complementary scheme of #0400A4 pairs with #4EA400 and #A45600, delivering strong contrast while remaining easier to balance than a direct complement.

Triadic Palette

The triadic color scheme of #0400A4 uses #00A404 and #A40400, spaced 120° apart for balanced, high-energy contrast.

Tetradic Palette

The tetradic color scheme of #0400A4 combines #A40400, #A0A400 and #00A0A4 around the color wheel for rich multi-accent UI systems.

Square Palette

The square color scheme of #0400A4 pairs with #A4004E, #A0A400 and #00A456 spaced evenly at 90° intervals.

Tints, Tones & Shades of Hex #0400A4

Tints

Tints are created by mixing #0400A4 with white, producing lighter variations.

Tones

Tones are created by mixing #0400A4 with gray, softening saturation.

Shades

Shades result from mixing #0400A4 with black, creating deeper variations.

Hex #0400A4 in Programming & CSS Frameworks

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

HTML / CSS #0400A4
Tailwind CSS bg-[#0400A4] text-[#0400A4]
Java (AWT) new Color(4,0,164);
Python Color("#0400A4")
.NET (C#) Color.FromArgb(255, 4,0,164);
Swift / iOS UIColor(red: 0.02, green: 0, blue: 0.64, alpha: 1)
Kotlin / Android Color.rgb(4, 0, 164)