#30312B color
The hex color #30312B is a dark gray.
In the RGB color model it is made of 18.8% red, 19.2% green and 16.9% blue (48, 49, 43).
Its hue angle is 70°, with 7% saturation and 18% lightness. For print, the CMYK equivalent is 2% cyan, 0% magenta, 12% yellow and 81% black.
The closest named color is Oil (#313330), a difference of 2 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 13.13:1).
#30312B color codes
| HEX | #30312B | |
|---|---|---|
| RGB | rgb(48, 49, 43) | |
| RGB percent | rgb(18.8%, 19.2%, 16.9%) | |
| HSL | hsl(70, 7%, 18%) | |
| HSV / HSB | hsv(70, 12%, 19%) | |
| CMYK | cmyk(2%, 0%, 12%, 81%) | |
| CIE LAB | lab(20.04, -1.79, 3.68) | |
| CIE LCH | lch(20.04, 4.1, 115.98) | |
| CIE XYZ | xyz(2.753, 2.999, 2.719) | |
| Decimal | 3158315 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #30312B, 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 #30312B | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.6:1 | Fail | Fail | Fail |
| Sample text | 13.13:1 | Pass | Pass | Pass |
| #30312B as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.13:1 | Pass | Pass | Pass |
| Sample text | 1.6: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 #30312B looks to people with the most common types of color vision deficiency.
#32302bProtanopia
no red cones#32302bDeuteranopia
no green cones#31302fTritanopia
no blue cones#303030Achromatopsia
no color vision
CSS examples
.background { background-color: #30312b; }
.text { color: #30312b; }
.border { border: 2px solid #30312b; }
.transparent { background-color: rgb(48 49 43 / 50%); }
.gradient { background: linear-gradient(to right, #30312b, #2d312b); }
Similar colors
#313330Oil#2b2e26Marshland#353935Onyx#262926Bitter Liquorice#2b322dTerminal Black#3b3c36Black Olive#2f3434Phantom Ship#2e2e2eCarbon Fibre
Questions
- What color is #30312B?
- #30312B is a dark gray, closest to the named color Oil. It belongs to the gray family of colors.
- What is the RGB value of #30312B?
- The RGB value is 48, 49, 43: 48 red, 49 green and 43 blue on a 0 to 255 scale.
- What is the complementary color of #30312B?
- The complementary color is #2C2B31, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #30312B?
- White text. Black text has a contrast ratio of 1.6:1 and white text 13.13:1. WCAG asks for at least 4.5:1 for normal text.