What is hex #4E51FF color?

 
The hex code #4E51FF 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 31% red, 32% green and 100% blue, resulting in rgb(78, 81, 255) and hsl(239, 100%, 65%).
For print media and manufacturing layout, the CMYK equivalent is (69%, 68%, 0%, 0%).
In the HSV/HSB scale, #4E51FF features a hue of 239°, 69% saturation, and 100% brightness.

Hex #4E51FF Color Codes & Conversions

Closest Named Color
Royal Blue (#4169E1)
Hex Code #4E51FF
Hex8 (RGBA Hex) #4E51FFFF
RGB (CSS) rgb(78, 81, 255)
RGBA (CSS) rgba(78, 81, 255, 1)
HSL (CSS) hsl(239, 100%, 65%)
HSLA (CSS) hsla(239, 100%, 65%, 1)
HSV / HSB (239°, 69%, 100%)
CMYK Values (69%, 68%, 0%, 0%)
OKLCH (Modern CSS) oklch(55.0% 0.250 273.8)
CIE-LAB (D65) 45.25, 52.58, -86.28
CIE XYZ 24.13, 14.72, 96.16
Decimal / Binary 5132799
01001110 01010001 11111111

Closest Standards & Equivalents

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

#4E51FF Grayscale Equivalents

Average
#8A8A8A
Lightness (Desaturation)
#A7A7A7
Weighted (BT601)
#646464
Luma (BT709)
#5D5D5D

WCAG 2.1 Color Contrast & Accessibility

Check how #4E51FF 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 #4E51FF

Sample preview of readable typography on top of #4E51FF.

Contrast Ratio: 5.32:1
AA Pass AAA Fail

Black Text on #4E51FF

Sample preview of readable typography on top of #4E51FF.

Contrast Ratio: 3.94:1
AA Fail AAA Fail

HTML / CSS Live Previews & Snippets for #4E51FF

Preview #4E51FF in real UI elements and copy ready-to-use CSS rules.

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

Hex #4E51FF Color Palettes

Complementary Palette

The complementary color of #4E51FF is #FFFC4E. 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 #4E51FF pairs with #4EA9FF and #A34EFF, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.

Split-Complementary Palette

The split-complementary scheme of #4E51FF pairs with #A9FF4E and #FFA34E, delivering strong contrast while remaining easier to balance than a direct complement.

Triadic Palette

The triadic color scheme of #4E51FF uses #51FF4E and #FF4E51, spaced 120° apart for balanced, high-energy contrast.

Tetradic Palette

The tetradic color scheme of #4E51FF combines #FF4E51, #FFFC4E and #4EFFFC around the color wheel for rich multi-accent UI systems.

Square Palette

The square color scheme of #4E51FF pairs with #FF4EA9, #FFFC4E and #4EFFA3 spaced evenly at 90° intervals.

Tints, Tones & Shades of Hex #4E51FF

Tints

Tints are created by mixing #4E51FF with white, producing lighter variations.

Tones

Tones are created by mixing #4E51FF with gray, softening saturation.

Shades

Shades result from mixing #4E51FF with black, creating deeper variations.

Hex #4E51FF in Programming & CSS Frameworks

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

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