Nearest named color · #021C10
#021C10
Nearest named color: Nightmare
#021C10 (rgb(2 28 16), hsl(152 87% 6%), oklch(0.202 0.041 160.9)) is closest to the named color Nightmare. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.
#021C10
oklch(0.202 0.041 160.9)
Color conversions
- HEX
- #021c10
- RGB
- rgb(2 28 16)
- HSL
- hsl(152 87% 6%)
- HWB
- hwb(152 1% 89%)
- OKLCH
- oklch(0.202 0.041 160.9)
- OKLab
- oklab(0.202 -0.039 0.014)
- CIE Lab
- lab(7.93 -12.04 4.54)
- LCH
- lch(7.93 12.87 159.4)
- CMYK
- cmyk(93% 0% 43% 89%)
Tints · Shades · Tones
Tints
- 172F23
- 2E4338
- 45584E
- 5D6E64
- 76847C
- 909C95
- ABB4AF
- C6CCC9
- E2E5E4
Shades
- 01170C
- 011209
- 010D06
- 000804
- 000502
- 000201
- 000100
- 000000
- 000000
Tones
- 0D251A
- 1A2E24
- 26382E
- 324239
- 3E4C44
- 4B5650
- 58605B
- 656A67
- 727574
Color harmonies
Complementary +180°
- 021C10
Nightmare
- 230E1C
≈ Inside
Analogous -30° +30°
- 021C10
Nightmare
- 101A05
≈ Pinch of Pepper
- 001B1A
≈ Black Stallion
Triadic +120° +240°
- 021C10
Nightmare
- 131429
≈ Sambucus
- 260F07
≈ Severely Burnt Toast
Split-complementary +150° +210°
- 021C10
Nightmare
- 1C1024
≈ Shot in the Dark
- 260E12
≈ Italian Roast
Tetradic +90° +180° +270°
- 021C10
Nightmare
- 071728
≈ Creeping Death
- 230E1C
≈ Inside
- 221301
≈ Super Black
Contrast & accessibility
Ag
AAAOn white
WCAG 17.85:1 · APCA Lc 104
Ag
FailOn black
WCAG 1.17:1 · APCA Lc 0
Best text color: #FFFFFF
WCAG 17.85:1 (AAA) · APCA Lc 104
Contrast pairs
Code snippets
CSS
:root {
--nightmare: #021c10;
--nightmare-rgb: 2 28 16;
--nightmare-oklch: oklch(0.202 0.041 160.9);
}
.element {
color: var(--nightmare);
background-color: hsl(152 87% 6%);
border-color: oklch(0.202 0.041 160.9);
}Tailwind CSS v4
@theme {
--color-nightmare: #021c10;
--color-nightmare-50: #ebf9f2;
--color-nightmare-100: #dcece4;
--color-nightmare-200: #c5dacf;
--color-nightmare-300: #a5beb1;
--color-nightmare-400: #8aa696;
--color-nightmare-500: #6e8f7d;
--color-nightmare-600: #5e796a;
--color-nightmare-700: #4b6155;
--color-nightmare-800: #36473d;
--color-nightmare-900: #25312a;
--color-nightmare-950: #141d18;
}SCSS
$nightmare: #021c10;
$nightmare-rgb: 2, 28, 16;
$nightmare-light: mix(#fff, $nightmare, 20%);
$nightmare-dark: mix(#000, $nightmare, 20%);
.element {
color: $nightmare;
box-shadow: 0 0 0 2px rgba($nightmare, 0.35);
}