Màu có tên gần nhất · #221222
#221222
Màu có tên gần nhất: Shot in the Dark
#221222 (rgb(34 18 34), hsl(300 31% 10%), oklch(0.212 0.039 326.8)) gần nhất với màu có tên Shot in the Dark. Xem sắc nhạt, sắc đậm, hòa sắc, tương phản WCAG và APCA, cùng mã CSS, Tailwind v4 và SCSS.
#221222
oklch(0.212 0.039 326.8)
Chuyển đổi màu
- HEX
- #221222
- RGB
- rgb(34 18 34)
- HSL
- hsl(300 31% 10%)
- HWB
- hwb(300 7% 87%)
- OKLCH
- oklch(0.212 0.039 326.8)
- OKLab
- oklab(0.212 0.032 -0.021)
- CIE Lab
- lab(8.01 11.06 -7.74)
- LCH
- lch(8.01 13.5 325)
- CMYK
- cmyk(0% 47% 0% 87%)
Sắc nhạt · Sắc đậm · Sắc xám
Sắc nhạt
- 352535
- 493A48
- 5D505D
- 726672
- 887E88
- 9F979F
- B6B0B6
- CECACE
- E6E4E6
Sắc đậm
- 1C0E1C
- 160A16
- 110711
- 0B040B
- 070207
- 030103
- 010101
- 000000
- 000000
Sắc xám
- 2B1C2B
- 342633
- 3D303C
- 463B45
- 4F464F
- 595158
- 625C62
- 6C686C
- 767476
Hòa sắc
Bổ túc +180°
- 221222
Shot in the Dark
- 0C1D0E
≈ Pinch of Pepper
Tương đồng -30° +30°
- 221222
Shot in the Dark
- 1B1528
≈ Sambucus
- 271119
≈ Italian Roast
Bộ ba +120° +240°
- 221222
Shot in the Dark
- 201702
≈ Noir Mystique
- 001D21
≈ Stellar Explorer
Bổ túc chia +150° +210°
- 221222
Shot in the Dark
- 181B05
≈ Noir Mystique
- 001E18
≈ Stellar Explorer
Bộ bốn +90° +180° +270°
- 221222
Shot in the Dark
- 261406
≈ Cannon Black
- 0C1D0E
≈ Pinch of Pepper
- 041B28
≈ Oxford by Night
Tương phản và khả năng tiếp cận
Ag
AAATrên nền trắng
WCAG 17.83:1 · APCA Lc 105
Ag
FailTrên nền đen
WCAG 1.17:1 · APCA Lc 0
Màu chữ tốt nhất: #FFFFFF
WCAG 17.83:1 (AAA) · APCA Lc 105
Contrast pairs
Đoạn mã
CSS
:root {
--shot-in-the-dark: #221222;
--shot-in-the-dark-rgb: 34 18 34;
--shot-in-the-dark-oklch: oklch(0.212 0.039 326.8);
}
.element {
color: var(--shot-in-the-dark);
background-color: hsl(300 31% 10%);
border-color: oklch(0.212 0.039 326.8);
}Tailwind CSS v4
@theme {
--color-shot-in-the-dark: #221222;
--color-shot-in-the-dark-50: #fcf1fb;
--color-shot-in-the-dark-100: #f0e3ee;
--color-shot-in-the-dark-200: #decfdd;
--color-shot-in-the-dark-300: #c3b1c1;
--color-shot-in-the-dark-400: #ab97ab;
--color-shot-in-the-dark-500: #947e94;
--color-shot-in-the-dark-600: #7e6a7d;
--color-shot-in-the-dark-700: #645564;
--color-shot-in-the-dark-800: #493e4a;
--color-shot-in-the-dark-900: #332b33;
--color-shot-in-the-dark-950: #1f181f;
}SCSS
$shot-in-the-dark: #221222;
$shot-in-the-dark-rgb: 34, 18, 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);
}