What is hex #045AFF color?

 
The hex code #045AFF is closest to the named color Blue Ryb (#0247FE).
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, 35% green and 100% blue, resulting in rgb(4, 90, 255) and hsl(219, 100%, 51%).
For print media and manufacturing layout, the CMYK equivalent is (98%, 65%, 0%, 0%).
In the HSV/HSB scale, #045AFF features a hue of 219°, 98% saturation, and 100% brightness.

Hex #045AFF Color Codes & Conversions

Closest Named Color
Blue Ryb (#0247FE)
Hex Code #045AFF
Hex8 (RGBA Hex) #045AFFFF
RGB (CSS) rgb(4, 90, 255)
RGBA (CSS) rgba(4, 90, 255, 1)
HSL (CSS) hsl(219, 100%, 51%)
HSLA (CSS) hsla(219, 100%, 51%, 1)
HSV / HSB (219°, 98%, 100%)
CMYK Values (98%, 65%, 0%, 0%)
OKLCH (Modern CSS) oklch(54.2% 0.254 262.4)
CIE-LAB (D65) 45.02, 42.81, -86.74
CIE XYZ 21.75, 14.56, 96.25
Decimal / Binary 285439
00000100 01011010 11111111

Closest Standards & Equivalents

Closest Web Safe
#0066FF
Inverse Color
#FBA500
Complementary Color
#FFA904
Closest Pantone®
Pantone 285 C
Closest RAL
RAL 5015 [Sky blue]

#045AFF Grayscale Equivalents

Average
#747474
Lightness (Desaturation)
#828282
Weighted (BT601)
#535353
Luma (BT709)
#545454

WCAG 2.1 Color Contrast & Accessibility

Check how #045AFF 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 #045AFF

Sample preview of readable typography on top of #045AFF.

Contrast Ratio: 5.37:1
AA Pass AAA Fail

Black Text on #045AFF

Sample preview of readable typography on top of #045AFF.

Contrast Ratio: 3.91:1
AA Fail AAA Fail

HTML / CSS Live Previews & Snippets for #045AFF

Preview #045AFF in real UI elements and copy ready-to-use CSS rules.

Background Preview
background-color: #045AFF;
Typography Color Preview
color: #045AFF;
Border & Shadow Preview
border: 2px solid #045AFF;
CSS Custom Properties & Gradient
:root {
  --color-primary: #045AFF;
  --color-primary-rgb: 4, 90, 255;
  --color-complementary: #FFA904;
}
.btn-accent {
  background-color: #045AFF;
  color: #ffffff;
}

Hex #045AFF Color Palettes

Complementary Palette

The complementary color of #045AFF is #FFA904. 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 #045AFF pairs with #04D7FF and #2B04FF, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.

Split-Complementary Palette

The split-complementary scheme of #045AFF pairs with #D7FF04 and #FF2B04, delivering strong contrast while remaining easier to balance than a direct complement.

Triadic Palette

The triadic color scheme of #045AFF uses #5AFF04 and #FF045A, spaced 120° apart for balanced, high-energy contrast.

Tetradic Palette

The tetradic color scheme of #045AFF combines #FF045A, #FFA904 and #04FFA9 around the color wheel for rich multi-accent UI systems.

Square Palette

The square color scheme of #045AFF pairs with #FF04D7, #FFA904 and #04FF2B spaced evenly at 90° intervals.

Tints, Tones & Shades of Hex #045AFF

Tints

Tints are created by mixing #045AFF with white, producing lighter variations.

Tones

Tones are created by mixing #045AFF with gray, softening saturation.

Shades

Shades result from mixing #045AFF with black, creating deeper variations.

Hex #045AFF in Programming & CSS Frameworks

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

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