#302840 color
The hex color #302840 is a dark, grayish violet.
In the RGB color model it is made of 18.8% red, 15.7% green and 25.1% blue (48, 40, 64).
Its hue angle is 260°, with 23% saturation and 20% lightness. For print, the CMYK equivalent is 25% cyan, 38% magenta, 0% yellow and 75% black.
The closest named color is Midnight Velvet (#2A2243), a difference of 3.9 ΔE, a small difference.
White text is the more readable choice on this background (contrast 13.97:1).
#302840 color codes
| HEX | #302840 | |
|---|---|---|
| RGB | rgb(48, 40, 64) | |
| RGB percent | rgb(18.8%, 15.7%, 25.1%) | |
| HSL | hsl(260, 23%, 20%) | |
| HSV / HSB | hsv(260, 38%, 25%) | |
| CMYK | cmyk(25%, 38%, 0%, 75%) | |
| CIE LAB | lab(17.99, 9.78, -13.87) | |
| CIE LCH | lch(17.99, 16.97, 305.17) | |
| CIE XYZ | xyz(2.903, 2.516, 5.182) | |
| Decimal | 3156032 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #302840, 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 #302840 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.5:1 | Fail | Fail | Fail |
| Sample text | 13.97:1 | Pass | Pass | Pass |
| #302840 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.97:1 | Pass | Pass | Pass |
| Sample text | 1.5: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 #302840 looks to people with the most common types of color vision deficiency.
#222c41Protanopia
no red cones#242c3fDeuteranopia
no green cones#2d2c31Tritanopia
no blue cones#2c2c2cAchromatopsia
no color vision
CSS examples
.background { background-color: #302840; }
.text { color: #302840; }
.border { border: 2px solid #302840; }
.transparent { background-color: rgb(48 40 64 / 50%); }
.gradient { background: linear-gradient(to right, #302840, #3c2840); }
Similar colors
#2a2243Midnight Velvet#3c2f4eSanctum of Shadows#3f354fMaharaja#2c2e47Midnight Masquerade#372d52Midnight Pie#42364cCall It a Night#403547Royal Decree#222244Black Market
Closest common color name: Dark Purple.
Questions
- What color is #302840?
- #302840 is a dark, grayish violet, closest to the named color Midnight Velvet. It belongs to the purple family of colors.
- What is the RGB value of #302840?
- The RGB value is 48, 40, 64: 48 red, 40 green and 64 blue on a 0 to 255 scale.
- What is the complementary color of #302840?
- The complementary color is #384028, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #302840?
- White text. Black text has a contrast ratio of 1.5:1 and white text 13.97:1. WCAG asks for at least 4.5:1 for normal text.