Closest web-safe match: #333333

Color Details and Palettes for #2F3138

Details about the color Night Sky#2F3138

Conversions, palettes, contrast & design ideas for this color.

Charcoal family Neutral WCAG ink: white
HEX #2F3138 RGB rgb(47, 49, 56) HSL hsl(227, 9%, 20%) CMYK cmyk(16%, 13%, 0%, 78%)

Color profile

About Color Hex #2F3138

#2F3138 is a neutral color from the Charcoal family, closest in name to “Night Sky”. In RGB it is rgb(47, 49, 56); in HSL, hsl(227, 9%, 20%).

The color Night Sky, with hexadecimal code #2f3138, belongs to the charcoal family—a deep, warm neutral softer than black. Charcoal tones lend authority and understated elegance to any composition. Additionally, it evokes emotions such as Trust, Peace, Loyalty, Integrity and Tranquility. With negligible saturation (9%), this color is effectively achromatic—a pure neutral that pairs with any hue without competition. Its low lightness of 20% produces a deep, rich appearance—conveying gravity and luxury, particularly effective in dark-mode designs and premium packaging. This color is ideal for designs that aim to express Trust, Peace, Loyalty, Integrity, or Tranquility. It can be effectively used in web design, branding, and marketing materials to attract attention and convey specific messages.

Key facts

RGB 47, 49, 56 red · green · blue HSL 227° 9% 20% hue · sat · light HSV 227° 16% 22% design-app pickers CMYK 16 13 0 78 print inks, % Luminance 0.031 0 dark → 1 light On black 1.62:1 ✕ AA contrast ratio On white 12.98:1 ✓ AA contrast ratio Web-safe #333333 closest web-safe Best text white ideal foreground Character Vivid neutral · charcoal family

The story of this color

History, Usage, Psychology & Design Ideas for #2F3138

