Nearest named color · #041A24
#041A24
Nearest named color: Midnight Dreams
#041A24 (rgb(4 26 36), hsl(199 80% 8%), oklch(0.205 0.035 230.2)) is closest to the named color Midnight Dreams. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.
#041A24
oklch(0.205 0.035 230.2)
Color conversions
- HEX
- #041a24
- RGB
- rgb(4 26 36)
- HSL
- hsl(199 80% 8%)
- HWB
- hwb(199 2% 86%)
- OKLCH
- oklch(0.205 0.035 230.2)
- OKLab
- oklab(0.205 -0.022 -0.027)
- CIE Lab
- lab(7.9 -5.65 -9.72)
- LCH
- lch(7.9 11.24 239.8)
- CMYK
- cmyk(89% 28% 0% 86%)
Tints · Shades · Tones
Tints
- 192D37
- 2F414A
- 46565F
- 5E6C74
- 77838A
- 919BA0
- ABB3B7
- C6CCCE
- E2E5E7
Shades
- 03151E
- 021018
- 010C12
- 01070C
- 000407
- 000204
- 000102
- 000000
- 000000
Tones
- 0F232C
- 1B2D35
- 27363E
- 334047
- 3F4A50
- 4C5559
- 585F63
- 656A6C
- 737576
Color harmonies
Complementary +180°
- 041A24
Midnight Dreams
- 241208
≈ Severely Burnt Toast
Analogous -30° +30°
- 041A24
Midnight Dreams
- 001C1D
≈ Black Stallion
- 0E1727
≈ Creeping Death
Triadic +120° +240°
- 041A24
Midnight Dreams
- 231019
≈ Italian Roast
- 181905
≈ Pinch of Pepper
Split-complementary +150° +210°
- 041A24
Midnight Dreams
- 251011
≈ Italian Roast
- 1F1504
≈ Noir Mystique
Tetradic +90° +180° +270°
- 041A24
Midnight Dreams
- 1E1221
≈ Inside
- 241208
≈ Severely Burnt Toast
- 0E1B0C
≈ Pinch of Pepper
Contrast & accessibility
Ag
AAAOn white
WCAG 17.82:1 · APCA Lc 104
Ag
FailOn black
WCAG 1.17:1 · APCA Lc 0
Best text color: #FFFFFF
WCAG 17.82:1 (AAA) · APCA Lc 104
Contrast pairs
Code snippets
CSS
:root {
--midnight-dreams: #041a24;
--midnight-dreams-rgb: 4 26 36;
--midnight-dreams-oklch: oklch(0.205 0.035 230.2);
}
.element {
color: var(--midnight-dreams);
background-color: hsl(199 80% 8%);
border-color: oklch(0.205 0.035 230.2);
}Tailwind CSS v4
@theme {
--color-midnight-dreams: #041a24;
--color-midnight-dreams-50: #ecf7fe;
--color-midnight-dreams-100: #ddeaf2;
--color-midnight-dreams-200: #c6d7e1;
--color-midnight-dreams-300: #a7bbc6;
--color-midnight-dreams-400: #8aa3af;
--color-midnight-dreams-500: #6f8b99;
--color-midnight-dreams-600: #5e7681;
--color-midnight-dreams-700: #4b5e68;
--color-midnight-dreams-800: #36454c;
--color-midnight-dreams-900: #253035;
--color-midnight-dreams-950: #131c20;
}SCSS
$midnight-dreams: #041a24;
$midnight-dreams-rgb: 4, 26, 36;
$midnight-dreams-light: mix(#fff, $midnight-dreams, 20%);
$midnight-dreams-dark: mix(#000, $midnight-dreams, 20%);
.element {
color: $midnight-dreams;
box-shadow: 0 0 0 2px rgba($midnight-dreams, 0.35);
}