Royal Blue

#4169E1

Nearest Tailwind V4 Match
blue-600
95.4% Match
Implementation
bg-blue-600
text-blue-600

Full Calculated Scale

50
#ecf5ff
100
#d7ebff
200
#b2d5ff
300
#91bcff
400
#6e9aff
500
#517cf6
600
#3d63d8
700
#3052be
800
#2542a2
900
#1f398c
950
#0f215f

Technical Background

Converting Royal Blue (#4169E1) to Tailwind CSS requires more than just picking the nearest hex. Our algorithm uses CIEDE2000, a perceptual color difference formula that accounts for how human vision processes lightness, chroma, and hue.

The generated scale follows the Tailwind CSS v4 OKLCH standard, ensuring perfectly uniform weight across the entire spectrum. This prevents common issues like "hue shifting" where colors turn purple or grey as they get darker or lighter. You can customize this further in our Palette Generator.

Frequently Asked Questions

What is the closest Tailwind class for Royal Blue?

The closest visually matching Tailwind CSS class for Royal Blue (#4169E1) is blue-600. Our algorithm calculates this using the CIEDE2000 ΔE standard, which shows a match score of 95.4%.

How do I use this color in my Tailwind config?

You have two options: use the native class bg-blue-600 for the best out-of-the-box match, or add #4169E1 directly to your Tailwind theme configuration for 100% brand accuracy.

Why use OKLCH for this scale?

Tailwind CSS v4 uses OKLCH because it is perceptually uniform. When we generate the 50-950 scale for Royal Blue, OKLCH ensures that the color stays vibrant and doesn't shift towards different hues as it gets lighter or darker.

Need a custom palette?

Use our professional-grade generator to create a full theme from any custom hex code.

Open Generator