Dark Mode, Glassmorphism, and the Hex Codes Defining Web Design Right Now
If you've opened a design inspiration site lately — Dribbble, Behance, even just a well-curated corner of Twitter/X — you've probably noticed that web design in 2024 looks different than it did three years ago. The flat, minimal Material Design era is giving way to something more textured, more layered, and frankly, more interesting to build.
But here's the thing: these aesthetic shifts aren't just about vibes. Every major design trend comes with a specific set of color requirements, hex value conventions, and accessibility trade-offs that developers need to understand before they start shipping. Let's break down what's actually happening and how to implement it without torching your contrast ratios.
Dark Mode Is Grown Up Now
Dark mode stopped being a novelty around 2020 when Apple and Google baked it into their operating systems at the OS level. In 2024, it's a baseline expectation for most apps and many websites — especially anything targeting developers, creatives, or heavy screen users.
But a lot of teams are still implementing dark mode wrong. The most common mistake? Simply inverting your existing light palette. Pure black backgrounds (#000000) paired with pure white text create extreme contrast that actually causes eye strain over long reading sessions — the opposite of what users want from dark mode.
The sweet spot for dark mode backgrounds lives in the #121212 to #1E1E1E range. Google's Material Design spec uses #121212 as its recommended dark surface color, and it's a solid starting point. From there, surface elevation is communicated through subtle lightness increases — think #1E1E1E, #222222, #2C2C2C for layered cards and modals.
For text, pure white (#FFFFFF) is rarely the right call. Try #E0E0E0 or #F5F5F5 for body copy — you'll still hit WCAG AA contrast requirements against a dark background, but the visual softness reduces fatigue significantly. Use your browser's built-in DevTools color picker to check contrast ratios in real time as you adjust.
Glassmorphism: Beautiful, Tricky, Worth It
Glassmorphism — that frosted, translucent card aesthetic popularized by iOS 15 and a thousand Dribbble shots — is still going strong in 2024, particularly in dashboard UIs, landing pages, and anything targeting a premium aesthetic.
The color logic here is fundamentally different from solid-color design. Glassmorphism relies on background blur (backdrop-filter: blur() in CSS) combined with semi-transparent fills. Your "color" is really a combination of a tinted overlay and whatever's behind it.
Typical glassmorphism card fills look something like rgba(255, 255, 255, 0.1) to rgba(255, 255, 255, 0.25) on dark backgrounds, or rgba(255, 255, 255, 0.4) to rgba(255, 255, 255, 0.6) on vibrant gradient backgrounds. The hex equivalent of that base white with opacity is less useful here — you're working in RGBA territory.
The accessibility challenge with glassmorphism is real and worth taking seriously. Text placed on translucent surfaces has variable contrast depending on what's behind it. A white card with #333333 text might pass contrast checks against one background section and fail against another. The practical fix is to test your glassmorphic elements against the full range of your background — not just a single static screenshot. Tools like the Accessible Colors checker at accessible-colors.com let you input foreground and background hex values to verify compliance, but you'll need to test at multiple scroll positions if your background shifts.
Neumorphism: The Trend That Peaked and What It Left Behind
Neuomorphism had its moment — roughly 2020 to 2022 — and while it's no longer dominating design feeds, its influence on color thinking is still worth understanding. The aesthetic used near-identical background and element colors, creating depth through shadow rather than contrast. Think #E0E5EC backgrounds with elements in #E0E5EC using carefully tuned box shadows in both light (#FFFFFF or similar) and dark (#A3B1C6 or similar) directions.
The reason neumorphism faded is instructive: it's fundamentally at odds with accessibility. When your UI elements are nearly the same color as your background, contrast ratios tank. Buttons become invisible to users with low vision or in bright ambient light. The aesthetic was gorgeous in controlled Dribbble mockups and genuinely difficult to use in production.
What neumorphism left behind is a more sophisticated understanding of shadow-based depth — designers learned to use layered shadows more intentionally, even when working with higher-contrast palettes. That legacy shows up in 2024's design work as more dimensional card components that don't sacrifice legibility.
Minimalism's New Hex Language
Minimalism in 2024 isn't the stark black-and-white of early 2010s design. It's warmer, more intentional, and often built around a single carefully chosen accent color dropped into an otherwise near-neutral palette.
The dominant neutral tones right now lean warm — off-whites like #FAFAF8 and #F7F4EF, warm grays in the #8C8884 range, and near-blacks like #1A1A18 that read as charcoal rather than true black. These warmer neutrals feel more human and less clinical than the cool grays that dominated the previous decade.
The accent color in this paradigm does a lot of work. A single well-chosen hex — maybe a terracotta #C1440E, a sage #87A878, or a dusty blue #6B93B4 — gets applied sparingly to links, CTAs, and key UI moments. Because the accent appears so infrequently, it carries significant visual weight every time it shows up.
Practical Tools for Staying Current
Keeping up with color trends doesn't mean chasing every aesthetic that hits Dribbble. It means having the right tools to evaluate and implement new directions efficiently.
- CSS Gradient Generator (cssgradient.io) — essential for building the mesh gradients and aurora backgrounds showing up everywhere in 2024
- Realtime Colors (realtimecolors.com) — lets you preview full UI color systems live before committing to hex values
- Huemint — AI-assisted palette generation that understands design context, not just color theory
- WebAIM Contrast Checker — non-negotiable for any trend that plays with transparency or low-contrast surfaces
The throughline across every 2024 trend is intentionality. Dark mode, glassmorphism, warm minimalism — they all reward developers who understand the hex logic behind the aesthetic, not just the screenshot. Get comfortable in RGBA space, document your color tokens properly, and always, always check your contrast ratios before you ship.