Nearest named color · #201428
#201428
Nearest named color: Shot in the Dark
#201428 (rgb(32 20 40), hsl(276 33% 12%), oklch(0.217 0.042 310.9)) is closest to the named color Shot in the Dark. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.
#201428
oklch(0.217 0.042 310.9)
Color conversions
- HEX
- #201428
- RGB
- rgb(32 20 40)
- HSL
- hsl(276 33% 12%)
- HWB
- hwb(276 8% 84%)
- OKLCH
- oklch(0.217 0.042 310.9)
- OKLab
- oklab(0.217 0.027 -0.031)
- CIE Lab
- lab(8.58 10.01 -11.39)
- LCH
- lch(8.58 15.16 311.3)
- CMYK
- cmyk(20% 50% 0% 84%)
Tints · Shades · Tones
Tints
- 33273B
- 463C4E
- 5B5162
- 706877
- 877F8C
- 9E98A2
- B5B1B9
- CDCAD0
- E6E4E7
Shades
- 1A1021
- 150C1B
- 0F0815
- 0A050F
- 060309
- 030104
- 010102
- 000001
- 000000
Tones
- 291E30
- 322839
- 3B3241
- 443C4A
- 4E4752
- 57525B
- 615D64
- 6B696D
- 767477
Color harmonies
Complementary +180°
- 201428
Shot in the Dark
- 131E08
≈ Nightmare
Analogous -30° +30°
- 201428
Shot in the Dark
- 17172D
≈ Sambucus
- 271220
≈ Inside
Triadic +120° +240°
- 201428
Shot in the Dark
- 261603
≈ Cannon Black
- 001F1E
≈ Stellar Explorer
Split-complementary +150° +210°
- 201428
Shot in the Dark
- 1E1A02
≈ Noir Mystique
- 052013
≈ Clock Chimes Thirteen
Tetradic +90° +180° +270°
- 201428
Shot in the Dark
- 2A130A
≈ Zinnwaldite Brown
- 131E08
≈ Nightmare
- 001E27
≈ Oxford by Night
Contrast & accessibility
Ag
AAAOn white
WCAG 17.61:1 · APCA Lc 104
Ag
FailOn black
WCAG 1.19:1 · APCA Lc 0
Best text color: #FFFFFF
WCAG 17.61:1 (AAA) · APCA Lc 104
Contrast pairs
Code snippets
CSS
:root {
--shot-in-the-dark: #201428;
--shot-in-the-dark-rgb: 32 20 40;
--shot-in-the-dark-oklch: oklch(0.217 0.042 310.9);
}
.element {
color: var(--shot-in-the-dark);
background-color: hsl(276 33% 12%);
border-color: oklch(0.217 0.042 310.9);
}Tailwind CSS v4
@theme {
--color-shot-in-the-dark: #201428;
--color-shot-in-the-dark-50: #f9f2fe;
--color-shot-in-the-dark-100: #ede4f2;
--color-shot-in-the-dark-200: #dacfe1;
--color-shot-in-the-dark-300: #bfb2c7;
--color-shot-in-the-dark-400: #a698b1;
--color-shot-in-the-dark-500: #8f7f9b;
--color-shot-in-the-dark-600: #796b83;
--color-shot-in-the-dark-700: #615669;
--color-shot-in-the-dark-800: #463f4e;
--color-shot-in-the-dark-900: #312b36;
--color-shot-in-the-dark-950: #1d1821;
}SCSS
$shot-in-the-dark: #201428;
$shot-in-the-dark-rgb: 32, 20, 40;
$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);
}