Toolman

#1E40AF color

#1E40AF#1E40AF

#1E40AF is a medium, vivid blue, closest to the CSS named color darkslateblue (#483D8B).

Color values

HEX#1E40AF
RGBrgb(30, 64, 175)
HSLhsl(226, 71%, 40%)
CMYKcmyk(83%, 63%, 0%, 31%)
Decimal1982639
CSScolor: #1E40AF;
Android0xFF1E40AF
SwiftUIColor(red: 0.118, green: 0.251, blue: 0.686, alpha: 1)

Accessibility and contrast

White text on #1E40AF8.72:1 — AA pass · AA large pass · AAA pass
Black text on #1E40AF2.41:1 — AA fail · AA large fail · 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 #1E40AF

Each swatch keeps the hue and saturation of #1E40AF 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 #1E40AF

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 #1E40AF in code

/* CSS */
.element { color: #1E40AF; background-color: #1E40AF; }
.element { color: rgb(30 64 175); }
.element { color: hsl(226 71% 40%); }

/* Tailwind arbitrary value */
<div class="bg-[#1E40AF] text-white">

/* SCSS variable */
$brand: #1E40AF;

Frequently asked questions

What color is #1E40AF?

#1E40AF is a medium, vivid blue. Its hue sits at 226° on the color wheel, with 71% saturation and 40% lightness.

What is #1E40AF in RGB?

#1E40AF converts to rgb(30, 64, 175) — 30 red, 64 green and 175 blue.

What is #1E40AF in CMYK?

Approximately cmyk(83%, 63%, 0%, 31%). 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 #1E40AF be white or black?

White gives the better contrast ratio (8.72:1 versus 2.41:1).

What is the complementary color of #1E40AF?

#AE8D1E — the hue directly opposite #1E40AF on the color wheel.

Convert any color → · Browse all colors