最接近的命名颜色 · #1D132A
#1D132A
最接近的命名颜色: Shot in the Dark
#1D132A(rgb(29 19 42)、hsl(266 38% 12%)、oklch(0.212 0.046 302.7))最接近命名颜色 Shot in the Dark。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#1D132A
oklch(0.212 0.046 302.7)
颜色转换
- HEX
- #1d132a
- RGB
- rgb(29 19 42)
- HSL
- hsl(266 38% 12%)
- HWB
- hwb(266 7% 84%)
- OKLCH
- oklch(0.212 0.046 302.7)
- OKLab
- oklab(0.212 0.025 -0.039)
- CIE Lab
- lab(7.95 9.91 -13.89)
- LCH
- lch(7.95 17.06 305.5)
- CMYK
- cmyk(31% 55% 0% 84%)
浅色调 · 深色调 · 灰色调
浅色调
- 30263D
- 433B50
- 585164
- 6E6778
- 847F8E
- 9C97A3
- B4B0BA
- CCCAD0
- E5E4E7
深色调
- 180F23
- 130B1C
- 0E0716
- 090510
- 05030A
- 030105
- 010102
- 000001
- 000000
灰色调
- 261D32
- 2F273A
- 383143
- 423C4B
- 4C4654
- 56525C
- 605D65
- 6A686E
- 757477
配色和谐
互补色 +180°
- 1D132A
Shot in the Dark
- 151C03
≈ Pinch of Pepper
类似色 -30° +30°
- 1D132A
Shot in the Dark
- 12172E
≈ Dark Knight
- 251022
≈ Inside
三角配色 +120° +240°
- 1D132A
Shot in the Dark
- 271301
≈ Cannon Black
- 001E1A
≈ Stellar Explorer
分裂互补色 +150° +210°
- 1D132A
Shot in the Dark
- 201800
≈ Noir Mystique
- 051F0E
≈ Clock Chimes Thirteen
四角配色 +90° +180° +270°
- 1D132A
Shot in the Dark
- 2A100A
≈ Root Brew
- 151C03
≈ Pinch of Pepper
- 001D23
≈ Stellar Explorer
对比度与无障碍
Ag
AAA白底
WCAG 17.81:1 · APCA Lc 105
Ag
Fail黑底
WCAG 1.17:1 · APCA Lc 0
最佳文字颜色: #FFFFFF
WCAG 17.81:1 (AAA) · APCA Lc 105
Contrast pairs
代码片段
CSS
:root {
--shot-in-the-dark: #1d132a;
--shot-in-the-dark-rgb: 29 19 42;
--shot-in-the-dark-oklch: oklch(0.212 0.046 302.7);
}
.element {
color: var(--shot-in-the-dark);
background-color: hsl(266 38% 12%);
border-color: oklch(0.212 0.046 302.7);
}Tailwind CSS v4
@theme {
--color-shot-in-the-dark: #1d132a;
--color-shot-in-the-dark-50: #f8f2ff;
--color-shot-in-the-dark-100: #ebe4f5;
--color-shot-in-the-dark-200: #d8d0e4;
--color-shot-in-the-dark-300: #bdb2cb;
--color-shot-in-the-dark-400: #a398b5;
--color-shot-in-the-dark-500: #8c7fa0;
--color-shot-in-the-dark-600: #766c87;
--color-shot-in-the-dark-700: #5f566c;
--color-shot-in-the-dark-800: #453f50;
--color-shot-in-the-dark-900: #302b38;
--color-shot-in-the-dark-950: #1c1922;
}SCSS
$shot-in-the-dark: #1d132a;
$shot-in-the-dark-rgb: 29, 19, 42;
$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);
}