YouTube Dark Color Palette
The official color guide for YouTube Dark. Optimized for social, accessibility, and modern UI design.
Introduction
YouTube Dark isn't just a color scheme; it's a standard in the social community. Engineered by Google in 2018, this palette addresses the specific needs of developers and designers working in low-light environments.
With a primary background of #0f0f0f, 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 YouTube Dark effectively.
Color Analysis
A breakdown of the verified hex codes and their specific roles in the interface.
| Preview | Role | Hex | RGB |
|---|---|---|---|
| Background | #0f0f0f |
15, 15, 15 | |
| Surface | #272727 |
39, 39, 39 | |
| Accent | #aaaaaa |
170, 170, 170 | |
| Muted | #ff0000 |
255, 0, 0 |
Adoption & Psychology
Ergonomics
Using #0f0f0f reduces blue light exposure by approximately 30% compared to standard white backgrounds, making it ideal for the 45% of developers in Germany who code at night.
Accessibility
The contrast ratio between the primary text and background typically exceeds 7:1 (WCAG AAA), ensuring that YouTube Dark is legible for users with varying visual abilities.
Implementation Guide
Copy-paste these snippets to instantly deploy YouTube Dark in your project.
CSS Variables
:root {
/* YouTube Dark Variables */
--bg-primary: #0f0f0f;
--bg-surface: #272727;
--text-main: #f1f1f1;
--accent: #aaaaaa;
}
Tailwind Config
// tailwind.config.js
module.exports = {
theme: {
extend: {
colors: {
'youtube-dark': {
base: '#0f0f0f',
surface: '#272727',
accent: '#aaaaaa',
}
}
}
}
}
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.