After Midnight color: hex code #38393F

#38393F rgb(56, 57, 63)
Shades of gray

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
RGBrgb(56, 57, 63)
RGB percentrgb(22%, 22.4%, 24.7%)
HSLhsl(231, 6%, 23%)
HSV / HSBhsv(231, 11%, 25%)
CMYKcmyk(11%, 10%, 0%, 75%)
CIE LABlab(24.08, 1.02, -3.86)
CIE LCHlch(24.08, 3.99, 284.74)
CIE XYZxyz(3.991, 4.126, 5.288)
Decimal3684671
Short hexNone (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 #38393FRatioAAAAAAA large
Sample text1.83:1FailFailFail
Sample text11.51:1PassPassPass
#38393F as text onRatioAAAAAAA large
Sample text11.51:1PassPassPass
Sample text1.83:1FailFailFail

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.

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); }
Background
Text color
Border

Similar colors

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.