#1E40AF — Tints, Shades & Color Values
#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.
Color Values
| Hex | #1E40AF |
|---|---|
| RGB | rgb(30, 64, 175) |
| HSL | hsl(226, 71%, 40%) |
| HSV / HSB | 226°, 83%, 69% |
| Nearest named | darkslateblue (#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.
-
10% tint
#3553b7 -
20% tint
#4b66bf -
30% tint
#6279c7 -
40% tint
#788ccf -
50% tint
#8fa0d7 -
60% tint
#a5b3df -
70% tint
#bcc6e7 -
80% tint
#d2d9ef -
90% tint
#e9ecf7
Shades of #1E40AF (Mixed with Black)
Each step blends the base color toward black using new = old × (1 − factor).
-
10% shade
#1b3a9e -
20% shade
#18338c -
30% shade
#152d7a -
40% shade
#122669 -
50% shade
#0f2058 -
60% shade
#0c1a46 -
70% shade
#091335 -
80% shade
#060d23 -
90% shade
#030611
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
-
What color is #1E40AF?
#1E40AF is a medium, vivid blue —
rgb(30, 64, 175). Its nearest CSS named color isdarkslateblue. In Tailwind CSS it isblue-800. -
How do I make tints and shades of #1E40AF?
Mix #1E40AF with white for tints and with black for shades. A 20% tint of #1E40AF is
#4b66bfand a 20% shade is#18338c— the full 10%–90% ramps are precomputed on this page, or open #1E40AF in the generator for finer steps. -
What text color is readable on #1E40AF?
White text gives the strongest contrast on a #1E40AF background at 8.72:1, which passes WCAG AA and AAA for normal text.
-
What is the Tailwind CSS class for #1E40AF?
blue-800— use it asbg-blue-800,text-blue-800, orborder-blue-800. The full blue 50–950 ramp is linked above.
Browse more colors in the color library, or start from any hex code on the HexTints homepage.
#1E40AF? Put it on a free link-in-bio page →