Toolman

#1D4ED8 color

#1D4ED8#1D4ED8

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
RGBrgb(29, 78, 216)
HSLhsl(224, 76%, 48%)
CMYKcmyk(87%, 64%, 0%, 15%)
Decimal1920728
CSScolor: #1D4ED8;
Android0xFF1D4ED8
SwiftUIColor(red: 0.114, green: 0.306, blue: 0.847, alpha: 1)

Accessibility and contrast

White text on #1D4ED86.70:1 — AA pass · AA large pass · AAA fail
Black text on #1D4ED83.13:1 — AA fail · AA large pass · AAA fail
Recommended text colorwhite

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.

95%
85%
75%
65%
55%
45%
35%
25%
15%

Colors that go with #1D4ED8

Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.

Complementary
Triadic +120°
Triadic +240°
Analogous −30°
Analogous +30°
Split −150°
Split +150°

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.

Convert any color → · Browse all colors