最接近的命名颜色 · #270F21
#270F21
最接近的命名颜色: Shot in the Dark
#270F21(rgb(39 15 33)、hsl(315 44% 11%)、oklch(0.213 0.05 337.5))最接近命名颜色 Shot in the Dark。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#270F21
oklch(0.213 0.05 337.5)
颜色转换
- HEX
- #270f21
- RGB
- rgb(39 15 33)
- HSL
- hsl(315 44% 11%)
- HWB
- hwb(315 6% 85%)
- OKLCH
- oklch(0.213 0.05 337.5)
- OKLab
- oklab(0.213 0.046 -0.019)
- CIE Lab
- lab(8 15.12 -6.89)
- LCH
- lch(8 16.61 335.5)
- CMYK
- cmyk(0% 62% 15% 85%)
浅色调 · 深色调 · 灰色调
浅色调
- 3A2334
- 4E3847
- 624E5C
- 776571
- 8C7D87
- A2959E
- B9AFB6
- D0C9CE
- E7E4E6
深色调
- 200B1B
- 1A0816
- 140510
- 0E030B
- 080206
- 040103
- 020001
- 010000
- 000000
灰色调
- 30192A
- 382432
- 412E3C
- 4A3945
- 53444E
- 5C5058
- 655C62
- 6E676C
- 777476
配色和谐
互补色 +180°
- 270F21
Shot in the Dark
- 002010
≈ Clock Chimes Thirteen
类似色 -30° +30°
- 270F21
Shot in the Dark
- 1F122A
≈ Inside
- 2B0E15
≈ Dark Danger
三角配色 +120° +240°
- 270F21
Shot in the Dark
- 1F1900
≈ Noir Mystique
- 001D24
≈ Stellar Explorer
分裂互补色 +150° +210°
- 270F21
Shot in the Dark
- 121D03
≈ Yuzu Soy
- 001E1C
≈ Stellar Explorer
四角配色 +90° +180° +270°
- 270F21
Shot in the Dark
- 271400
≈ Cannon Black
- 002010
≈ Clock Chimes Thirteen
- 031A2E
≈ Oxford by Night
对比度与无障碍
Ag
AAA白底
WCAG 17.84:1 · APCA Lc 104
Ag
Fail黑底
WCAG 1.17:1 · APCA Lc 0
最佳文字颜色: #FFFFFF
WCAG 17.84:1 (AAA) · APCA Lc 104
Contrast pairs
代码片段
CSS
:root {
--shot-in-the-dark: #270f21;
--shot-in-the-dark-rgb: 39 15 33;
--shot-in-the-dark-oklch: oklch(0.213 0.05 337.5);
}
.element {
color: var(--shot-in-the-dark);
background-color: hsl(315 44% 11%);
border-color: oklch(0.213 0.05 337.5);
}Tailwind CSS v4
@theme {
--color-shot-in-the-dark: #270f21;
--color-shot-in-the-dark-50: #fff0fa;
--color-shot-in-the-dark-100: #f4e2ed;
--color-shot-in-the-dark-200: #e4ccdb;
--color-shot-in-the-dark-300: #caaec0;
--color-shot-in-the-dark-400: #b294a9;
--color-shot-in-the-dark-500: #9c7a92;
--color-shot-in-the-dark-600: #84677b;
--color-shot-in-the-dark-700: #6a5263;
--color-shot-in-the-dark-800: #4e3c49;
--color-shot-in-the-dark-900: #362933;
--color-shot-in-the-dark-950: #21171e;
}SCSS
$shot-in-the-dark: #270f21;
$shot-in-the-dark-rgb: 39, 15, 33;
$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);
}