#31236D color
The hex color #31236D is a dark, moderate violet.
In the RGB color model it is made of 19.2% red, 13.7% green and 42.7% blue (49, 35, 109).
Its hue angle is 251°, with 51% saturation and 28% lightness. For print, the CMYK equivalent is 55% cyan, 68% magenta, 0% yellow and 57% black.
The closest named color is Dark Dreams (#332266), a difference of 1.6 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 13.19:1).
#31236D color codes
| HEX | #31236D | |
|---|---|---|
| RGB | rgb(49, 35, 109) | |
| RGB percent | rgb(19.2%, 13.7%, 42.7%) | |
| HSL | hsl(251, 51%, 28%) | |
| HSV / HSB | hsv(251, 68%, 43%) | |
| CMYK | cmyk(55%, 68%, 0%, 57%) | |
| CIE LAB | lab(19.88, 27.92, -40.96) | |
| CIE LCH | lch(19.88, 49.57, 304.28) | |
| CIE XYZ | xyz(4.627, 2.959, 14.792) | |
| Decimal | 3220333 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #31236D, 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 #31236D | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.59:1 | Fail | Fail | Fail |
| Sample text | 13.19:1 | Pass | Pass | Pass |
| #31236D as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.19:1 | Pass | Pass | Pass |
| Sample text | 1.59: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 #31236D looks to people with the most common types of color vision deficiency.
#00326fProtanopia
no red cones#002e6cDeuteranopia
no green cones#193544Tritanopia
no blue cones#303030Achromatopsia
no color vision
CSS examples
.background { background-color: #31236d; }
.text { color: #31236d; }
.border { border: 2px solid #31236d; }
.transparent { background-color: rgb(49 35 109 / 50%); }
.gradient { background: linear-gradient(to right, #31236d, #56236d); }
Similar colors
#332266Dark Dreams#2e2364Indie Go#332277Deep Space Rodeo#3a1f76Explorer of the Galaxies#222266Intergalactic Cowboy#191970Midnight Blue#19197020000 Leagues Under the Sea#2d135fVoldemort
Questions
- What color is #31236D?
- #31236D is a dark, moderate violet, closest to the named color Dark Dreams. It belongs to the blue family of colors.
- What is the RGB value of #31236D?
- The RGB value is 49, 35, 109: 49 red, 35 green and 109 blue on a 0 to 255 scale.
- What is the complementary color of #31236D?
- The complementary color is #5F6D23, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #31236D?
- White text. Black text has a contrast ratio of 1.59:1 and white text 13.19:1. WCAG asks for at least 4.5:1 for normal text.