Oil color: hex code #313330
Oil has the hex code #313330. It is a dark gray.
In the RGB color model it is made of 19.2% red, 20% green and 18.8% blue (49, 51, 48).
Its hue angle is 100°, with 3% saturation and 19% lightness. For print, the CMYK equivalent is 4% cyan, 0% magenta, 6% yellow and 80% black.
White text is the more readable choice on this background (contrast 12.75:1).
Oil (#313330) color codes
| HEX | #313330 | |
|---|---|---|
| RGB | rgb(49, 51, 48) | |
| RGB percent | rgb(19.2%, 20%, 18.8%) | |
| HSL | hsl(100, 3%, 19%) | |
| HSV / HSB | hsv(100, 6%, 20%) | |
| CMYK | cmyk(4%, 0%, 6%, 80%) | |
| CIE LAB | lab(20.96, -1.57, 1.6) | |
| CIE LCH | lch(20.96, 2.24, 134.47) | |
| CIE XYZ | xyz(2.984, 3.234, 3.263) | |
| Decimal | 3224368 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with Oil, 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 #313330 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.65:1 | Fail | Fail | Fail |
| Sample text | 12.75:1 | Pass | Pass | Pass |
| #313330 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 12.75:1 | Pass | Pass | Pass |
| Sample text | 1.65: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 #313330 looks to people with the most common types of color vision deficiency.
#333230Protanopia
no red cones#333230Deuteranopia
no green cones#313332Tritanopia
no blue cones#323232Achromatopsia
no color vision
CSS examples
.background { background-color: #313330; }
.text { color: #313330; }
.border { border: 2px solid #313330; }
.transparent { background-color: rgb(49 51 48 / 50%); }
.gradient { background: linear-gradient(to right, #313330, #303331); }
Similar colors
#353935Onyx#2f3434Phantom Ship#353838Wet Concrete#333333Carbon#343434Jet Black#2e2e2eCarbon Fibre#333232Dark Charcoal#383838Graphite
See #313330 on its hex code page
Questions
- What color is #313330?
- #313330 is a dark gray known as Oil. It belongs to the gray family of colors.
- What is the RGB value of Oil?
- The RGB value is 49, 51, 48: 49 red, 51 green and 48 blue on a 0 to 255 scale.
- What is the complementary color of Oil?
- The complementary color is #323033, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #313330?
- White text. Black text has a contrast ratio of 1.65:1 and white text 12.75:1. WCAG asks for at least 4.5:1 for normal text.