Nearest named color · #002116
#002116
Nearest named color: Nightmare
#002116 (rgb(0 33 22), hsl(160 100% 6%), oklch(0.22 0.045 166.9)) is closest to the named color Nightmare. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.
#002116
oklch(0.22 0.045 166.9)
Color conversions
- HEX
- #002116
- RGB
- rgb(0 33 22)
- HSL
- hsl(160 100% 6%)
- HWB
- hwb(160 0% 87%)
- OKLCH
- oklch(0.22 0.045 166.9)
- OKLab
- oklab(0.22 -0.044 0.01)
- CIE Lab
- lab(10.1 -15.24 3.81)
- LCH
- lch(10.1 15.71 166)
- CMYK
- cmyk(100% 0% 33% 87%)
Tints · Shades · Tones
Tints
- 173429
- 2E483D
- 465C53
- 5E7269
- 778880
- 919E98
- ABB6B1
- C7CECA
- E2E6E4
Shades
- 001B12
- 00160D
- 001009
- 000B06
- 000603
- 000302
- 000101
- 000000
- 000000
Tones
- 0C2A1F
- 1A3329
- 263C33
- 33453D
- 3F4E48
- 4C5852
- 58625E
- 656C69
- 737674
Color harmonies
Complementary +180°
- 002116
Nightmare
- 29111F
≈ Inside
Analogous -30° +30°
- 002116
Nightmare
- 101F09
≈ Nightmare
- 002020
≈ Stellar Explorer
Triadic +120° +240°
- 002116
Nightmare
- 19172E
≈ Sambucus
- 2B1307
≈ Shadow Play
Split-complementary +150° +210°
- 002116
Nightmare
- 231328
≈ Inside
- 2C1113
≈ Dark Danger
Tetradic +90° +180° +270°
- 002116
Nightmare
- 0C1B2F
≈ Trapped Darkness
- 29111F
≈ Inside
- 261700
≈ Cannon Black
Contrast & accessibility
Ag
AAAOn white
WCAG 17.08:1 · APCA Lc 104
Ag
FailOn black
WCAG 1.22:1 · APCA Lc 0
Best text color: #FFFFFF
WCAG 17.08:1 (AAA) · APCA Lc 104
Contrast pairs
Code snippets
CSS
:root {
--nightmare: #002116;
--nightmare-rgb: 0 33 22;
--nightmare-oklch: oklch(0.22 0.045 166.9);
}
.element {
color: var(--nightmare);
background-color: hsl(160 100% 6%);
border-color: oklch(0.22 0.045 166.9);
}Tailwind CSS v4
@theme {
--color-nightmare: #002116;
--color-nightmare-50: #e9faf3;
--color-nightmare-100: #daede5;
--color-nightmare-200: #c3dbd1;
--color-nightmare-300: #a2bfb3;
--color-nightmare-400: #86a799;
--color-nightmare-500: #699080;
--color-nightmare-600: #597a6c;
--color-nightmare-700: #476256;
--color-nightmare-800: #34483e;
--color-nightmare-900: #23322b;
--color-nightmare-950: #121d18;
}SCSS
$nightmare: #002116;
$nightmare-rgb: 0, 33, 22;
$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);
}