#1D4ED8 color
The swatch above shows #1D4ED8 with its hex code written on it in white and in black, so you can see which of the two is legible before reading the measured ratios below.
#1D4ED8 is a medium, vivid blue, closest to the CSS named color royalblue (#4169E1).
It is also a Tailwind CSS default: blue-700. That means you can write bg-blue-700 or text-blue-700 directly, with no arbitrary-value brackets and no entry in your theme config.
Color values
| HEX | #1D4ED8 |
| RGB | rgb(29, 78, 216) |
| HSL | hsl(224, 76%, 48%) |
| CMYK | cmyk(87%, 64%, 0%, 15%) |
| Decimal | 1920728 |
| CSS | color: #1D4ED8; |
| Android | 0xFF1D4ED8 |
| Swift | UIColor(red: 0.114, green: 0.306, blue: 0.847, alpha: 1) |
Accessibility and contrast
| White text on #1D4ED8 | 6.70:1 — AA pass · AA large pass · AAA fail |
| Black text on #1D4ED8 | 3.13:1 — AA fail · AA large pass · AAA fail |
| Recommended text color | white |
WCAG 2.1 asks for at least 4.5:1 for body text and 3:1 for large text (18 pt, or 14 pt bold).
Tints and shades of #1D4ED8
Each swatch keeps the hue and saturation of #1D4ED8 and varies only lightness — the quickest way to build a usable scale from a single brand color.
Colors that go with #1D4ED8
Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.
Using #1D4ED8 in code
/* CSS */
.element { color: #1D4ED8; background-color: #1D4ED8; }
.element { color: rgb(29 78 216); }
.element { color: hsl(224 76% 48%); }
/* Tailwind */
<div class="bg-blue-700 text-white">
/* SCSS variable */
$brand: #1D4ED8;
Frequently asked questions
What color is #1D4ED8?
#1D4ED8 is a medium, vivid blue. Its hue sits at 224° on the color wheel, with 76% saturation and 48% lightness.
What is #1D4ED8 in RGB?
#1D4ED8 converts to rgb(29, 78, 216) — 29 red, 78 green and 216 blue.
What is #1D4ED8 in CMYK?
Approximately cmyk(87%, 64%, 0%, 15%). Print output depends on the ICC profile of the press and paper, so treat this as a starting point rather than an exact match.
Should text on #1D4ED8 be white or black?
White gives the better contrast ratio (6.70:1 versus 3.13:1).
What is the complementary color of #1D4ED8?
#D7A61D — the hue directly opposite #1D4ED8 on the color wheel.