Closest web-safe match: #330033

Color Details and Palettes for #1F172B

Details about the color Shot in the Dark#1F172B

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

Indigo family Cool WCAG ink: white
HEX #1F172B RGB rgb(31, 23, 43) HSL hsl(264, 30%, 13%) CMYK cmyk(28%, 47%, 0%, 83%)

Color profile

About Color Hex #1F172B

#1F172B is a cool color from the Indigo family, closest in name to “Shot in the Dark”. In RGB it is rgb(31, 23, 43); in HSL, hsl(264, 30%, 13%).

The color Shot in the Dark, with hexadecimal code #1f172b, belongs to the blue color family, the world's most universally preferred hue. Blue projects trust, stability, and intellectual calm, which is why it dominates corporate, financial, and technology branding worldwide. Additionally, it evokes emotions such as Power, Elegance, Formality, Mystery and Authority. Blue signifies tranquility and stability. In Middle Eastern cultures, it can also represent protection against the evil eye, while in Western cultures, it symbolizes calmness and reliability. With a moderate saturation of 30%, it has a softened, muted quality that lends sophistication and works well for backgrounds and secondary elements. At only 13% lightness, this extremely dark shade approaches black, delivering maximum drama and contrast when paired with lighter elements. This color is ideal for designs that aim to express Power, Elegance, Formality, Mystery, or Authority. It can be effectively used in web design, branding, and marketing materials to attract attention and convey specific messages.

Key facts

RGB 31, 23, 43 red · green · blue HSL 264° 30% 13% hue · sat · light HSV 264° 47% 17% design-app pickers CMYK 28 47 0 83 print inks, % Luminance 0.011 0 dark → 1 light On black 1.22:1 ✕ AA contrast ratio On white 17.27:1 ✓ AA contrast ratio Web-safe #330033 closest web-safe Best text white ideal foreground Character Vivid cool · indigo family

The story of this color

History, Usage, Psychology & Design Ideas for #1F172B

