Nearest named color · #051A24
#051A24
Nearest named color: Midnight Dreams
#051A24 (rgb(5 26 36), hsl(199 76% 8%), oklch(0.206 0.034 231.4)) is closest to the named color Midnight Dreams. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.
#051A24
oklch(0.206 0.034 231.4)
Color conversions
- HEX
- #051a24
- RGB
- rgb(5 26 36)
- HSL
- hsl(199 76% 8%)
- HWB
- hwb(199 2% 86%)
- OKLCH
- oklch(0.206 0.034 231.4)
- OKLab
- oklab(0.206 -0.021 -0.026)
- CIE Lab
- lab(7.96 -5.38 -9.62)
- LCH
- lch(7.96 11.02 240.8)
- CMYK
- cmyk(86% 28% 0% 86%)
Tints · Shades · Tones
Tints
- 1A2D37
- 30414A
- 47565F
- 5F6C74
- 77838A
- 919BA0
- ACB3B7
- C7CCCE
- E3E5E6
Shades
- 04151E
- 031018
- 020C12
- 01070C
- 010407
- 000204
- 000102
- 000000
- 000000
Tones
- 10232C
- 1C2D35
- 28363E
- 344047
- 404A50
- 4C5559
- 595F63
- 656A6C
- 737576
Color harmonies
Complementary +180°
- 051A24
Midnight Dreams
- 241308
≈ Severely Burnt Toast
Analogous -30° +30°
- 051A24
Midnight Dreams
- 011C1E
≈ Black Stallion
- 0F1727
≈ Sambucus
Triadic +120° +240°
- 051A24
Midnight Dreams
- 231119
≈ Italian Roast
- 181906
≈ Noir Mystique
Split-complementary +150° +210°
- 051A24
Midnight Dreams
- 251110
≈ Italian Roast
- 1F1605
≈ Noir Mystique
Tetradic +90° +180° +270°
- 051A24
Midnight Dreams
- 1E1221
≈ Inside
- 241308
≈ Severely Burnt Toast
- 0E1B0C
≈ Pinch of Pepper
Contrast & accessibility
Ag
AAAOn white
WCAG 17.80:1 · APCA Lc 104
Ag
FailOn black
WCAG 1.17:1 · APCA Lc 0
Best text color: #FFFFFF
WCAG 17.80:1 (AAA) · APCA Lc 104
Contrast pairs
Code snippets
CSS
:root {
--midnight-dreams: #051a24;
--midnight-dreams-rgb: 5 26 36;
--midnight-dreams-oklch: oklch(0.206 0.034 231.4);
}
.element {
color: var(--midnight-dreams);
background-color: hsl(199 76% 8%);
border-color: oklch(0.206 0.034 231.4);
}Tailwind CSS v4
@theme {
--color-midnight-dreams: #051a24;
--color-midnight-dreams-50: #ecf7fd;
--color-midnight-dreams-100: #ddeaf2;
--color-midnight-dreams-200: #c7d7e1;
--color-midnight-dreams-300: #a7bbc6;
--color-midnight-dreams-400: #8ba2af;
--color-midnight-dreams-500: #708b99;
--color-midnight-dreams-600: #5f7581;
--color-midnight-dreams-700: #4c5e67;
--color-midnight-dreams-800: #37454c;
--color-midnight-dreams-900: #253035;
--color-midnight-dreams-950: #141c20;
}SCSS
$midnight-dreams: #051a24;
$midnight-dreams-rgb: 5, 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);
}