Night Sky (#2F3138) belongs to the Charcoal color family.

As an achromatic shade, this color carries a timeless, versatile neutrality that anchors any palette it joins.

Historical Background

Charcoal, the drawing medium, has been used since prehistoric cave art at Lascaux and Altamira—making it one of humanity's oldest creative tools. As a color, deep charcoal became fashionable in Victorian-era menswear and later in mid-century modern furniture upholstery, where it provided a softer alternative to stark black.

Design & Usage Tips

Charcoal is an excellent substitute for pure black in typography and backgrounds—it feels warmer and reduces eye strain on screens. Dark-mode interfaces frequently use charcoal (#222–#333) rather than true black (#000) to avoid OLED screen smearing and to soften contrast.

Psychological Impact

Charcoal communicates authority and gravitas without the starkness of black. It suggests understated confidence, making it ideal for luxury brands, law firms, and editorial publications that want sophistication without drama.

Its low lightness of 20% gives it a deep, intense presence. Deep tones like this excel as dark-mode backgrounds, header bars, and anywhere a sense of gravity or luxury is desired.

Creative Design Ideas

Use charcoal as a dark-mode background paired with crisp white text and a single vivid accent (electric blue, lime green, or coral). For print, charcoal paper stock with metallic foil stamping creates tactile, premium business cards and invitations.

Every format

#2F3138 Color Conversions

Every way to write Night Sky — one-tap copy on every format; tap on any card to learn what it is and when to use it.

12 formats
HEX Web
#2F3138

Hexadecimal is the web’s universal color notation — two digits each for red, green and blue. Drop it straight into HTML, CSS or any design tool.

RGB Screen
rgb(47, 49, 56)

RGB is the additive Red-Green-Blue model every screen uses to emit light. The default choice for websites, apps and on-screen UI.

HSL Web
hsl(227, 9%, 20%)

HSL breaks a color into Hue, Saturation and Lightness — the most intuitive way to lighten, darken or mute a color in CSS.

HSV HSB Design
hsv(227, 16%, 22%)

HSV (also called HSB) maps Hue, Saturation and Value/Brightness. It is the model behind the color pickers in Photoshop, Figma and most design apps.

HWB CSS 4
hwb(227 18% 78%)

HWB blends a pure hue with Whiteness and Blackness — a painter-friendly model added in CSS Color 4 for quick tints and shades.

CMYK Print
cmyk(16%, 13%, 0%, 78%)

CMYK is the subtractive Cyan-Magenta-Yellow-Black ink model. Use these values when preparing artwork for a printer or commercial press.

OKLCH Modern
oklch(31.40% 0.013 272.98)

OKLCH is a modern, perceptually-uniform space (Lightness, Chroma, Hue). It powers smooth gradients and accessible palettes in today’s CSS.

OKLab Modern
oklab(31.40% 0.001 -0.013)

OKLab is the Cartesian form of OKLCH — ideal for blending and interpolating colors without the muddy midpoints older spaces produce.

CIELAB L*a*b* Perceptual
L: 20.39, a: 0.90, b: -4.73

CIELAB is a device-independent, perceptually-uniform space. It is the standard for measuring color difference (ΔE) and matching across devices.

LCH Perceptual
L: 20.39, C: 4.82, H: 280.77

LCH is CIELAB in cylindrical form — Lightness, Chroma and Hue — letting you adjust vividness and hue while staying perceptually even.

XYZ CIE Science
X: 2.98, Y: 3.09, Z: 4.18

CIE XYZ is the 1931 master space that underpins every other model here — the scientific bridge used to convert between color systems.

Decimal int Code
3092792

The 24-bit integer value of the color — handy for databases, APIs, game engines and low-level graphics code.

Channel breakdown

RGB Color Percentages for #2F3138

How much red, green and blue light mixes into Night Sky.

Red 47/255 30.9% Green 49/255 32.2% Blue 56/255 36.8%

Percentages show each channel's share of the total light (R + G + B) in Night Sky.

Ink coverage

CMYK Ink Levels & Print Guide for #2F3138

Ink needed to reproduce Night Sky in four-color print. Heaviest ink: Key (Black).

16% CYAN 13% MAGENTA 0% YELLOW 78% KEY

Print tip: treat these values as a starting point — final output depends on printer profile, paper stock and calibration.

Accessibility · WCAG

Luminance & Contrast for #2F3138

How bright Night Sky is, and how far black and white text clear each WCAG bar.

Relative luminance 0.031
0 · dark1 · light

Contrast ratio · 1:1 → 21:1 (log scale)

Aa Black text 1.62:1 ✕ AA ✕ AAA ✕ Large
Aa White text 12.98:1 ✓ AA ✓ AAA ✓ Large

Developer shortcuts

Quick CSS Snippets for #2F3138

Copy-and-paste CSS for Night Sky — per-line copy, or grab the whole block.

night-sky.css
background-color: #2F3138;
color: #2F3138;
border: 2px solid #2F3138;
background-color: rgb(47, 49, 56);
background-color: hsl(227, 9%, 20%);
--color: #2F3138;

Shades · light to dark

#2F3138 Monochrome Palette

Lighter and darker steps of Night Sky — the color's full brightness range in one strip.

#EAEAEB
#CBCCCD
#ACADAF
#8D8E92
#6D6F74
#4E5056
#2F3138
#282A30
#212227
#1A1B1F
#131416
#0C0C0E
#050506

The dot marks the original color. Hover any shade to copy its hex or open its color page.

Harmony · 180° apart

#2F3138 Complementary Palette

Two colors opposite on the wheel — maximum contrast for attention-grabbing accents.

#2F3138
#38362E

The dot marks the original color. Hover any shade to copy its hex or open its color page.

Harmony · adjacent hues

#2F3138 Analogic Palette

Neighboring hues on the wheel — harmonious, calm combinations that feel unified.

#2F3138
#312E38
#2E3538
#362E38
#2E3836
#382E35
#2E3831

The dot marks the original color. Hover any shade to copy its hex or open its color page.

Harmony · 120° apart

#2F3138 Triadic Palette

Three colors evenly spaced on the wheel — vibrant and energetic, yet balanced.

#2F3138
#382E30
#30382E

The dot marks the original color. Hover any shade to copy its hex or open its color page.

Harmony · 90° apart

#2F3138 Quad Palette

Four colors evenly spaced on the wheel (tetradic) — rich schemes with multiple accents.

#2F3138
#382E35
#38362E
#2E3831

The dot marks the original color. Hover any shade to copy its hex or open its color page.

Accessibility

Color Blindness Simulation for #2F3138

How Night Sky reads across five kinds of color vision — a ✓ Friendly verdict means the color difference stays distinguishable for that vision type.

#2F3138
#303036
#303036
#2F3535
#313131
Normal vision full color Deuteranopia green weakness ✓ Friendly Protanopia red weakness ✓ Friendly Tritanopia blue-yellow weakness ✓ Friendly Achromatopsia total color blindness ✓ Friendly

The dot marks the original color. Hover any shade to copy its hex.

Harmony overview

Color Harmonies for #2F3138

The lead color from each harmony scheme, side by side — a shortcut to the full palettes above.

#38362E
#312E38
#382E30
#382E35
Complementary opposite hue Analogous adjacent hue Triadic 120° apart Tetradic (Quad) 90° apart

Perceptually nearby

#2F3138 Nearby Colors

A step away in brightness, richness or shade — each still feels like the same color.

Black Panther#444444
Black Velvet#222233
Gun Powder#444455
Corbeau#111122
Blue Whale#223344
Carbon#333333
Shuriken#333344
Lead#222222

From the color-name library

Colors Similar to #2F3138

The closest named colors to #2F3138 — same mood, each with its own character.

Night Sky#292B31
Ebony#313337
Caviar#2B2C30
Jaguar#29292F
After Midnight#38393F
Jet Black#353337
Artist’s Charcoal#37393E
Vulcan#36383C
Anthracite#28282D
Do Not Disturb#363B43
Witches Cauldron#35343F
Infinity#222831

Looking for more Charcoal shades? Browse Charcoal colors →

Inspiration

Explore Vibrant Images Featuring Night Sky (#2f3138)

Curated Unsplash photos that carry the mood of Night Sky — hover any tile to download it or view the original.

Good to know

Frequently Asked Questions about #2F3138

#2F3138 is a neutral color from the Charcoal family. Its closest matched name is “Night Sky”, matched perceptually with the CIEDE2000 color-difference formula. In RGB it is rgb(47, 49, 56); in HSL, hsl(227, 9%, 20%).
In RGB, #2F3138 is rgb(47, 49, 56); in HSL it is hsl(227, 9%, 20%); and in CMYK — the model used for print — it is cmyk(16%, 13%, 0%, 78%).
#2F3138 has a contrast ratio of 1.62:1 against black and 12.98:1 against white. For readability, white body text meets the WCAG AA threshold of 4.5:1 on it, while black does not.
The direct complement of #2F3138 is #38362E (opposite on the color wheel). For ready-made combinations, this page includes monochrome, analogous, triadic and tetradic palettes built from #2F3138 in the palette sections above.
The closest named colors to #2F3138 are Night Sky (#292B31), Ebony (#313337), Caviar (#2B2C30), Jaguar (#29292F).