#1E40AF — Tints, Shades & Color Values

#1E40AF

#1E40AF is a medium, vivid blue. In Tailwind CSS this exact color is the utility class blue-800 (e.g. bg-blue-800, text-blue-800). Its nearest CSS named color is darkslateblue (#483d8b). For readable text on a #1E40AF background, white text gives the strongest contrast (8.72:1). #1E40AF sits in the middle of the lightness range, so it can serve as a primary brand or accent color — use its tints for backgrounds and its shades for text and pressed states.

Want to fine-tune this color interactively? Open #1E40AF in the tint & shade generator to explore the full lightness, hue, and chroma scales and copy any step.

Color Values

Hex#1E40AF
RGBrgb(30, 64, 175)
HSLhsl(226, 71%, 40%)
HSV / HSB226°, 83%, 69%
Nearest nameddarkslateblue (#483d8b)

Need these in another format? Use our hex to RGB converter for quick two-way conversion.

#1E40AF in Tailwind CSS (blue-800)

#1E40AF ships with Tailwind CSS as blue-800 — use it as bg-blue-800, text-blue-800, or border-blue-800. It sits at step 800 of the blue ramp; every other step links to its own page:

Browse the full Tailwind palette in the color library, or generate in-between steps with the tint & shade generator.

Tints of #1E40AF (Mixed with White)

Each step blends the base color toward white using new = old + (255 − old) × factor. Click a swatch to open it in the generator.

Shades of #1E40AF (Mixed with Black)

Each step blends the base color toward black using new = old × (1 − factor).

WCAG Contrast & Accessibility

Contrast ratios for text placed on a #1E40AF background. WCAG requires 4.5:1 for normal text (AA), 3:1 for large text (AA), and 7:1 for normal text (AAA).

Text color White text 8.72:1 — AA normal: Pass · AA large: Pass · AAA: Pass
Black text 2.41:1 — AA normal: Fail · AA large: Fail · AAA: Fail

If neither pure white nor pure black reaches the level you need, pick a lighter tint of #1E40AF from the ramps above as the background instead — small lightness moves change contrast quickly. Test any other pair with the free contrast checker.

More blue colors in the library: #0284C7 (sky-600), #3730A3 (indigo-800), #2980B9, #475569 (slate-600), #6B7280 (gray-500), #312E81 (indigo-900).

Frequently Asked Questions

Browse more colors in the color library, or start from any hex code on the HexTints homepage.

Building a brand around #1E40AF? Put it on a free link-in-bio page →