Shot in the Dark (#1F172B) belongs to the Indigo color family.

This deep, saturated shade conveys authority and richness. Deep tones are favored in luxury packaging, evening-event branding, and dark-mode interfaces where they provide dramatic contrast against lighter elements.

Historical Background

Indigo dye—extracted from Indigofera plants—has been used for over 6,000 years, with the oldest known samples found in Peru. It was the foundation of the blue-dye trade across India, West Africa, and the Americas, and its economic importance rivaled that of spices. Levi Strauss chose indigo-dyed denim for the first blue jeans in 1873, cementing indigo's place in everyday fashion worldwide.

Design & Usage Tips

Indigo occupies the territory between blue and purple, lending depth without purple's flamboyance. It is excellent for evening-event branding, high-end fashion, and editorial design. Pair indigo with soft gold or warm white for a sophisticated contrast, or with coral for a contemporary editorial palette.

Sitting on the cool side of the spectrum (hue 264°), it promotes a feeling of calm distance and intellectual clarity, which is why cool hues dominate corporate identities, healthcare design, and productivity tools. At 30% saturation, the color has a muted, sophisticated quality that pairs well with bolder accents. It works as a background, a border, or a secondary element in layered compositions.

Psychological Impact

Indigo conveys depth, wisdom, and introspection. It carries the trustworthiness of blue with a hint of purple's creativity, appealing to brands that want to appear both reliable and imaginative—think higher education, think-tanks, and creative consultancies.

At just 13% lightness, this is an extremely dark shade that approaches black. It is best reserved for text, thin borders, or dramatic full-bleed backgrounds paired with light typography.

Creative Design Ideas

Use indigo as a full-page background with centered white text for impactful statement pages. Combine indigo with copper accents for a rich, modern luxury feel in packaging. In web design, indigo sidebar navigation with white icons creates a polished, app-like interface.

Every format

#1F172B Color Conversions

Every way to write Shot in the Dark — one-tap copy on every format; tap on any card to learn what it is and when to use it.

12 formats
HEX Web
#1F172B

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(31, 23, 43)

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(264, 30%, 13%)

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(264, 47%, 17%)

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(264 9% 83%)

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(28%, 47%, 0%, 83%)

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(22.46% 0.039 301.73)

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

OKLab Modern
oklab(22.46% 0.021 -0.034)

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: 9.63, a: 9.33, b: -12.08

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

LCH Perceptual
L: 9.63, C: 15.27, H: 307.69

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

XYZ CIE Science
X: 1.31, Y: 1.08, Z: 2.42

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
2037547

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 #1F172B

How much red, green and blue light mixes into Shot in the Dark.

Red 31/255 32.0% Green 23/255 23.7% Blue 43/255 44.3%

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

Ink coverage

CMYK Ink Levels & Print Guide for #1F172B

Ink needed to reproduce Shot in the Dark in four-color print. Heaviest ink: Key (Black).

28% CYAN 47% MAGENTA 0% YELLOW 83% 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 #1F172B

How bright Shot in the Dark is, and how far black and white text clear each WCAG bar.

Relative luminance 0.011
0 · dark1 · light

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

Aa Black text 1.22:1 ✕ AA ✕ AAA ✕ Large
Aa White text 17.27:1 ✓ AA ✓ AAA ✓ Large

Developer shortcuts

Quick CSS Snippets for #1F172B

Copy-and-paste CSS for Shot in the Dark — per-line copy, or grab the whole block.

shot-in-the-dark.css
background-color: #1F172B;
color: #1F172B;
border: 2px solid #1F172B;
background-color: rgb(31, 23, 43);
background-color: hsl(264, 30%, 13%);
--color: #1F172B;

Shades · light to dark

#1F172B Monochrome Palette

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

#E9E8EA
#C7C5CA
#A5A2AA
#847F8A
#625D6B
#413A4B
#1F172B
#1A1425
#16101E
#110D18
#0C0911
#08060B
#030204

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

Harmony · 180° apart

#1F172B Complementary Palette

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

#1F172B
#232B17

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

Harmony · adjacent hues

#1F172B Analogic Palette

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

#1F172B
#29172B
#17192B
#2B1723
#17232B
#2B1719
#172B29

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

Harmony · 120° apart

#1F172B Triadic Palette

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

#1F172B
#2B1F17
#172B1F

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

Harmony · 90° apart

#1F172B Quad Palette

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

#1F172B
#2B1719
#232B17
#172B29

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

Accessibility

Color Blindness Simulation for #1F172B

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

#1F172B
#1C1D25
#1C1B26
#1F2222
#1A1A1A
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 #1F172B

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

#232B17
#29172B
#2B1F17
#2B1719
Complementary opposite hue Analogous adjacent hue Triadic 120° apart Tetradic (Quad) 90° apart

Perceptually nearby

#1F172B Nearby Colors

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

Voodoo#332233
Midnight Monarch#110022
Shuriken#333344
Glossy Black#110011
Midnight Monarch#221133
Shot in the Dark#221122
The Count’s Black#112233
Corbeau#111122

From the color-name library

Colors Similar to #1F172B

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

Shot in the Dark#1D0D1D
Dark Knight#151931
Corbeau#111122
Black Velvet#222233
Eclipse Elixir#1F2133
Midnight Velvet#2A2243
Midnight Monarch#1C0F33
Crow#180614
Nightwalker#161D3B
Black Market#222244
Glossy Black#110011
Mysterious Depths#060929

Looking for more Blue shades? Browse Blue colors →

Inspiration

Explore Vibrant Images Featuring Shot in the Dark (#1f172b)

Curated Unsplash photos that carry the mood of Shot in the Dark — hover any tile to download it or view the original.

Good to know

Frequently Asked Questions about #1F172B

#1F172B is a cool color from the Indigo family. Its closest matched name is “Shot in the Dark”, matched perceptually with the CIEDE2000 color-difference formula. In RGB it is rgb(31, 23, 43); in HSL, hsl(264, 30%, 13%).
In RGB, #1F172B is rgb(31, 23, 43); in HSL it is hsl(264, 30%, 13%); and in CMYK — the model used for print — it is cmyk(28%, 47%, 0%, 83%).
#1F172B has a contrast ratio of 1.22:1 against black and 17.27: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 #1F172B is #232B17 (opposite on the color wheel). For ready-made combinations, this page includes monochrome, analogous, triadic and tetradic palettes built from #1F172B in the palette sections above.