
Some color codes appear so frequently across the web that they have become unofficial standards. These are not just random popular choices — each one earned its place through readability, aesthetic quality, and practical versatility. Knowing these codes accelerates your design work because you start from proven values rather than reinventing the wheel.

Text Colors That Work
For body text, #1F2937 dominates modern sites. It is dark enough for excellent readability on white backgrounds (15.4:1 contrast ratio) but softer than pure black, reducing eye strain during long reading sessions. For secondary text like captions, dates, and metadata, #6B7280 at 4.6:1 contrast is the sweet spot — clearly de-emphasized while still passing WCAG AA requirements.
Almost nobody uses pure #000000 for text anymore. The high contrast against white causes a halo effect on LCD screens and creates uncommonly harsh edges on OLED panels where black pixels are physically turned off. The shift to near-black grays is universal across Apple, Google, Stripe, and virtually every well-designed interface you use daily.

Background Colors
White (#FFFFFF) remains the primary background, but layered interfaces use subtle off-whites to create depth. #F9FAFB for page backgrounds, #F3F4F6 for card surfaces, and #E5E7EB for dividers and separators. These barely-there grays create the visual hierarchy that makes modern card-based interfaces feel three-dimensional rather than flat. The differences between them are subtle — often just 4-8 points on the lightness scale — but they are essential for professional polish.
Action Colors
#3B82F6 is arguably the most-used button color on the web — a clean medium blue that reads as interactive without being aggressive. #10B981 signals success and confirmation across thousands of applications. #EF4444 universally means error, deletion, or destructive action. #F59E0B serves as the standard warning amber. These specific codes appear so consistently that users subconsciously understand their meaning without reading labels.
Dark Mode Standards
#0F172A has emerged as the most popular dark background — a deep slate with just enough blue undertone to feel rich rather than stark. Card surfaces use #1E293B (one step lighter), and elevated elements like dropdowns use #334155. Body text on dark backgrounds is typically #E2E8F0 rather than pure white, avoiding the same harshness problem that pure black creates on white backgrounds. These dark mode values have been refined across millions of users and represent the current consensus on comfortable dark interface colors.