Stripe Dark

#0A2540

Nearest Tailwind V4 Match
slate-800
96.2% Match
Implementation
bg-slate-800
text-slate-800

Color Code Conversions

HEX Code
#0A2540
RGB Value
rgb(10, 37, 64)
HSL Value
hsl(210, 73%, 15%)
OKLCH CSS (v4)
oklch(0.260 0.060 251.3)

Full Calculated Scale

50
#f1f6fb
100
#e1edf9
200
#c5daf1
300
#a9c4e2
400
#88a5c5
500
#6b89aa
600
#557190
700
#46607c
800
#384f68
900
#30445a
950
#1b2a3a

Technical Background

Converting Stripe Dark (#0A2540) 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 Stripe Dark?

The closest visually matching Tailwind CSS class for Stripe Dark (#0A2540) is slate-800. Our algorithm calculates this using the CIEDE2000 ΔE standard, which shows a match score of 96.2%.

How do I use this color in my Tailwind config?

You have two options: use the native class bg-slate-800 for the best out-of-the-box match, or add #0A2540 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 Stripe Dark, 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 Palette Generator