After Midnight color: hex code #38393F
After Midnight has the hex code #38393F. It is a dark gray.
In the RGB color model it is made of 22% red, 22.4% green and 24.7% blue (56, 57, 63).
Its hue angle is 231°, with 6% saturation and 23% lightness. For print, the CMYK equivalent is 11% cyan, 10% magenta, 0% yellow and 75% black.
White text is the more readable choice on this background (contrast 11.51:1).
After Midnight (#38393F) color codes
| HEX | #38393F | |
|---|---|---|
| RGB | rgb(56, 57, 63) | |
| RGB percent | rgb(22%, 22.4%, 24.7%) | |
| HSL | hsl(231, 6%, 23%) | |
| HSV / HSB | hsv(231, 11%, 25%) | |
| CMYK | cmyk(11%, 10%, 0%, 75%) | |
| CIE LAB | lab(24.08, 1.02, -3.86) | |
| CIE LCH | lch(24.08, 3.99, 284.74) | |
| CIE XYZ | xyz(3.991, 4.126, 5.288) | |
| Decimal | 3684671 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with After Midnight, 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 #38393F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.83:1 | Fail | Fail | Fail |
| Sample text | 11.51:1 | Pass | Pass | Pass |
| #38393F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 11.51:1 | Pass | Pass | Pass |
| Sample text | 1.83: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 #38393F looks to people with the most common types of color vision deficiency.
#383a3fProtanopia
no red cones#37393fDeuteranopia
no green cones#373a3bTritanopia
no blue cones#393939Achromatopsia
no color vision
CSS examples
.background { background-color: #38393f; }
.text { color: #38393f; }
.border { border: 2px solid #38393f; }
.transparent { background-color: rgb(56 57 63 / 50%); }
.gradient { background: linear-gradient(to right, #38393f, #3b383f); }
Similar colors
#37393eArtist’s Charcoal#3b3c41In the Dark#36383cVulcan#363b43Do Not Disturb#3c393dMoonless Night#3b3b3dCoal Hard Truth#3f3c43Tuxedo#35343fWitches Cauldron
Closest common color name: Graphite.
See #38393F on its hex code page
Questions
- What color is #38393F?
- #38393F is a dark gray known as After Midnight. It belongs to the gray family of colors.
- What is the RGB value of After Midnight?
- The RGB value is 56, 57, 63: 56 red, 57 green and 63 blue on a 0 to 255 scale.
- What is the complementary color of After Midnight?
- The complementary color is #3F3E38, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #38393F?
- White text. Black text has a contrast ratio of 1.83:1 and white text 11.51:1. WCAG asks for at least 4.5:1 for normal text.