#310C2A color
The hex color #310C2A is a very dark, moderate magenta.
In the RGB color model it is made of 19.2% red, 4.7% green and 16.5% blue (49, 12, 42).
Its hue angle is 311°, with 61% saturation and 12% lightness. For print, the CMYK equivalent is 0% cyan, 76% magenta, 14% yellow and 81% black.
The closest named color is Nightly Voyager (#391531), a difference of 2.4 ΔE, a small difference.
White text is the more readable choice on this background (contrast 17.26:1).
#310C2A color codes
| HEX | #310C2A | |
|---|---|---|
| RGB | rgb(49, 12, 42) | |
| RGB percent | rgb(19.2%, 4.7%, 16.5%) | |
| HSL | hsl(311, 61%, 12%) | |
| HSV / HSB | hsv(311, 76%, 19%) | |
| CMYK | cmyk(0%, 76%, 14%, 81%) | |
| CIE LAB | lab(9.67, 23.04, -11.06) | |
| CIE LCH | lch(9.67, 25.56, 334.35) | |
| CIE XYZ | xyz(1.816, 1.083, 2.303) | |
| Decimal | 3214378 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #310C2A, 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 #310C2A | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.22:1 | Fail | Fail | Fail |
| Sample text | 17.26:1 | Pass | Pass | Pass |
| #310C2A as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 17.26:1 | Pass | Pass | Pass |
| Sample text | 1.22: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 #310C2A looks to people with the most common types of color vision deficiency.
#0c172bProtanopia
no red cones#181d29Deuteranopia
no green cones#340e19Tritanopia
no blue cones#1b1b1bAchromatopsia
no color vision
CSS examples
.background { background-color: #310c2a; }
.text { color: #310c2a; }
.border { border: 2px solid #310c2a; }
.transparent { background-color: rgb(49 12 42 / 50%); }
.gradient { background: linear-gradient(to right, #310c2a, #310c17); }
Similar colors
#391531Nightly Voyager#2b0f2eDark Prom Queen#330022Vienna Roast#220022Black Sabbath#3f012cDark Sanctuary#301934Dark Purple#3b193fCreatures of the Night#43182fBlackberry
Questions
- What color is #310C2A?
- #310C2A is a very dark, moderate magenta, closest to the named color Nightly Voyager. It belongs to the black family of colors.
- What is the RGB value of #310C2A?
- The RGB value is 49, 12, 42: 49 red, 12 green and 42 blue on a 0 to 255 scale.
- What is the complementary color of #310C2A?
- The complementary color is #0C3113, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #310C2A?
- White text. Black text has a contrast ratio of 1.22:1 and white text 17.26:1. WCAG asks for at least 4.5:1 for normal text.