What is hex #405FFF color?

 
The hex code #405FFF is closest to the named color Royal Blue (#4169E1).
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 25% red, 37% green and 100% blue, resulting in rgb(64, 95, 255) and hsl(230, 100%, 63%).
For print media and manufacturing layout, the CMYK equivalent is (75%, 63%, 0%, 0%).
In the HSV/HSB scale, #405FFF features a hue of 230°, 75% saturation, and 100% brightness.

Hex #405FFF Color Codes & Conversions

Closest Named Color
Royal Blue (#4169E1)
Hex Code #405FFF
Hex8 (RGBA Hex) #405FFFFF
RGB (CSS) rgb(64, 95, 255)
RGBA (CSS) rgba(64, 95, 255, 1)
HSL (CSS) hsl(230, 100%, 63%)
HSLA (CSS) hsla(230, 100%, 63%, 1)
HSV / HSB (230°, 75%, 100%)
CMYK Values (75%, 63%, 0%, 0%)
OKLCH (Modern CSS) oklch(56.5% 0.238 268.7)
CIE-LAB (D65) 47.61, 42.93, -82.43
CIE XYZ 24.25, 16.49, 96.49
Decimal / Binary 4218879
01000000 01011111 11111111

Closest Standards & Equivalents

Closest Web Safe
#3366FF
Inverse Color
#BFA000
Complementary Color
#FFE040
Closest Pantone®
Pantone 2726 C
Closest RAL
RAL 5007 [Brilliant blue]

#405FFF Grayscale Equivalents

Average
#8A8A8A
Lightness (Desaturation)
#A0A0A0
Weighted (BT601)
#686868
Luma (BT709)
#646464

WCAG 2.1 Color Contrast & Accessibility

Check how #405FFF 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 #405FFF

Sample preview of readable typography on top of #405FFF.

Contrast Ratio: 4.88:1
AA Pass AAA Fail

Black Text on #405FFF

Sample preview of readable typography on top of #405FFF.

Contrast Ratio: 4.3:1
AA Fail AAA Fail

HTML / CSS Live Previews & Snippets for #405FFF

Preview #405FFF in real UI elements and copy ready-to-use CSS rules.

Background Preview
background-color: #405FFF;
Typography Color Preview
color: #405FFF;
Border & Shadow Preview
border: 2px solid #405FFF;
CSS Custom Properties & Gradient
:root {
  --color-primary: #405FFF;
  --color-primary-rgb: 64, 95, 255;
  --color-complementary: #FFE040;
}
.btn-accent {
  background-color: #405FFF;
  color: #ffffff;
}

Hex #405FFF Color Palettes

Complementary Palette

The complementary color of #405FFF is #FFE040. 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 #405FFF pairs with #40BEFF and #8040FF, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.

Split-Complementary Palette

The split-complementary scheme of #405FFF pairs with #BEFF40 and #FF8040, delivering strong contrast while remaining easier to balance than a direct complement.

Triadic Palette

The triadic color scheme of #405FFF uses #5FFF40 and #FF405F, spaced 120° apart for balanced, high-energy contrast.

Tetradic Palette

The tetradic color scheme of #405FFF combines #FF405F, #FFE040 and #40FFE0 around the color wheel for rich multi-accent UI systems.

Square Palette

The square color scheme of #405FFF pairs with #FF40BE, #FFE040 and #40FF80 spaced evenly at 90° intervals.

Tints, Tones & Shades of Hex #405FFF

Tints

Tints are created by mixing #405FFF with white, producing lighter variations.

Tones

Tones are created by mixing #405FFF with gray, softening saturation.

Shades

Shades result from mixing #405FFF with black, creating deeper variations.

Hex #405FFF in Programming & CSS Frameworks

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

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