#140342 color
The hex color #140342 is a very dark, vivid violet.
In the RGB color model it is made of 7.8% red, 1.2% green and 25.9% blue (20, 3, 66).
Its hue angle is 256°, with 91% saturation and 14% lightness. For print, the CMYK equivalent is 70% cyan, 95% magenta, 0% yellow and 74% black.
The closest named color is Silent Twilight (#0F084B), a difference of 2.1 ΔE, a small difference.
White text is the more readable choice on this background (contrast 18.73:1).
#140342 color codes
| HEX | #140342 | |
|---|---|---|
| RGB | rgb(20, 3, 66) | |
| RGB percent | rgb(7.8%, 1.2%, 25.9%) | |
| HSL | hsl(256, 91%, 14%) | |
| HSV / HSB | hsv(256, 95%, 26%) | |
| CMYK | cmyk(70%, 95%, 0%, 74%) | |
| CIE LAB | lab(5.48, 27.1, -35.53) | |
| CIE LCH | lch(5.48, 44.68, 307.33) | |
| CIE XYZ | xyz(1.304, 0.607, 5.202) | |
| Decimal | 1311554 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #140342, 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 #140342 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.12:1 | Fail | Fail | Fail |
| Sample text | 18.73:1 | Pass | Pass | Pass |
| #140342 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 18.73:1 | Pass | Pass | Pass |
| Sample text | 1.12: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 #140342 looks to people with the most common types of color vision deficiency.
#001444Protanopia
no red cones#001041Deuteranopia
no green cones#001723Tritanopia
no blue cones#121212Achromatopsia
no color vision
CSS examples
.background { background-color: #140342; }
.text { color: #140342; }
.border { border: 2px solid #140342; }
.transparent { background-color: rgb(20 3 66 / 50%); }
.gradient { background: linear-gradient(to right, #140342, #330342); }
Similar colors
#0f084bSilent Twilight#000044Endless Galaxy#220044Your Darkness#160435Quiet Abyss#0a0555Ravenclaw#111144Deadly Depths#000b44Storm#150f5bSpace Colonisation
Closest common color name: Midnight Blue.
Questions
- What color is #140342?
- #140342 is a very dark, vivid violet, closest to the named color Silent Twilight. It belongs to the black family of colors.
- What is the RGB value of #140342?
- The RGB value is 20, 3, 66: 20 red, 3 green and 66 blue on a 0 to 255 scale.
- What is the complementary color of #140342?
- The complementary color is #314203, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #140342?
- White text. Black text has a contrast ratio of 1.12:1 and white text 18.73:1. WCAG asks for at least 4.5:1 for normal text.