Nearest named color · #040F4D
#040F4D
Nearest named color: Interstellar Blue
#040F4D (rgb(4 15 77), hsl(231 90% 16%), oklch(0.218 0.113 266.1)) is closest to the named color Interstellar Blue. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.
#040F4D
oklch(0.218 0.113 266.1)
Color conversions
- HEX
- #040f4d
- RGB
- rgb(4 15 77)
- HSL
- hsl(231 90% 16%)
- HWB
- hwb(231 2% 70%)
- OKLCH
- oklch(0.218 0.113 266.1)
- OKLab
- oklab(0.218 -0.008 -0.113)
- CIE Lab
- lab(7.4 18.1 -39.99)
- LCH
- lch(7.4 43.89 294.3)
- CMYK
- cmyk(95% 81% 0% 70%)
Tints · Shades · Tones
Tints
- 15275F
- 2A3E70
- 415482
- 5A6B94
- 7382A6
- 8D9AB7
- A9B3C9
- C5CCDB
- E2E5ED
Shades
- 030B42
- 020837
- 01052C
- 010322
- 000218
- 00010F
- 000007
- 000002
- 000000
Tones
- 0C1D53
- 172859
- 23335E
- 2F3E64
- 3C4969
- 49546E
- 565F73
- 646A77
- 72757C
Color harmonies
Complementary +180°
- 040F4D
Interstellar Blue
- 231800
≈ Cannon Black
Analogous -30° +30°
- 040F4D
Interstellar Blue
- 001D2D
≈ Oxford by Night
- 210247
≈ Your Darkness
Triadic +120° +240°
- 040F4D
Interstellar Blue
- 390002
≈ Dark Maroon
- 002205
≈ Rainforest Nights
Split-complementary +150° +210°
- 040F4D
Interstellar Blue
- 2C1200
≈ Shadow Play
- 191D00
≈ Yuzu Soy
Tetradic +90° +180° +270°
- 040F4D
Interstellar Blue
- 36001B
≈ Rhodophobia
- 231800
≈ Cannon Black
- 002019
≈ Stellar Explorer
Contrast & accessibility
Ag
AAAOn white
WCAG 17.78:1 · APCA Lc 104
Ag
FailOn black
WCAG 1.18:1 · APCA Lc 0
Best text color: #FFFFFF
WCAG 17.78:1 (AAA) · APCA Lc 104
Contrast pairs
Code snippets
CSS
:root {
--interstellar-blue: #040f4d;
--interstellar-blue-rgb: 4 15 77;
--interstellar-blue-oklch: oklch(0.218 0.113 266.1);
}
.element {
color: var(--interstellar-blue);
background-color: hsl(231 90% 16%);
border-color: oklch(0.218 0.113 266.1);
}Tailwind CSS v4
@theme {
--color-interstellar-blue: #040f4d;
--color-interstellar-blue-50: #e7f5ff;
--color-interstellar-blue-100: #d8e7ff;
--color-interstellar-blue-200: #c0d3ff;
--color-interstellar-blue-300: #9fb6f2;
--color-interstellar-blue-400: #7f9ce2;
--color-interstellar-blue-500: #6383d1;
--color-interstellar-blue-600: #546fb0;
--color-interstellar-blue-700: #43598e;
--color-interstellar-blue-800: #2e4169;
--color-interstellar-blue-900: #1f2d4a;
--color-interstellar-blue-950: #0f1a31;
}SCSS
$interstellar-blue: #040f4d;
$interstellar-blue-rgb: 4, 15, 77;
$interstellar-blue-light: mix(#fff, $interstellar-blue, 20%);
$interstellar-blue-dark: mix(#000, $interstellar-blue, 20%);
.element {
color: $interstellar-blue;
box-shadow: 0 0 0 2px rgba($interstellar-blue, 0.35);
}