Color con nombre más cercano · #2A1828
#2A1828
Color con nombre más cercano: Shot in the Dark
#2A1828 (rgb(42 24 40), hsl(307 27% 13%), oklch(0.24 0.04 330.7)) se parece más al color con nombre Shot in the Dark. Mira tintes, sombras, armonías, contraste WCAG y APCA, y código CSS, Tailwind v4 y SCSS.
#2A1828
oklch(0.24 0.04 330.7)
Conversiones de color
- HEX
- #2a1828
- RGB
- rgb(42 24 40)
- HSL
- hsl(307 27% 13%)
- HWB
- hwb(307 9% 84%)
- OKLCH
- oklch(0.24 0.04 330.7)
- OKLab
- oklab(0.24 0.035 -0.019)
- CIE Lab
- lab(11.27 11.71 -7.12)
- LCH
- lch(11.27 13.71 328.7)
- CMYK
- cmyk(0% 43% 5% 84%)
Tintes · Sombras · Tonos
Tintes
- 3D2B3A
- 503F4E
- 645562
- 786B76
- 8E828C
- A39AA2
- BAB2B8
- D0CBCF
- E7E5E7
Sombras
- 231321
- 1C0F1B
- 160A15
- 10070F
- 0A0409
- 050204
- 020102
- 010001
- 000000
Tonos
- 322130
- 3A2B38
- 433541
- 4B3F49
- 544952
- 5C545B
- 655F64
- 6E6A6D
- 777577
Armonías de color
Complementario +180°
- 2A1828
Shot in the Dark
- 102515
≈ Nightmare
Análogo -30° +30°
- 2A1828
Shot in the Dark
- 221B2F
≈ Black Howl
- 2F171E
≈ Black Cherry
Triádico +120° +240°
- 2A1828
Shot in the Dark
- 261E06
≈ Black Mesa
- 02242A
≈ Teal Spill
Complementario dividido +150° +210°
- 2A1828
Shot in the Dark
- 1D220B
≈ Midnight Pines
- 042520
≈ Teal Spill
Tetrádico +90° +180° +270°
- 2A1828
Shot in the Dark
- 2D1A0A
≈ Brunneophobia
- 102515
≈ Nightmare
- 0C2130
≈ The Count’s Black
Contraste y accesibilidad
Ag
AAASobre blanco
WCAG 16.67:1 · APCA Lc 104
Ag
FailSobre negro
WCAG 1.25:1 · APCA Lc 0
Mejor color de texto: #FFFFFF
WCAG 16.67:1 (AAA) · APCA Lc 104
Contrast pairs
Fragmentos de código
CSS
:root {
--shot-in-the-dark: #2a1828;
--shot-in-the-dark-rgb: 42 24 40;
--shot-in-the-dark-oklch: oklch(0.24 0.04 330.7);
}
.element {
color: var(--shot-in-the-dark);
background-color: hsl(307 27% 13%);
border-color: oklch(0.24 0.04 330.7);
}Tailwind CSS v4
@theme {
--color-shot-in-the-dark: #2a1828;
--color-shot-in-the-dark-50: #fdf1fa;
--color-shot-in-the-dark-100: #f0e3ee;
--color-shot-in-the-dark-200: #dfcedc;
--color-shot-in-the-dark-300: #c4b0c0;
--color-shot-in-the-dark-400: #ad96aa;
--color-shot-in-the-dark-500: #967d93;
--color-shot-in-the-dark-600: #7f6a7c;
--color-shot-in-the-dark-700: #665563;
--color-shot-in-the-dark-800: #4a3e49;
--color-shot-in-the-dark-900: #342a33;
--color-shot-in-the-dark-950: #1f181f;
}SCSS
$shot-in-the-dark: #2a1828;
$shot-in-the-dark-rgb: 42, 24, 40;
$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);
}