Github Dark

#24292F

Nearest Tailwind V4 Match
zinc-800
96.9% Match
Implementation
bg-zinc-800
text-zinc-800

Color Code Conversions

HEX Code
#24292F
RGB Value
rgb(36, 41, 47)
HSL Value
hsl(213, 13%, 16%)
OKLCH CSS (v4)
oklch(0.279 0.013 253.0)

Full Calculated Scale

50
#f4f5f6
100
#e9ebee
200
#d4d8dd
300
#bcc1c8
400
#9ca2a9
500
#81878e
600
#696f76
700
#595e64
800
#494e53
900
#3f4348
950
#26292d

Technical Background

Converting Github Dark (#24292F) 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 Github Dark?

The closest visually matching Tailwind CSS class for Github Dark (#24292F) is zinc-800. Our algorithm calculates this using the CIEDE2000 ΔE standard, which shows a match score of 96.9%.

How do I use this color in my Tailwind config?

You have two options: use the native class bg-zinc-800 for the best out-of-the-box match, or add #24292F 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 Github 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 Generator