#6040BF color
#6040BF is a medium, moderately saturated violet, closest to the CSS named color rebeccapurple (#663399).
Color values
| HEX | #6040BF |
| RGB | rgb(96, 64, 191) |
| HSL | hsl(255, 50%, 50%) |
| CMYK | cmyk(50%, 66%, 0%, 25%) |
| Decimal | 6308031 |
| CSS | color: #6040BF; |
| Android | 0xFF6040BF |
| Swift | UIColor(red: 0.376, green: 0.251, blue: 0.749, alpha: 1) |
Accessibility and contrast
| White text on #6040BF | 7.04:1 — AA pass · AA large pass · AAA pass |
| Black text on #6040BF | 2.98: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 #6040BF
Each swatch keeps the hue and saturation of #6040BF and varies only lightness — the quickest way to build a usable scale from a single brand color.
Colors that go with #6040BF
Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.
Using #6040BF in code
/* CSS */
.element { color: #6040BF; background-color: #6040BF; }
.element { color: rgb(96 64 191); }
.element { color: hsl(255 50% 50%); }
/* Tailwind arbitrary value */
<div class="bg-[#6040BF] text-white">
/* SCSS variable */
$brand: #6040BF;
Frequently asked questions
What color is #6040BF?
#6040BF is a medium, moderately saturated violet. Its hue sits at 255° on the color wheel, with 50% saturation and 50% lightness.
What is #6040BF in RGB?
#6040BF converts to rgb(96, 64, 191) — 96 red, 64 green and 191 blue.
What is #6040BF in CMYK?
Approximately cmyk(50%, 66%, 0%, 25%). 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 #6040BF be white or black?
White gives the better contrast ratio (7.04:1 versus 2.98:1).
What is the complementary color of #6040BF?
#9FBF40 — the hue directly opposite #6040BF on the color wheel.