Nearest named color · #041C0E
#041C0E
Nearest named color: Nightmare
#041C0E (rgb(4 28 14), hsl(145 75% 6%), oklch(0.202 0.042 155.5)) is closest to the named color Nightmare. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.
#041C0E
oklch(0.202 0.042 155.5)
Color conversions
- HEX
- #041c0e
- RGB
- rgb(4 28 14)
- HSL
- hsl(145 75% 6%)
- HWB
- hwb(145 2% 89%)
- OKLCH
- oklch(0.202 0.042 155.5)
- OKLab
- oklab(0.202 -0.038 0.017)
- CIE Lab
- lab(8 -11.77 5.72)
- LCH
- lch(8 13.08 154.1)
- CMYK
- cmyk(86% 0% 50% 89%)
Tints · Shades · Tones
Tints
- 192F21
- 2F4336
- 46584C
- 5E6E63
- 77847B
- 919C94
- ABB4AE
- C7CCC8
- E2E5E3
Shades
- 03170B
- 021207
- 010D05
- 010803
- 000502
- 000201
- 000100
- 000000
- 000000
Tones
- 0F2518
- 1B2E22
- 27382D
- 334238
- 3F4B43
- 4C564F
- 58605B
- 656A67
- 737573
Color harmonies
Complementary +180°
- 041C0E
Nightmare
- 220F1E
≈ Inside
Analogous -30° +30°
- 041C0E
Nightmare
- 121A04
≈ Pinch of Pepper
- 001C19
≈ Black Stallion
Triadic +120° +240°
- 041C0E
Nightmare
- 111429
≈ Corbeau
- 260F09
≈ Root Brew
Split-complementary +150° +210°
- 041C0E
Nightmare
- 1B1126
≈ Inside
- 260E14
≈ Italian Roast
Tetradic +90° +180° +270°
- 041C0E
Nightmare
- 041828
≈ Creeping Death
- 220F1E
≈ Inside
- 231201
≈ Super Black
Contrast & accessibility
Ag
AAAOn white
WCAG 17.83:1 · APCA Lc 104
Ag
FailOn black
WCAG 1.17:1 · APCA Lc 0
Best text color: #FFFFFF
WCAG 17.83:1 (AAA) · APCA Lc 104
Contrast pairs
Code snippets
CSS
:root {
--nightmare: #041c0e;
--nightmare-rgb: 4 28 14;
--nightmare-oklch: oklch(0.202 0.042 155.5);
}
.element {
color: var(--nightmare);
background-color: hsl(145 75% 6%);
border-color: oklch(0.202 0.042 155.5);
}Tailwind CSS v4
@theme {
--color-nightmare: #041c0e;
--color-nightmare-50: #ecf9f0;
--color-nightmare-100: #ddece2;
--color-nightmare-200: #c6dacd;
--color-nightmare-300: #a7beaf;
--color-nightmare-400: #8ba694;
--color-nightmare-500: #708f7a;
--color-nightmare-600: #5f7968;
--color-nightmare-700: #4c6153;
--color-nightmare-800: #37473c;
--color-nightmare-900: #263129;
--color-nightmare-950: #141d17;
}SCSS
$nightmare: #041c0e;
$nightmare-rgb: 4, 28, 14;
$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);
}