#302843 color
The hex color #302843 is a dark, desaturated violet.
In the RGB color model it is made of 18.8% red, 15.7% green and 26.3% blue (48, 40, 67).
Its hue angle is 258°, with 25% saturation and 21% lightness. For print, the CMYK equivalent is 28% cyan, 40% magenta, 0% yellow and 74% black.
The closest named color is Midnight Velvet (#2A2243), a difference of 2.9 ΔE, a small difference.
White text is the more readable choice on this background (contrast 13.91:1).
#302843 color codes
| HEX | #302843 | |
|---|---|---|
| RGB | rgb(48, 40, 67) | |
| RGB percent | rgb(18.8%, 15.7%, 26.3%) | |
| HSL | hsl(258, 25%, 21%) | |
| HSV / HSB | hsv(258, 40%, 26%) | |
| CMYK | cmyk(28%, 40%, 0%, 74%) | |
| CIE LAB | lab(18.15, 10.66, -15.69) | |
| CIE LCH | lch(18.15, 18.97, 304.18) | |
| CIE XYZ | xyz(2.991, 2.551, 5.644) | |
| Decimal | 3156035 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #302843, 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 #302843 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.51:1 | Fail | Fail | Fail |
| Sample text | 13.91:1 | Pass | Pass | Pass |
| #302843 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.91: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 #302843 looks to people with the most common types of color vision deficiency.
#212c44Protanopia
no red cones#222c42Deuteranopia
no green cones#2c2d32Tritanopia
no blue cones#2c2c2cAchromatopsia
no color vision
CSS examples
.background { background-color: #302843; }
.text { color: #302843; }
.border { border: 2px solid #302843; }
.transparent { background-color: rgb(48 40 67 / 50%); }
.gradient { background: linear-gradient(to right, #302843, #3e2843); }
Similar colors
#2a2243Midnight Velvet#3c2f4eSanctum of Shadows#372d52Midnight Pie#3f354fMaharaja#222244Black Market#2c2e47Midnight Masquerade#322c56Purple Noir#42364cCall It a Night
Closest common color name: Dark Purple.
Questions
- What color is #302843?
- #302843 is a dark, desaturated violet, closest to the named color Midnight Velvet. It belongs to the purple family of colors.
- What is the RGB value of #302843?
- The RGB value is 48, 40, 67: 48 red, 40 green and 67 blue on a 0 to 255 scale.
- What is the complementary color of #302843?
- The complementary color is #3B4328, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #302843?
- White text. Black text has a contrast ratio of 1.51:1 and white text 13.91:1. WCAG asks for at least 4.5:1 for normal text.