Photo in the color Paynes grey
Pictured: Paynes grey, the closest color we have a photo of (#40404F)
rgb(56, 57, 63)
#38393F

After Midnight #38393F RGB Color Code

Name from the community color list.

After Midnight (#38393F) is a dark neutral gray. In RGB it is made of 22% red, 22% green and 25% blue (R 56, G 57, B 63). The blue channel is the strongest. In HSL it has a hue of 231Β°, 6% saturation and 23% lightness. Its relative luminance is 0.041, so white text is easier to read on top of it. For print, a rough CMYK match is 11% cyan, 10% magenta, 0% yellow and 75% black. Check it against your printer's ICC profile before you print. It is a neutral color. It goes well with warm oranges and reds for contrast. For a calm, matching look, use nearby cool tones.

Open in color picker

After Midnight color codes

#38393F in every common color format. Click a value to copy it.

FormatValueNotesCopy
HEX #38393F Valid CSS
RGB rgb(56, 57, 63) Valid CSS
HSL hsl(231, 6%, 23%) Valid CSS
HSV / HSB hsv(231, 11%, 25%) Not a CSS format
HWB hwb(231 22% 75%) Valid CSS
CMYK cmyk(11%, 10%, 0%, 75%) Approximate (no ICC profile)
OKLCH oklch(34.59% 0.0105 278.3) Valid CSS
OKLab oklab(34.59% 0.0015 -0.0104) Valid CSS
CIELAB lab(24.05% 0.64 -3.89) D50, as in CSS
CIELCH lch(24.05% 3.94 279.29) Valid CSS
Display P3 color(display-p3 0.2203 0.2234 0.245) Valid CSS
XYZ (D65) color(xyz-d65 0.0399 0.0413 0.0529) Valid CSS
Decimal 3684671 Integer (0xRRGGBB)

CMYK here is a rough screen match without an ICC profile. See CMYK and print. Relative luminance: 0.0413. Nearest web-safe color: #333333.

Mix After Midnight with other colors

See what #38393F makes with red paint, under a green light, printed with cyan ink and in a digital blend with blue. Click a picture to change the colors and amounts in the color mixer.

Use After Midnight in your code

Ready to paste into CSS, Sass, Tailwind, iOS, Android and Flutter. Click the icon to copy a line.

WhereCodeCopy
CSS variable--after-midnight: #38393F;
Sass variable$after-midnight: #38393F;
Tailwind CSS v4@theme { --color-after-midnight: #38393F; }
Tailwind CSS v3 configcolors: { 'after-midnight': '#38393F' }
SwiftUIColor(red: 0.22, green: 0.224, blue: 0.247)
UIKitUIColor(red: 0.22, green: 0.224, blue: 0.247, alpha: 1)
Android XML<color name="after_midnight">#FF38393F</color>
Flutter and Jetpack ComposeColor(0xFF38393F)

Accessibility and contrast

White text works best on #38393F (11.51:1, AAA). Here is how #38393F does as a text color:

Large heading text
Body text at 16px. The quick brown fox jumps over the lazy dog.
11.51:1 on white
APCA Lc 97
AAA
Large heading text
Body text at 16px. The quick brown fox jumps over the lazy dog.
1.83:1 on black
APCA Lc 0
Fails AATry #73747B

Check this color against any background in the contrast checker. WCAG ratios and APCA Lc values measure different things, so one can't stand in for the other. Learn more.

How people with color blindness see After Midnight

#38393F next to its complement and its two triadic colors, as seen with each type of color blindness.

  • Normal visionhow most people see it
  • Protanopiano red cones, about 1% of men
  • Deuteranopiano green cones, the most common type
  • Tritanopiano blue cones, very rare
  • Achromatopsiano color at all, very rare

#38393F has almost no hue, so it looks much the same with every type of color blindness. Only its lightness counts. Try your own colors in the color blindness simulator.

After Midnight in a user interface

A sample app screen with #38393F as the main color, on a light and a dark theme.

Light theme

Dark theme

Buttons and bars use #38393F as it is. On the dark theme, #38393F is too hard to read as text (1.54:1), so links, the badge and outline text use #7F8087 there (4.52:1). Build a full color scheme around it in the UI color preview.

Color harmonies for After Midnight

These schemes turn the hue of #38393F around the color wheel. Each swatch links to its own page.

Complementary

Two colors on opposite sides of the wheel. This gives the most contrast.

Open palette

Analogous

Hues that sit next to each other and look good together.

Open palette

Triadic

Three hues spaced evenly around the wheel. Bold, but still balanced.

Open palette

Split complementary

A base color plus the two hues on each side of its opposite. Strong contrast that clashes less.

Open palette

Tetradic (rectangle)

Two pairs of opposite colors. Let one color lead and use the others less.

Open palette

Square

Four hues 90Β° apart, spread evenly around the wheel.

Open palette

Monochromatic

One hue at different levels of lightness and saturation.

Open palette

Gradients with After Midnight

Four CSS gradients made from #38393F. Copy the code, or open one in the gradient generator to change it.

Soft tint

From a pale tint to the full color.

background: linear-gradient(90deg, #D3D4D5, #38393F);

Edit in the gradient generator

Deep shade

The color fading into a dark shade.

background: linear-gradient(180deg, #38393F, #08090A);

Edit in the gradient generator

Analogous

Its two neighbors on the color wheel.

background: linear-gradient(135deg, #383D3F, #38393F, #3B383F);

Edit in the gradient generator

Triadic

A bold blend with a triadic color, through a clean middle.

background: linear-gradient(135deg, #38393F, #3C393C, #3F3839);

Edit in the gradient generator

Shades, tints and tones of After Midnight

Shades are darker, tints are lighter and tones are grayer. We make them in OKLCH so the steps look even. Hover a step to see its code, or click it to open it.

Design system scale (50 to 950)

After Midnight sits at step 800. Export the full scale as CSS variables or Tailwind tokens from the picker.

  1. 50
    F6F6F9
  2. 100
    ECECF0
  3. 200
    D9DADF
  4. 300
    BFC0C6
  5. 400
    A1A2A9
  6. 500
    84868D
  7. 600
    6A6B72
  8. 700
    54555B
  9. 800
    38393F
  10. 900
    2F3034
  11. 950
    1C1D1F

Closest RAL, Tailwind and CSS colors

The nearest match to #38393F in three color systems that designers and builders use.

Ξ”E is the distance in OKLab: under 2 is hard to see, over 10 is a clearly different color. Browse all RAL colors, the Tailwind palette or the 148 CSS color names. RAL values on screens are only a guide, so check a real color chart before you order paint.

The named colors that look closest to this one (Ξ”E in OKLab). Browse all shades of gray or search the color library.