最接近的命名颜色 · #1D1328
#1D1328
最接近的命名颜色: Shot in the Dark
#1D1328(rgb(29 19 40)、hsl(269 36% 12%)、oklch(0.211 0.042 305))最接近命名颜色 Shot in the Dark。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#1D1328
oklch(0.211 0.042 305)
颜色转换
- HEX
- #1d1328
- RGB
- rgb(29 19 40)
- HSL
- hsl(269 36% 12%)
- HWB
- hwb(269 7% 84%)
- OKLCH
- oklch(0.211 0.042 305)
- OKLab
- oklab(0.211 0.024 -0.035)
- CIE Lab
- lab(7.85 9.43 -12.56)
- LCH
- lch(7.85 15.71 306.9)
- CMYK
- cmyk(27% 53% 0% 84%)
浅色调 · 深色调 · 灰色调
浅色调
- 30263B
- 433B4E
- 585162
- 6E6777
- 857F8C
- 9C97A2
- B4B0B9
- CCCAD0
- E5E4E7
深色调
- 180F21
- 130B1B
- 0E0715
- 09050F
- 050309
- 030104
- 010102
- 000001
- 000000
灰色调
- 261D30
- 2F2739
- 383141
- 423C4A
- 4C4653
- 56515B
- 605D64
- 6A686E
- 757477
配色和谐
互补色 +180°
- 1D1328
Shot in the Dark
- 141C05
≈ Pinch of Pepper
类似色 -30° +30°
- 1D1328
Shot in the Dark
- 13162C
≈ Sambucus
- 241020
≈ Inside
三角配色 +120° +240°
- 1D1328
Shot in the Dark
- 261402
≈ Cannon Black
- 001E1B
≈ Stellar Explorer
分裂互补色 +150° +210°
- 1D1328
Shot in the Dark
- 1F1800
≈ Noir Mystique
- 051E10
≈ Clock Chimes Thirteen
四角配色 +90° +180° +270°
- 1D1328
Shot in the Dark
- 29110A
≈ Root Brew
- 141C05
≈ Pinch of Pepper
- 001D23
≈ Stellar Explorer
对比度与无障碍
Ag
AAA白底
WCAG 17.85:1 · APCA Lc 105
Ag
Fail黑底
WCAG 1.17:1 · APCA Lc 0
最佳文字颜色: #FFFFFF
WCAG 17.85:1 (AAA) · APCA Lc 105
Contrast pairs
代码片段
CSS
:root {
--shot-in-the-dark: #1d1328;
--shot-in-the-dark-rgb: 29 19 40;
--shot-in-the-dark-oklch: oklch(0.211 0.042 305);
}
.element {
color: var(--shot-in-the-dark);
background-color: hsl(269 36% 12%);
border-color: oklch(0.211 0.042 305);
}Tailwind CSS v4
@theme {
--color-shot-in-the-dark: #1d1328;
--color-shot-in-the-dark-50: #f8f2ff;
--color-shot-in-the-dark-100: #ebe4f3;
--color-shot-in-the-dark-200: #d9d0e3;
--color-shot-in-the-dark-300: #bdb2c9;
--color-shot-in-the-dark-400: #a499b3;
--color-shot-in-the-dark-500: #8d7f9d;
--color-shot-in-the-dark-600: #776c85;
--color-shot-in-the-dark-700: #5f566a;
--color-shot-in-the-dark-800: #453f4f;
--color-shot-in-the-dark-900: #302b37;
--color-shot-in-the-dark-950: #1c1922;
}SCSS
$shot-in-the-dark: #1d1328;
$shot-in-the-dark-rgb: 29, 19, 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);
}