Nearest named color · #22131F
#22131F
Nearest named color: Shot in the Dark
#22131F (rgb(34 19 31), hsl(312 28% 10%), oklch(0.212 0.033 334.1)) is closest to the named color Shot in the Dark. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.
#22131F
oklch(0.212 0.033 334.1)
Color conversions
- HEX
- #22131f
- RGB
- rgb(34 19 31)
- HSL
- hsl(312 28% 10%)
- HWB
- hwb(312 7% 87%)
- OKLCH
- oklch(0.212 0.033 334.1)
- OKLab
- oklab(0.212 0.029 -0.014)
- CIE Lab
- lab(8.18 9.82 -5.21)
- LCH
- lch(8.18 11.12 332.1)
- CMYK
- cmyk(0% 44% 9% 87%)
Tints · Shades · Tones
Tints
- 352632
- 493B45
- 5D505A
- 726770
- 887F86
- 9F979D
- B6B0B5
- CECACD
- E6E4E6
Shades
- 1C0F19
- 160B14
- 11070F
- 0B050A
- 070306
- 030103
- 010101
- 000000
- 000000
Tones
- 2B1D28
- 342731
- 3D313A
- 463B43
- 4F464D
- 595157
- 625D61
- 6C686B
- 767475
Color harmonies
Complementary +180°
- 22131F
Shot in the Dark
- 0C1D12
≈ Pinch of Pepper
Analogous -30° +30°
- 22131F
Shot in the Dark
- 1C1525
≈ Sambucus
- 251217
≈ Italian Roast
Triadic +120° +240°
- 22131F
Shot in the Dark
- 1E1906
≈ Noir Mystique
- 041D22
≈ Black Stallion
Split-complementary +150° +210°
- 22131F
Shot in the Dark
- 161B0A
≈ Pinch of Pepper
- 041E1B
≈ Stellar Explorer
Tetradic +90° +180° +270°
- 22131F
Shot in the Dark
- 231508
≈ Cannon Black
- 0C1D12
≈ Pinch of Pepper
- 0B1A27
≈ Creeping Death
Contrast & accessibility
Ag
AAAOn white
WCAG 17.78:1 · APCA Lc 105
Ag
FailOn black
WCAG 1.18:1 · APCA Lc 0
Best text color: #FFFFFF
WCAG 17.78:1 (AAA) · APCA Lc 105
Contrast pairs
Code snippets
CSS
:root {
--shot-in-the-dark: #22131f;
--shot-in-the-dark-rgb: 34 19 31;
--shot-in-the-dark-oklch: oklch(0.212 0.033 334.1);
}
.element {
color: var(--shot-in-the-dark);
background-color: hsl(312 28% 10%);
border-color: oklch(0.212 0.033 334.1);
}Tailwind CSS v4
@theme {
--color-shot-in-the-dark: #22131f;
--color-shot-in-the-dark-50: #fcf2f9;
--color-shot-in-the-dark-100: #efe4ec;
--color-shot-in-the-dark-200: #decfd9;
--color-shot-in-the-dark-300: #c3b1be;
--color-shot-in-the-dark-400: #ab98a6;
--color-shot-in-the-dark-500: #947e8f;
--color-shot-in-the-dark-600: #7d6b79;
--color-shot-in-the-dark-700: #645661;
--color-shot-in-the-dark-800: #493e47;
--color-shot-in-the-dark-900: #332b31;
--color-shot-in-the-dark-950: #1f181d;
}SCSS
$shot-in-the-dark: #22131f;
$shot-in-the-dark-rgb: 34, 19, 31;
$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);
}