A blue site with 14 colors in use, built with Tailwind CSS 3, all of its text at WCAG AA
The colors of bmj.com
On bmj.com, #2a6ebb leads: a blue main color among 14 colors in use, 8 of them more than a gray. Recolor (recolor.page) measured the home page on October 8, 2026 for its study of the colors of the web, reading 81 distinct color values in 221.2 KB of CSS, half of its text at 8.63:1 or better against what it sits on.
Measured
| Measure | bmj.com |
|---|---|
| Main color | #2a6ebb, a blue near royalblue |
| Five heaviest colors | #e5e7eb #4a4c4d #ffffff #2a6ebb #5f6163 |
| Colors in use | 14, 8 more than a gray; 81 distinct values in the CSS |
| Hue families | 5; blue holds 5% or more of its color |
| Canvas | #ffffff, light |
| Dark mode in the CSS | Yes: prefers-color-scheme: dark and a dark theme's class or attribute |
| Notations | rgb() 64%, hsl() 28%, hex codes 7.9%, bare channels in a variable under 0.1% |
Colors through var() | 8.4% of its color declarations; 41 variables hold a color |
| Framework | Tailwind CSS 3 |
| Text contrast | Median 8.63:1; 0% of its text under 4.5:1 |
| Page measured | https://www.bmj.com/, 221.2 KB of CSS |
The palette of bmj.com
As a palette, bmj.com is #2a6ebb, #69be28, #cb2331, #ffffff and #4a4c4d: its hue families' main colors first, in the order Recolor ranks them, then its background and text color (black or white for colored text), then its grays. Open bmj.com in Recolor in its own colors and press Space to see it in others, or start from a new palette.
CSS variables
:root {
--color-1: #2a6ebb;
--color-2: #69be28;
--color-3: #cb2331;
--color-4: #ffffff;
--color-5: #4a4c4d;
--color-primary: var(--color-1);
--color-secondary: var(--color-2);
--color-accent: var(--color-3);
}Tailwind v4 @theme
@theme {
--color-1: #2a6ebb;
--color-2: #69be28;
--color-3: #cb2331;
--color-4: #ffffff;
--color-5: #4a4c4d;
--color-primary: #2a6ebb;
--color-secondary: #69be28;
--color-accent: #cb2331;
}Text contrast on bmj.com
Every piece of text the study read on bmj.com passes WCAG AA, with half of it at 8.63:1 or better. On the average studied site 6% of the text fails. 9.7% of its text sits on a dark ground. Black or white text on a color explains the 4.5:1 and 3:1 lines.
How bmj.com writes its colors
The 3,184 color values in its CSS are written as rgb() (64%), hsl() (28%), hex codes (7.9%) and bare channels in a variable (under 0.1%). Through var(), 8.4% of its color declarations take their color from a CSS variable; 41 variables hold one.
By its variables, the study told Tailwind CSS's variables, version 3 (one of 201 Tailwind CSS sites) in its CSS. Its CSS holds dark colors under a prefers-color-scheme: dark media query and a dark theme's class or attribute: a dark mode, as on 406 sites of the 1,000.
Sites with a similar main color
The blue sites nearest bmj.com in the lightness of their main color. The blue page lists all 490; colors that go with blue counts the hues beside it. bmj.com is also listed under Tailwind CSS sites and sites with a dark mode.
Common questions
Is the main color of bmj.com blue?
Yes. Its main color is #2a6ebb, a blue near the CSS color royalblue, as on 49% of the 1,000 sites the study read.
Does bmj.com use Tailwind CSS?
Yes. Its CSS carries Tailwind CSS's variables, version 3, like 201 of the 1,000 sites the study read.
Is bmj.com a dark site?
No. The color behind its home page is #ffffff, a light canvas, though its CSS declares a dark mode for readers who ask for one.
Does the text on bmj.com pass WCAG AA?
Yes. All of the text the study measured reaches 4.5:1 against what it sits on, or 3:1 where it is large; half of it reads at 8.63:1 or better.
Can I see bmj.com in another palette?
Yes. Load bmj.com in Recolor and press Space: the page repaints in a new palette, live. Its own palette opens it close to how it looks.
Sources
- The colors of the web 2026, Recolor recolor.page
- How the study was measured recolor.page
- dataset.csv, the row of rank 368 recolor.page
- bmj.com, the page measured bmj.com
- Majestic Million, CC BY 3.0, attribution "Majestic" majestic.com