最接近的命名颜色 · #251024
#251024
最接近的命名颜色: Shot in the Dark
#251024(rgb(37 16 36)、hsl(303 40% 10%)、oklch(0.213 0.049 328.9))最接近命名颜色 Shot in the Dark。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#251024
oklch(0.213 0.049 328.9)
颜色转换
- HEX
- #251024
- RGB
- rgb(37 16 36)
- HSL
- hsl(303 40% 10%)
- HWB
- hwb(303 6% 85%)
- OKLCH
- oklch(0.213 0.049 328.9)
- OKLab
- oklab(0.213 0.042 -0.025)
- CIE Lab
- lab(8.04 14.11 -9.15)
- LCH
- lch(8.04 16.82 327)
- CMYK
- cmyk(0% 57% 3% 85%)
浅色调 · 深色调 · 灰色调
浅色调
- 382437
- 4C394A
- 604F5F
- 756574
- 8B7D8A
- A196A0
- B8AFB7
- CFC9CE
- E7E4E6
深色调
- 1F0C1E
- 190918
- 130612
- 0D040C
- 080207
- 040104
- 020002
- 000000
- 000000
灰色调
- 2E1A2C
- 362435
- 3F2F3E
- 483A47
- 514550
- 5A5059
- 645C63
- 6D686C
- 767476
配色和谐
互补色 +180°
- 251024
Shot in the Dark
- 061F0C
≈ Clock Chimes Thirteen
类似色 -30° +30°
- 251024
Shot in the Dark
- 1C132C
≈ Lost in Sadness
- 2A0E19
≈ Dark Danger
三角配色 +120° +240°
- 251024
Shot in the Dark
- 211800
≈ Cannon Black
- 001E22
≈ Stellar Explorer
分裂互补色 +150° +210°
- 251024
Shot in the Dark
- 171C01
≈ Yuzu Soy
- 001F19
≈ Stellar Explorer
四角配色 +90° +180° +270°
- 251024
Shot in the Dark
- 291201
≈ Shadow Play
- 061F0C
≈ Clock Chimes Thirteen
- 001C2D
≈ Oxford by Night
对比度与无障碍
Ag
AAA白底
WCAG 17.82:1 · APCA Lc 104
Ag
Fail黑底
WCAG 1.17:1 · APCA Lc 0
最佳文字颜色: #FFFFFF
WCAG 17.82:1 (AAA) · APCA Lc 104
Contrast pairs
代码片段
CSS
:root {
--shot-in-the-dark: #251024;
--shot-in-the-dark-rgb: 37 16 36;
--shot-in-the-dark-oklch: oklch(0.213 0.049 328.9);
}
.element {
color: var(--shot-in-the-dark);
background-color: hsl(303 40% 10%);
border-color: oklch(0.213 0.049 328.9);
}Tailwind CSS v4
@theme {
--color-shot-in-the-dark: #251024;
--color-shot-in-the-dark-50: #fef0fc;
--color-shot-in-the-dark-100: #f2e2f0;
--color-shot-in-the-dark-200: #e1cdde;
--color-shot-in-the-dark-300: #c7afc3;
--color-shot-in-the-dark-400: #af95ad;
--color-shot-in-the-dark-500: #997b96;
--color-shot-in-the-dark-600: #81687f;
--color-shot-in-the-dark-700: #675366;
--color-shot-in-the-dark-800: #4c3d4b;
--color-shot-in-the-dark-900: #352a34;
--color-shot-in-the-dark-950: #201720;
}SCSS
$shot-in-the-dark: #251024;
$shot-in-the-dark-rgb: 37, 16, 36;
$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);
}