#818CF8 color
The swatch above shows #818CF8 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.
#818CF8 is a light, vivid blue, closest to the CSS named color cornflowerblue (#6495ED).
It is also a Tailwind CSS default: indigo-400. That means you can write bg-indigo-400 or text-indigo-400 directly, with no arbitrary-value brackets and no entry in your theme config.
Color values
| HEX | #818CF8 |
| RGB | rgb(129, 140, 248) |
| HSL | hsl(234, 89%, 74%) |
| CMYK | cmyk(48%, 44%, 0%, 3%) |
| Decimal | 8490232 |
| CSS | color: #818CF8; |
| Android | 0xFF818CF8 |
| Swift | UIColor(red: 0.506, green: 0.549, blue: 0.973, alpha: 1) |
Accessibility and contrast
| White text on #818CF8 | 2.98:1 — AA fail · AA large fail · AAA fail |
| Black text on #818CF8 | 7.04:1 — AA pass · AA large pass · AAA pass |
| Recommended text color | black |
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 #818CF8
Each swatch keeps the hue and saturation of #818CF8 and varies only lightness — the quickest way to build a usable scale from a single brand color.
Colors that go with #818CF8
Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.
Using #818CF8 in code
/* CSS */
.element { color: #818CF8; background-color: #818CF8; }
.element { color: rgb(129 140 248); }
.element { color: hsl(234 89% 74%); }
/* Tailwind */
<div class="bg-indigo-400 text-black">
/* SCSS variable */
$brand: #818CF8;
Frequently asked questions
What color is #818CF8?
#818CF8 is a light, vivid blue. Its hue sits at 234° on the color wheel, with 89% saturation and 74% lightness.
What is #818CF8 in RGB?
#818CF8 converts to rgb(129, 140, 248) — 129 red, 140 green and 248 blue.
What is #818CF8 in CMYK?
Approximately cmyk(48%, 44%, 0%, 3%). 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 #818CF8 be white or black?
Black gives the better contrast ratio (7.04:1 versus 2.98:1).
What is the complementary color of #818CF8?
#F8EC82 — the hue directly opposite #818CF8 on the color wheel.