#311790 color
The hex color #311790 is a dark, moderate violet.
In the RGB color model it is made of 19.2% red, 9% green and 56.5% blue (49, 23, 144).
Its hue angle is 253°, with 72% saturation and 33% lightness. For print, the CMYK equivalent is 66% cyan, 84% magenta, 0% yellow and 44% black.
The closest named color is Indiglow (#301885), a difference of 1.7 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 12.68:1).
#311790 color codes
| HEX | #311790 | |
|---|---|---|
| RGB | rgb(49, 23, 144) | |
| RGB percent | rgb(19.2%, 9%, 56.5%) | |
| HSL | hsl(253, 72%, 33%) | |
| HSV / HSB | hsv(253, 84%, 56%) | |
| CMYK | cmyk(66%, 84%, 0%, 44%) | |
| CIE LAB | lab(21.13, 45.54, -61.12) | |
| CIE LCH | lch(21.13, 76.21, 306.69) | |
| CIE XYZ | xyz(6.605, 3.279, 26.665) | |
| Decimal | 3217296 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #311790, based on their position on the color wheel.
Complementary
The color opposite on the color wheel (180°). Strongest contrast.
Analogous
Neighbors 30° either side. Calm, natural combinations.
Split complementary
The two colors next to the complement (150° and 210°).
Triadic
Three colors evenly spaced, 120° apart.
Tetradic (square)
Four colors 90° apart.
Shades, tints and tones
Shades (darker, mixed with black)
Tints (lighter, mixed with white)
Tones (mixed with gray)
Contrast and accessibility
| Text on #311790 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.66:1 | Fail | Fail | Fail |
| Sample text | 12.68:1 | Pass | Pass | Pass |
| #311790 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 12.68:1 | Pass | Pass | Pass |
| Sample text | 1.66:1 | Fail | Fail | Fail |
WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.
Color blindness simulation
How #311790 looks to people with the most common types of color vision deficiency.
#003793Protanopia
no red cones#002e8eDeuteranopia
no green cones#003d55Tritanopia
no blue cones#333333Achromatopsia
no color vision
CSS examples
.background { background-color: #311790; }
.text { color: #311790; }
.border { border: 2px solid #311790; }
.transparent { background-color: rgb(49 23 144 / 50%); }
.gradient { background: linear-gradient(to right, #311790, #6d1790); }
Similar colors
#301885Indiglow#221188Nightly Expedition#312297Gentian Blue#0c1793Royal#240093Dramatic Blue#120a8fUltramarine#111188Galactic Cruise#001199Space Exploration
Questions
- What color is #311790?
- #311790 is a dark, moderate violet, closest to the named color Indiglow. It belongs to the blue family of colors.
- What is the RGB value of #311790?
- The RGB value is 49, 23, 144: 49 red, 23 green and 144 blue on a 0 to 255 scale.
- What is the complementary color of #311790?
- The complementary color is #769017, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #311790?
- White text. Black text has a contrast ratio of 1.66:1 and white text 12.68:1. WCAG asks for at least 4.5:1 for normal text.