#3B0764 color
The swatch above shows #3B0764 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.
#3B0764 is a dark, vivid violet, closest to the CSS named color indigo (#4B0082).
It is also a Tailwind CSS default: purple-950. That means you can write bg-purple-950 or text-purple-950 directly, with no arbitrary-value brackets and no entry in your theme config.
Color values
| HEX | #3B0764 |
| RGB | rgb(59, 7, 100) |
| HSL | hsl(274, 87%, 21%) |
| CMYK | cmyk(41%, 93%, 0%, 61%) |
| Decimal | 3868516 |
| CSS | color: #3B0764; |
| Android | 0xFF3B0764 |
| Swift | UIColor(red: 0.231, green: 0.027, blue: 0.392, alpha: 1) |
Accessibility and contrast
| White text on #3B0764 | 15.00:1 — AA pass · AA large pass · AAA pass |
| Black text on #3B0764 | 1.40:1 — AA fail · AA large fail · AAA fail |
| Recommended text color | white |
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 #3B0764
Each swatch keeps the hue and saturation of #3B0764 and varies only lightness — the quickest way to build a usable scale from a single brand color.
Colors that go with #3B0764
Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.
Using #3B0764 in code
/* CSS */
.element { color: #3B0764; background-color: #3B0764; }
.element { color: rgb(59 7 100); }
.element { color: hsl(274 87% 21%); }
/* Tailwind */
<div class="bg-purple-950 text-white">
/* SCSS variable */
$brand: #3B0764;
Frequently asked questions
What color is #3B0764?
#3B0764 is a dark, vivid violet. Its hue sits at 274° on the color wheel, with 87% saturation and 21% lightness.
What is #3B0764 in RGB?
#3B0764 converts to rgb(59, 7, 100) — 59 red, 7 green and 100 blue.
What is #3B0764 in CMYK?
Approximately cmyk(41%, 93%, 0%, 61%). 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 #3B0764 be white or black?
White gives the better contrast ratio (15.00:1 versus 1.40:1).
What is the complementary color of #3B0764?
#2F6407 — the hue directly opposite #3B0764 on the color wheel.