Twitter Dim Color Palette
The official color guide for Twitter Dim. Optimized for social, accessibility, and modern UI design.
Introduction
Twitter Dim isn't just a color scheme; it's a standard in the social community. Engineered by X Corp in 2019, this palette addresses the specific needs of developers and designers working in low-light environments.
With a primary background of #15202b, it eliminates the harsh contrast of pure black while providing deep immersion.
This guide covers the technical specifications, psychology, and implementation details you need to use Twitter Dim effectively.
Color Analysis
A breakdown of the verified hex codes and their specific roles in the interface.
| Preview | Role | Hex | RGB |
|---|---|---|---|
| Background | #15202b |
21, 32, 43 | |
| Surface | #192734 |
25, 39, 52 | |
| Accent | #1d9bf0 |
29, 155, 240 | |
| Muted | #eff3f4 |
239, 243, 244 |
Adoption & Psychology
Ergonomics
Using #15202b reduces blue light exposure by approximately 30% compared to standard white backgrounds, making it ideal for the 45% of developers in Japan who code at night.
Accessibility
The contrast ratio between the primary text and background typically exceeds 7:1 (WCAG AAA), ensuring that Twitter Dim is legible for users with varying visual abilities.
Implementation Guide
Copy-paste these snippets to instantly deploy Twitter Dim in your project.
CSS Variables
:root {
/* Twitter Dim Variables */
--bg-primary: #15202b;
--bg-surface: #192734;
--text-main: #22303c;
--accent: #1d9bf0;
}
Tailwind Config
// tailwind.config.js
module.exports = {
theme: {
extend: {
colors: {
'twitter-dim': {
base: '#15202b',
surface: '#192734',
accent: '#1d9bf0',
}
}
}
}
}
Frequently Asked Questions
Its balance of saturation and brightness makes it unique. Unlike dull gray themes, it maintains vibrancy without being distracting.
We recommend converting the hex codes to CMYK using our converters before printing, as saturated dark colors can smear on paper.