#302B2F color
The hex color #302B2F is a dark gray.
In the RGB color model it is made of 18.8% red, 16.9% green and 18.4% blue (48, 43, 47).
Its hue angle is 312°, with 5% saturation and 18% lightness. For print, the CMYK equivalent is 0% cyan, 10% magenta, 2% yellow and 81% black.
The closest named color is Darth Vader (#27252A), a difference of 2.7 ΔE, a small difference.
White text is the more readable choice on this background (contrast 13.89:1).
#302B2F color codes
| HEX | #302B2F | |
|---|---|---|
| RGB | rgb(48, 43, 47) | |
| RGB percent | rgb(18.8%, 16.9%, 18.4%) | |
| HSL | hsl(312, 5%, 18%) | |
| HSV / HSB | hsv(312, 10%, 19%) | |
| CMYK | cmyk(0%, 10%, 2%, 81%) | |
| CIE LAB | lab(18.19, 3.19, -1.76) | |
| CIE LCH | lch(18.19, 3.64, 331.06) | |
| CIE XYZ | xyz(2.596, 2.561, 3.046) | |
| Decimal | 3156783 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #302B2F, 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 #302B2F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.51:1 | Fail | Fail | Fail |
| Sample text | 13.89:1 | Pass | Pass | Pass |
| #302B2F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.89:1 | Pass | Pass | Pass |
| Sample text | 1.51: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 #302B2F looks to people with the most common types of color vision deficiency.
#2b2c2fProtanopia
no red cones#2c2d2fDeuteranopia
no green cones#312b2cTritanopia
no blue cones#2c2c2cAchromatopsia
no color vision
CSS examples
.background { background-color: #302b2f; }
.text { color: #302b2f; }
.border { border: 2px solid #302b2f; }
.transparent { background-color: rgb(48 43 47 / 50%); }
.gradient { background: linear-gradient(to right, #302b2f, #302b2d); }
Similar colors
#27252aDarth Vader#332e2eNight Rider#352b30Mystical Shadow#29292fJaguar#322c2bDiesel#28282dAnthracite#252024Ink Black#2b2c30Caviar
Closest common color name: Jet Black.
Questions
- What color is #302B2F?
- #302B2F is a dark gray, closest to the named color Darth Vader. It belongs to the black family of colors.
- What is the RGB value of #302B2F?
- The RGB value is 48, 43, 47: 48 red, 43 green and 47 blue on a 0 to 255 scale.
- What is the complementary color of #302B2F?
- The complementary color is #2B302C, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #302B2F?
- White text. Black text has a contrast ratio of 1.51:1 and white text 13.89:1. WCAG asks for at least 4.5:1 for normal text.