#312E81 — Tints, Shades & Color Values
#312E81 is a dark, moderately saturated blue. In Tailwind CSS this exact color is the utility class indigo-900 (e.g. bg-indigo-900, text-indigo-900). Its nearest CSS named color is darkslateblue (#483d8b). For readable text on a #312E81 background, white text gives the strongest contrast (11.42:1). #312E81 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 | #312E81 |
|---|---|
| RGB | rgb(49, 46, 129) |
| HSL | hsl(242, 47%, 34%) |
| HSV / HSB | 242°, 64%, 51% |
| Nearest named | darkslateblue (#483d8b) |
Need these in another format? Use our hex to RGB converter for quick two-way conversion.
#312E81 in Tailwind CSS (indigo-900)
#312E81 ships with Tailwind CSS as indigo-900 — use it as bg-indigo-900, text-indigo-900, or border-indigo-900. It sits at step 900 of the indigo 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 #312E81 (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
#46438e -
20% tint
#5a589a -
30% tint
#6f6da7 -
40% tint
#8382b3 -
50% tint
#9897c0 -
60% tint
#adabcd -
70% tint
#c1c0d9 -
80% tint
#d6d5e6 -
90% tint
#eaeaf2
Shades of #312E81 (Mixed with Black)
Each step blends the base color toward black using new = old × (1 − factor).
-
10% shade
#2c2974 -
20% shade
#272567 -
30% shade
#22205a -
40% shade
#1d1c4d -
50% shade
#191741 -
60% shade
#141234 -
70% shade
#0f0e27 -
80% shade
#0a091a -
90% shade
#05050d
WCAG Contrast & Accessibility
Contrast ratios for text placed on a #312E81 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 11.42:1 — AA normal: Pass · AA large: Pass · AAA: Pass |
|---|---|
| Black text 1.84: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 #312E81 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: #475569 (slate-600), #4B5563 (gray-600), #1E3A8A (blue-900), #0369A1 (sky-700), #0284C7 (sky-600), #34495E.
Frequently Asked Questions
-
What color is #312E81?
#312E81 is a dark, moderately saturated blue —
rgb(49, 46, 129). Its nearest CSS named color isdarkslateblue. In Tailwind CSS it isindigo-900. -
How do I make tints and shades of #312E81?
Mix #312E81 with white for tints and with black for shades. A 20% tint of #312E81 is
#5a589aand a 20% shade is#272567— the full 10%–90% ramps are precomputed on this page, or open #312E81 in the generator for finer steps. -
What text color is readable on #312E81?
White text gives the strongest contrast on a #312E81 background at 11.42:1, which passes WCAG AA and AAA for normal text.
-
What is the Tailwind CSS class for #312E81?
indigo-900— use it asbg-indigo-900,text-indigo-900, orborder-indigo-900. The full indigo 50–950 ramp is linked above.
Browse more colors in the color library, or start from any hex code on the HexTints homepage.
#312E81? Put it on a free link-in-bio page →