Nearest named color · #1D152B
#1D152B
Nearest named color: Shot in the Dark
#1D152B (rgb(29 21 43), hsl(262 34% 13%), oklch(0.217 0.043 299.6)) is closest to the named color Shot in the Dark. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.
#1D152B
oklch(0.217 0.043 299.6)
Color conversions
- HEX
- #1d152b
- RGB
- rgb(29 21 43)
- HSL
- hsl(262 34% 13%)
- HWB
- hwb(262 8% 83%)
- OKLCH
- oklch(0.217 0.043 299.6)
- OKLab
- oklab(0.217 0.021 -0.038)
- CIE Lab
- lab(8.63 8.73 -13.57)
- LCH
- lch(8.63 16.14 302.8)
- CMYK
- cmyk(33% 51% 0% 83%)
Tints · Shades · Tones
Tints
- 2F283E
- 433D51
- 585265
- 6E6979
- 84808E
- 9C98A4
- B4B1BA
- CCCAD1
- E5E4E8
Shades
- 181124
- 130C1D
- 0E0816
- 090510
- 05030A
- 030205
- 010102
- 000001
- 000000
Tones
- 261F33
- 2F283B
- 383343
- 423D4C
- 4C4854
- 56525D
- 605E66
- 6A696E
- 757477
Color harmonies
Complementary +180°
- 1D152B
Shot in the Dark
- 181D04
≈ Nightmare
Analogous -30° +30°
- 1D152B
Shot in the Dark
- 12192E
≈ Dark Knight
- 251224
≈ Inside
Triadic +120° +240°
- 1D152B
Shot in the Dark
- 281504
≈ Cannon Black
- 00201A
≈ Stellar Explorer
Split-complementary +150° +210°
- 1D152B
Shot in the Dark
- 221901
≈ Cannon Black
- 091F0F
≈ Clock Chimes Thirteen
Tetradic +90° +180° +270°
- 1D152B
Shot in the Dark
- 2B110E
≈ Dark Danger
- 181D04
≈ Nightmare
- 001F23
≈ Stellar Explorer
Contrast & accessibility
Ag
AAAOn white
WCAG 17.58:1 · APCA Lc 104
Ag
FailOn black
WCAG 1.19:1 · APCA Lc 0
Best text color: #FFFFFF
WCAG 17.58:1 (AAA) · APCA Lc 104
Contrast pairs
Code snippets
CSS
:root {
--shot-in-the-dark: #1d152b;
--shot-in-the-dark-rgb: 29 21 43;
--shot-in-the-dark-oklch: oklch(0.217 0.043 299.6);
}
.element {
color: var(--shot-in-the-dark);
background-color: hsl(262 34% 13%);
border-color: oklch(0.217 0.043 299.6);
}Tailwind CSS v4
@theme {
--color-shot-in-the-dark: #1d152b;
--color-shot-in-the-dark-50: #f7f2ff;
--color-shot-in-the-dark-100: #eae5f4;
--color-shot-in-the-dark-200: #d7d0e4;
--color-shot-in-the-dark-300: #bbb3ca;
--color-shot-in-the-dark-400: #a299b5;
--color-shot-in-the-dark-500: #8a809f;
--color-shot-in-the-dark-600: #756d87;
--color-shot-in-the-dark-700: #5d576c;
--color-shot-in-the-dark-800: #443f50;
--color-shot-in-the-dark-900: #2f2c37;
--color-shot-in-the-dark-950: #1b1922;
}SCSS
$shot-in-the-dark: #1d152b;
$shot-in-the-dark-rgb: 29, 21, 43;
$shot-in-the-dark-light: mix(#fff, $shot-in-the-dark, 20%);
$shot-in-the-dark-dark: mix(#000, $shot-in-the-dark, 20%);
.element {
color: $shot-in-the-dark;
box-shadow: 0 0 0 2px rgba($shot-in-the-dark, 0.35);
}