最接近的命名颜色 · #270F22
#270F22
最接近的命名颜色: Shot in the Dark
#270F22(rgb(39 15 34)、hsl(313 44% 11%)、oklch(0.214 0.051 335.6))最接近命名颜色 Shot in the Dark。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#270F22
oklch(0.214 0.051 335.6)
颜色转换
- HEX
- #270f22
- RGB
- rgb(39 15 34)
- HSL
- hsl(313 44% 11%)
- HWB
- hwb(313 6% 85%)
- OKLCH
- oklch(0.214 0.051 335.6)
- OKLab
- oklab(0.214 0.046 -0.021)
- CIE Lab
- lab(8.05 15.28 -7.59)
- LCH
- lch(8.05 17.06 333.6)
- CMYK
- cmyk(0% 62% 13% 85%)
浅色调 · 深色调 · 灰色调
浅色调
- 3A2335
- 4E3848
- 624E5D
- 776572
- 8C7D88
- A2959F
- B9AFB6
- D0C9CE
- E7E4E6
深色调
- 200B1C
- 1A0816
- 140511
- 0E030B
- 080207
- 040103
- 020001
- 010000
- 000000
灰色调
- 30192B
- 382433
- 412E3C
- 4A3945
- 53444F
- 5C5058
- 655C62
- 6E686C
- 777476
配色和谐
互补色 +180°
- 270F22
Shot in the Dark
- 01200F
≈ Clock Chimes Thirteen
类似色 -30° +30°
- 270F22
Shot in the Dark
- 1F122B
≈ Blacklist
- 2C0E16
≈ Dark Danger
三角配色 +120° +240°
- 270F22
Shot in the Dark
- 1F1900
≈ Noir Mystique
- 001D24
≈ Stellar Explorer
分裂互补色 +150° +210°
- 270F22
Shot in the Dark
- 131D02
≈ Yuzu Soy
- 001F1C
≈ Stellar Explorer
四角配色 +90° +180° +270°
- 270F22
Shot in the Dark
- 281400
≈ Cannon Black
- 01200F
≈ Clock Chimes Thirteen
- 021B2F
≈ Oxford by Night
对比度与无障碍
Ag
AAA白底
WCAG 17.83:1 · APCA Lc 104
Ag
Fail黑底
WCAG 1.17:1 · APCA Lc 0
最佳文字颜色: #FFFFFF
WCAG 17.83:1 (AAA) · APCA Lc 104
Contrast pairs
代码片段
CSS
:root {
--shot-in-the-dark: #270f22;
--shot-in-the-dark-rgb: 39 15 34;
--shot-in-the-dark-oklch: oklch(0.214 0.051 335.6);
}
.element {
color: var(--shot-in-the-dark);
background-color: hsl(313 44% 11%);
border-color: oklch(0.214 0.051 335.6);
}Tailwind CSS v4
@theme {
--color-shot-in-the-dark: #270f22;
--color-shot-in-the-dark-50: #fff0fa;
--color-shot-in-the-dark-100: #f4e2ee;
--color-shot-in-the-dark-200: #e3ccdc;
--color-shot-in-the-dark-300: #c9aec1;
--color-shot-in-the-dark-400: #b294aa;
--color-shot-in-the-dark-500: #9c7a93;
--color-shot-in-the-dark-600: #84677d;
--color-shot-in-the-dark-700: #6a5264;
--color-shot-in-the-dark-800: #4d3c4a;
--color-shot-in-the-dark-900: #362933;
--color-shot-in-the-dark-950: #21171f;
}SCSS
$shot-in-the-dark: #270f22;
$shot-in-the-dark-rgb: 39, 15, 34;
$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);
}