Nearest named color · #001A5E
#001A5E
Nearest named color: Midnight Melancholia
#001A5E (rgb(0 26 94), hsl(223 100% 18%), oklch(0.257 0.125 262.6)) is closest to the named color Midnight Melancholia. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.
#001A5E
oklch(0.257 0.125 262.6)
Color conversions
- HEX
- #001a5e
- RGB
- rgb(0 26 94)
- HSL
- hsl(223 100% 18%)
- HWB
- hwb(223 0% 63%)
- OKLCH
- oklch(0.257 0.125 262.6)
- OKLab
- oklab(0.257 -0.016 -0.124)
- CIE Lab
- lab(12.08 16.31 -43.82)
- LCH
- lch(12.08 46.75 290.4)
- CMYK
- cmyk(100% 72% 0% 63%)
Tints · Shades · Tones
Tints
- 14316E
- 2B477F
- 435D8F
- 5B739F
- 7589AF
- 8FA0BF
- AAB7CF
- C6CFDF
- E2E7EF
Shades
- 001551
- 001044
- 000C37
- 00072B
- 00041F
- 000214
- 00010A
- 000003
- 000000
Tones
- 0A2662
- 173167
- 233B6B
- 30456E
- 3D4F72
- 4A5975
- 576378
- 646C7B
- 72767E
Color harmonies
Complementary +180°
- 001A5E
Midnight Melancholia
- 302000
≈ Black Swan
Analogous -30° +30°
- 001A5E
Midnight Melancholia
- 002739
≈ Murky Depths
- 290B58
≈ Praise of Shadow
Triadic +120° +240°
- 001A5E
Midnight Melancholia
- 4A0009
≈ Brandywine
- 002D00
≈ PCB Green
Split-complementary +150° +210°
- 001A5E
Midnight Melancholia
- 3B1800
≈ American Bronze
- 242600
≈ Liquorice Root
Tetradic +90° +180° +270°
- 001A5E
Midnight Melancholia
- 460028
≈ Blaze It Dark Magenta
- 302000
≈ Black Swan
- 002B21
≈ Bush
Contrast & accessibility
Ag
AAAOn white
WCAG 16.03:1 · APCA Lc 102
Ag
FailOn black
WCAG 1.30:1 · APCA Lc 0
Best text color: #FFFFFF
WCAG 16.03:1 (AAA) · APCA Lc 102
Contrast pairs
Code snippets
CSS
:root {
--midnight-melancholia: #001a5e;
--midnight-melancholia-rgb: 0 26 94;
--midnight-melancholia-oklch: oklch(0.257 0.125 262.6);
}
.element {
color: var(--midnight-melancholia);
background-color: hsl(223 100% 18%);
border-color: oklch(0.257 0.125 262.6);
}Tailwind CSS v4
@theme {
--color-midnight-melancholia: #001a5e;
--color-midnight-melancholia-50: #e4f6ff;
--color-midnight-melancholia-100: #d3e8ff;
--color-midnight-melancholia-200: #bad4ff;
--color-midnight-melancholia-300: #98b7f8;
--color-midnight-melancholia-400: #769ee8;
--color-midnight-melancholia-500: #5884d8;
--color-midnight-melancholia-600: #4b70b6;
--color-midnight-melancholia-700: #3c5993;
--color-midnight-melancholia-800: #28426d;
--color-midnight-melancholia-900: #1b2d4d;
--color-midnight-melancholia-950: #0b1a33;
}SCSS
$midnight-melancholia: #001a5e;
$midnight-melancholia-rgb: 0, 26, 94;
$midnight-melancholia-light: mix(#fff, $midnight-melancholia, 20%);
$midnight-melancholia-dark: mix(#000, $midnight-melancholia, 20%);
.element {
color: $midnight-melancholia;
box-shadow: 0 0 0 2px rgba($midnight-melancholia, 0.35);
}