A blue site with 34 colors in use, built with Bootstrap 4, 97% of its text at WCAG AA
The colors of osha.gov
Recolor (recolor.page) read the home page of osha.gov on October 8, 2026: its main color is #337ab7, a blue, and it paints 34 colors in 4 hue families out of 515 distinct values in its CSS, half of its text at 6.39:1 or better against what it sits on.
Measured
| Measure | osha.gov |
|---|---|
| Main color | #337ab7, a blue near steelblue |
| Five heaviest colors | #337ab7 #ffffff #000000 #23527c #007bff |
| Colors in use | 34, 19 more than a gray; 515 distinct values in the CSS |
| Hue families | 4; blue holds 5% or more of its color |
| Canvas | #ffffff, light |
| Dark mode in the CSS | No |
| Notations | hex codes 88%, rgb() 10%, named colors 1.8%, hsl() 0.2% |
Colors through var() | under 0.1% of its color declarations; 21 variables hold a color |
| Framework | Bootstrap 4 |
| Text contrast | Median 6.39:1; 2.9% of its text under 4.5:1 |
| Page measured | https://www.osha.gov/, 2461.7 KB of CSS |
The palette of osha.gov
Taken the way Recolor's Use site colours takes a page's colors, osha.gov gives the palette #337ab7, #981b1e, #54278f, #ffffff and #212121: the main color first, then its background and text color, black or white for colored text. The code below holds the palette; open osha.gov in Recolor in its own colors or try another palette on osha.gov.
CSS variables
:root {
--color-1: #337ab7;
--color-2: #981b1e;
--color-3: #54278f;
--color-4: #ffffff;
--color-5: #212121;
--color-primary: var(--color-1);
--color-secondary: var(--color-2);
--color-accent: var(--color-3);
}Tailwind v4 @theme
@theme {
--color-1: #337ab7;
--color-2: #981b1e;
--color-3: #54278f;
--color-4: #ffffff;
--color-5: #212121;
--color-primary: #337ab7;
--color-secondary: #981b1e;
--color-accent: #54278f;
}Text contrast on osha.gov
The median contrast of the text on osha.gov is 6.39:1, and 2.9% of it fails WCAG AA: 2.9% is under 4.5:1 and 2.9% under 3:1. On the average studied site 6% of the text fails. 4.3% of its text sits on a dark ground. To pick a readable ink for a background, see Black or white text on a color.
How osha.gov writes its colors
Its CSS writes 7,973 color values: 88% hex codes, 10% in rgb(), 1.8% named colors and 0.2% in hsl(). Under 0.1% of its color declarations read a CSS variable through var(), and it defines 21 variables that hold a color.
Its CSS carries Bootstrap's variables, version 4 (one of 130 Bootstrap sites). It declares no dark mode in its CSS, as 59% of the studied sites do not.
Sites with a similar main color
Other blue sites whose main color is about as light as osha.gov's. All 490 are on the blue page, and colors that go with blue shows what they pair it with. osha.gov is also listed under Bootstrap sites.
Common questions
Is the main color of osha.gov blue?
Yes. Its main color is #337ab7, a blue near the CSS color steelblue, as on 49% of the 1,000 sites the study read.
Does osha.gov use Tailwind CSS?
No. Its CSS carries none of Tailwind CSS's variables; the study found Bootstrap 4.
Is osha.gov a dark site?
No. The color behind its home page is #ffffff, a light canvas.
Does the text on osha.gov pass WCAG AA?
No. 2.9% of its text fails AA, though half of it reads at 6.39:1 or better.
Can I see osha.gov in another palette?
Yes. Load osha.gov 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 911 recolor.page
- osha.gov, the page measured osha.gov
- Majestic Million, CC BY 3.0, attribution "Majestic" majestic.com