What is hex #5252FF color?

 
The hex code #5252FF is closest to the named color Royal Blue (#4169E1).
In professional design frameworks, this hue is considered a balanced and versatile hue. It is ideal for creating smooth color harmony, digital artwork, or minimalist web components.

From a technical standpoint, this color is composed of 32% red, 32% green and 100% blue, resulting in rgb(82, 82, 255) and hsl(240, 100%, 66%).
For print media and manufacturing layout, the CMYK equivalent is (68%, 68%, 0%, 0%).
In the HSV/HSB scale, #5252FF features a hue of 240°, 68% saturation, and 100% brightness.

Hex #5252FF Color Codes & Conversions

Closest Named Color
Royal Blue (#4169E1)
Hex Code #5252FF
Hex8 (RGBA Hex) #5252FFFF
RGB (CSS) rgb(82, 82, 255)
RGBA (CSS) rgba(82, 82, 255, 1)
HSL (CSS) hsl(240, 100%, 66%)
HSLA (CSS) hsla(240, 100%, 66%, 1)
HSV / HSB (240°, 68%, 100%)
CMYK Values (68%, 68%, 0%, 0%)
OKLCH (Modern CSS) oklch(55.4% 0.248 274.7)
CIE-LAB (D65) 45.70, 52.45, -85.54
CIE XYZ 24.54, 15.05, 96.20
Decimal / Binary 5395199
01010010 01010010 11111111

Closest Standards & Equivalents

Closest Web Safe
#6666FF
Inverse Color
#ADAD00
Complementary Color
#FFFF52
Closest Pantone®
Pantone 2726 C
Closest RAL
RAL 5023 [Distant blue]

#5252FF Grayscale Equivalents

Average
#8C8C8C
Lightness (Desaturation)
#A9A9A9 [Dark Medium Gray]
Weighted (BT601)
#666666
Luma (BT709)
#5E5E5E

WCAG 2.1 Color Contrast & Accessibility

Check how #5252FF 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 #5252FF

Sample preview of readable typography on top of #5252FF.

Contrast Ratio: 5.24:1
AA Pass AAA Fail

Black Text on #5252FF

Sample preview of readable typography on top of #5252FF.

Contrast Ratio: 4.01:1
AA Fail AAA Fail

HTML / CSS Live Previews & Snippets for #5252FF

Preview #5252FF in real UI elements and copy ready-to-use CSS rules.

Background Preview
background-color: #5252FF;
Typography Color Preview
color: #5252FF;
Border & Shadow Preview
border: 2px solid #5252FF;
CSS Custom Properties & Gradient
:root {
  --color-primary: #5252FF;
  --color-primary-rgb: 82, 82, 255;
  --color-complementary: #FFFF52;
}
.btn-accent {
  background-color: #5252FF;
  color: #ffffff;
}

Hex #5252FF Color Palettes

Complementary Palette

The complementary color of #5252FF is #FFFF52. 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 #5252FF pairs with #52A8FF and #A852FF, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.

Split-Complementary Palette

The split-complementary scheme of #5252FF pairs with #A8FF52 and #FFA852, delivering strong contrast while remaining easier to balance than a direct complement.

Triadic Palette

The triadic color scheme of #5252FF uses #52FF52 and #FF5252, spaced 120° apart for balanced, high-energy contrast.

Tetradic Palette

The tetradic color scheme of #5252FF combines #FF5252, #FFFF52 and #52FFFF around the color wheel for rich multi-accent UI systems.

Square Palette

The square color scheme of #5252FF pairs with #FF52A8, #FFFF52 and #52FFA8 spaced evenly at 90° intervals.

Tints, Tones & Shades of Hex #5252FF

Tints

Tints are created by mixing #5252FF with white, producing lighter variations.

Tones

Tones are created by mixing #5252FF with gray, softening saturation.

Shades

Shades result from mixing #5252FF with black, creating deeper variations.

Hex #5252FF in Programming & CSS Frameworks

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

HTML / CSS #5252FF
Tailwind CSS bg-[#5252FF] text-[#5252FF]
Java (AWT) new Color(82,82,255);
Python Color("#5252FF")
.NET (C#) Color.FromArgb(255, 82,82,255);
Swift / iOS UIColor(red: 0.32, green: 0.32, blue: 1, alpha: 1)
Kotlin / Android Color.rgb(82, 82, 255)