X / Twitter Color Palette
#000000 · #FFFFFF · #1D9BF0 · #536471
Use #000000 as the background. Use #FFFFFF as the primary accent. Use #1D9BF0 as secondary. Use #536471 as body text/supporting color. Palette mood: X / Twitter — night, minimal, bold.
Hex Codes, RGB & CMYK Color Values
Technical breakdown for the X / Twitter color scheme. Use these values for web design (HEX/RGB), print projects (CMYK), or specialized design software (HSL).
| Swatch | Design Role | HEX | RGB | CMYK | HSL |
|---|---|---|---|---|---|
| Background Luminance: 0.0% | 0, 0, 0 | 0%, 0%, 0%, 100% | 0°, 0%, 0% | ||
| Text · AAA Luminance: 100.0% | 255, 255, 255 | 0%, 0%, 0%, 0% | 0°, 0%, 100% | ||
| Text · AA Luminance: 30.0% | 29, 155, 240 | 88%, 35%, 0%, 6% | 204°, 88%, 53% | ||
| Large text / UI Luminance: 12.1% | 83, 100, 113 | 27%, 12%, 0%, 56% | 206°, 15%, 38% |
X / Twitter Tints & Shades
Hover states, borders and elevation need lighter and darker steps of your base colors. Here are computed tints and shades for every color in the X / Twitter palette — click any swatch to copy its hex.
X / Twitter Palette Contrast Matrix (WCAG 2.1)
Every color tested as text on every other color as background. Body copy needs 4.5:1 (AA), large text and UI components 3:1. AAA requires 7:1.
| Text on Background | Preview | Ratio | Grade | Safe For |
|---|---|---|---|---|
| #FFFFFF on #000000 |
Aa Sample Text
| 21.00:1 | AAA | Body text, headings, UI |
| #000000 on #FFFFFF |
Aa Sample Text
| 21.00:1 | AAA | Body text, headings, UI |
| #1D9BF0 on #000000 |
Aa Sample Text
| 6.99:1 | AA | Body text, UI |
| #000000 on #1D9BF0 |
Aa Sample Text
| 6.99:1 | AA | Body text, UI |
| #536471 on #FFFFFF |
Aa Sample Text
| 6.12:1 | AA | Body text, UI |
| #FFFFFF on #536471 |
Aa Sample Text
| 6.12:1 | AA | Body text, UI |
| #536471 on #000000 |
Aa Sample Text
| 3.42:1 | Fail | Large headings, UI components |
| #000000 on #536471 |
Aa Sample Text
| 3.42:1 | Fail | Large headings, UI components |
| #1D9BF0 on #FFFFFF |
Aa Sample Text
| 3.00:1 | Fail | Large headings, UI components |
| #FFFFFF on #1D9BF0 |
Aa Sample Text
| 3.00:1 | Fail | Large headings, UI components |
| #536471 on #1D9BF0 |
Aa Sample Text
| 2.04:1 | Fail | Decorative use only |
| #1D9BF0 on #536471 |
Aa Sample Text
| 2.04:1 | Fail | Decorative use only |
Color Harmony: Monochromatic
2 of 4 colors sit at essentially the same hue (205°, cyan-blue); the palette varies them by lightness and saturation rather than hue.
Single-hue palettes are the easiest to keep consistent, but neighbouring slots can look flat — separate them with lightness steps of at least 15%.
History & Design Context
Best Design Use Cases
Measured best pair: #FFFFFF on #000000 at 21.00:1 (AAA). Use this pair for paragraph copy; the surface roles above are not body-text prescriptions.
Black, white and a legacy blue link
The core interface is deliberately stark: #000000 and #FFFFFF give 21:1, while #1D9BF0 is the link and accent blue at 6.99:1 on black, and #536471 is the secondary grey for metadata and borders.
The palette has almost no decorative range, so typography, spacing and media have to carry the hierarchy. Keep the blue for links and interactive states, use white for primary copy on black, and avoid adding a second accent that would soften the intended starkness.
Industries This Palette Suits
Colors That Pair Well With X / Twitter
Need a fifth color? These three companions are computed from the palette's own hue positions on the color wheel, so they extend the scheme without breaking its harmony.
directly opposite #FFFFFF on the wheel — the strongest accent for CTAs and highlights when you need maximum energy
30° beside #FFFFFF — a calm secondary that extends the palette without adding tension
a paper-white carrying the palette's own hue — perfect for surfaces and dividers
Using X / Twitter Without Breaking Accessibility
- Use #FFFFFF for buttons and links — it scores 21.00:1 against the #000000 background (above the 3:1 UI-components threshold).
- Don't set body copy in #536471 on #000000 — 3.42:1 fails WCAG AA; keep it for large decorative headings only.
- Let #1D9BF0 carry sidebars, cards and footers — at a mid lightness it separates zones without stealing focus from #FFFFFF.
How to Implement the X / Twitter Color Scheme
To use this X / Twitter color palette in your web project, copy the CSS variables below or open the export panel for Tailwind, SCSS and Figma formats.
Option 1: CSS Variables
:root {
/* X / Twitter — ihatecolors */
--color-bg: #000000;
--color-accent: #FFFFFF;
--color-secondary: #1D9BF0;
--color-text: #536471;
} Web Design Tip
Use #000000 as the page background and #FFFFFF for primary buttons — they measure 21.00:1, which clears both the 3:1 UI threshold and the 4.5:1 body-text threshold.
Accessibility Note
#536471 on #000000 measures 3.42:1 — enough for large text and UI components (3:1) but below the 4.5:1 needed for body copy.
X / Twitter Palette — Frequently Asked Questions
What are the hex codes in the X / Twitter color palette?
The X / Twitter palette contains #000000, #FFFFFF, #1D9BF0, #536471. Click any swatch on this page to copy its value, or export all four at once as CSS variables, Tailwind config, SCSS or a Figma-ready list.
Is the X / Twitter color palette accessible (WCAG)?
Yes. #FFFFFF on #000000 reaches 21.00:1, which passes WCAG AAA for normal text (7:1) as well as AA and the 3:1 UI threshold — use it for body copy and controls. The full contrast matrix above shows the exact score for every color-on-color pair in this palette.
What colors go well with the X / Twitter palette?
Beyond its own four colors, #B3B3B3, #FFFFFF, #EEECEC extend it naturally: the complementary hue for high-energy accents, an analogous neighbor for calm transitions, and a tinted neutral for surfaces. All three are computed from this palette's hues on the color wheel.
What mood does the X / Twitter palette create?
X / Twitter reads as night, minimal, bold. Neutral gray drives the personality, grounded by neutral gray — a combination that works best when the deep base gets most of the canvas.
Can I use the X / Twitter color palette commercially?
Yes. Individual color values can't be copyrighted, so the X / Twitter palette is free for personal, client and commercial work — websites, branding, apps, print and social content, with no attribution required.
How do I add the X / Twitter palette to Tailwind or CSS?
Use the export panel on this page: CSS variables, a Tailwind config block, SCSS variables, or a Figma copy list are generated from X / Twitter's exact values, including the tint and shade ramps shown above.