Nearest named color · #002117
#002117
Nearest named color: Nightmare
#002117 (rgb(0 33 23), hsl(162 100% 6%), oklch(0.22 0.044 168.9)) is closest to the named color Nightmare. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.
#002117
oklch(0.22 0.044 168.9)
Color conversions
- HEX
- #002117
- RGB
- rgb(0 33 23)
- HSL
- hsl(162 100% 6%)
- HWB
- hwb(162 0% 87%)
- OKLCH
- oklch(0.22 0.044 168.9)
- OKLab
- oklab(0.22 -0.043 0.008)
- CIE Lab
- lab(10.12 -15.04 3.13)
- LCH
- lch(10.12 15.36 168.3)
- CMYK
- cmyk(100% 0% 30% 87%)
Tints · Shades · Tones
Tints
- 17342A
- 2E483E
- 465C53
- 5E726A
- 778881
- 919E99
- ABB6B1
- C7CECB
- E2E6E5
Shades
- 001B12
- 00160E
- 00100A
- 000B06
- 000604
- 000302
- 000101
- 000000
- 000000
Tones
- 0C2A20
- 1A332A
- 263C34
- 33453E
- 3F4E48
- 4C5853
- 58625E
- 656C69
- 737674
Color harmonies
Complementary +180°
- 002117
Nightmare
- 29111E
≈ Black Cherry
Analogous -30° +30°
- 002117
Nightmare
- 0F1F0B
≈ Nightmare
- 002021
≈ Stellar Explorer
Triadic +120° +240°
- 002117
Nightmare
- 1A172E
≈ Sambucus
- 2B1407
≈ Zinnwaldite Brown
Split-complementary +150° +210°
- 002117
Nightmare
- 231328
≈ Inside
- 2C1112
≈ Dark Danger
Tetradic +90° +180° +270°
Contrast & accessibility
Ag
AAAOn white
WCAG 17.07:1 · APCA Lc 104
Ag
FailOn black
WCAG 1.22:1 · APCA Lc 0
Best text color: #FFFFFF
WCAG 17.07:1 (AAA) · APCA Lc 104
Contrast pairs
Code snippets
CSS
:root {
--nightmare: #002117;
--nightmare-rgb: 0 33 23;
--nightmare-oklch: oklch(0.22 0.044 168.9);
}
.element {
color: var(--nightmare);
background-color: hsl(162 100% 6%);
border-color: oklch(0.22 0.044 168.9);
}Tailwind CSS v4
@theme {
--color-nightmare: #002117;
--color-nightmare-50: #e9f9f3;
--color-nightmare-100: #daede6;
--color-nightmare-200: #c3dbd2;
--color-nightmare-300: #a2bfb4;
--color-nightmare-400: #86a79a;
--color-nightmare-500: #699081;
--color-nightmare-600: #597a6d;
--color-nightmare-700: #476157;
--color-nightmare-800: #34473f;
--color-nightmare-900: #23312b;
--color-nightmare-950: #121d19;
}SCSS
$nightmare: #002117;
$nightmare-rgb: 0, 33, 23;
$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);
}