最接近的命名颜色 · #1D1427
#1D1427
最接近的命名颜色: Shot in the Dark
#1D1427(rgb(29 20 39)、hsl(268 32% 12%)、oklch(0.212 0.038 305.1))最接近命名颜色 Shot in the Dark。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#1D1427
oklch(0.212 0.038 305.1)
颜色转换
- HEX
- #1d1427
- RGB
- rgb(29 20 39)
- HSL
- hsl(268 32% 12%)
- HWB
- hwb(268 8% 85%)
- OKLCH
- oklch(0.212 0.038 305.1)
- OKLab
- oklab(0.212 0.022 -0.031)
- CIE Lab
- lab(8.11 8.48 -11.41)
- LCH
- lch(8.11 14.22 306.6)
- CMYK
- cmyk(26% 49% 0% 85%)
浅色调 · 深色调 · 灰色调
浅色调
- 30273A
- 433C4D
- 585161
- 6E6876
- 857F8C
- 9C98A2
- B4B0B8
- CCCACF
- E5E4E7
深色调
- 181020
- 130C1A
- 0E0814
- 09050E
- 050308
- 030104
- 010102
- 000001
- 000000
灰色调
- 261E2F
- 2F2738
- 383240
- 423C49
- 4C4752
- 56525B
- 605D64
- 6A686D
- 757477
配色和谐
互补色 +180°
- 1D1427
Shot in the Dark
- 151C07
≈ Pinch of Pepper
类似色 -30° +30°
- 1D1427
Shot in the Dark
- 14172A
≈ Sambucus
- 241220
≈ Inside
三角配色 +120° +240°
- 1D1427
Shot in the Dark
- 251505
≈ Cannon Black
- 001E1B
≈ Stellar Explorer
分裂互补色 +150° +210°
- 1D1427
Shot in the Dark
- 1E1803
≈ Noir Mystique
- 081E11
≈ Clock Chimes Thirteen
四角配色 +90° +180° +270°
- 1D1427
Shot in the Dark
- 28120C
≈ Root Brew
- 151C07
≈ Pinch of Pepper
- 001D24
≈ Stellar Explorer
对比度与无障碍
Ag
AAA白底
WCAG 17.77:1 · APCA Lc 105
Ag
Fail黑底
WCAG 1.18:1 · APCA Lc 0
最佳文字颜色: #FFFFFF
WCAG 17.77:1 (AAA) · APCA Lc 105
Contrast pairs
代码片段
CSS
:root {
--shot-in-the-dark: #1d1427;
--shot-in-the-dark-rgb: 29 20 39;
--shot-in-the-dark-oklch: oklch(0.212 0.038 305.1);
}
.element {
color: var(--shot-in-the-dark);
background-color: hsl(268 32% 12%);
border-color: oklch(0.212 0.038 305.1);
}Tailwind CSS v4
@theme {
--color-shot-in-the-dark: #1d1427;
--color-shot-in-the-dark-50: #f8f2fe;
--color-shot-in-the-dark-100: #ebe5f2;
--color-shot-in-the-dark-200: #d8d0e1;
--color-shot-in-the-dark-300: #bcb3c7;
--color-shot-in-the-dark-400: #a499b1;
--color-shot-in-the-dark-500: #8c809b;
--color-shot-in-the-dark-600: #766c83;
--color-shot-in-the-dark-700: #5f5769;
--color-shot-in-the-dark-800: #453f4e;
--color-shot-in-the-dark-900: #302c36;
--color-shot-in-the-dark-950: #1c1921;
}SCSS
$shot-in-the-dark: #1d1427;
$shot-in-the-dark-rgb: 29, 20, 39;
$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);
}