Nearest named color · #040D50
#040D50
Nearest named color: Interstellar Blue
#040D50 (rgb(4 13 80), hsl(233 90% 16%), oklch(0.218 0.119 266.4)) is closest to the named color Interstellar Blue. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.
#040D50
oklch(0.218 0.119 266.4)
Color conversions
- HEX
- #040d50
- RGB
- rgb(4 13 80)
- HSL
- hsl(233 90% 16%)
- HWB
- hwb(233 2% 69%)
- OKLCH
- oklch(0.218 0.119 266.4)
- OKLab
- oklab(0.218 -0.008 -0.119)
- CIE Lab
- lab(7.24 20.49 -42.32)
- LCH
- lch(7.24 47.02 295.8)
- CMYK
- cmyk(95% 84% 0% 69%)
Tints · Shades · Tones
Tints
- 142762
- 293D73
- 405485
- 596B96
- 7282A8
- 8D9AB9
- A8B3CA
- C4CCDC
- E1E5ED
Shades
- 030A44
- 020739
- 01052E
- 010324
- 00021A
- 000110
- 000007
- 000002
- 000000
Tones
- 0B1C56
- 16285B
- 223361
- 2E3E66
- 3B496B
- 485470
- 565F74
- 636A78
- 72757C
Color harmonies
Complementary +180°
- 040D50
Interstellar Blue
- 231800
≈ Cannon Black
Analogous -30° +30°
- 040D50
Interstellar Blue
- 001D2D
≈ Oxford by Night
- 220049
≈ Your Darkness
Triadic +120° +240°
- 040D50
Interstellar Blue
- 390002
≈ Dark Maroon
- 002205
≈ Rainforest Nights
Split-complementary +150° +210°
- 040D50
Interstellar Blue
- 2C1200
≈ Shadow Play
- 191D00
≈ Yuzu Soy
Tetradic +90° +180° +270°
- 040D50
Interstellar Blue
- 36001B
≈ Rhodophobia
- 231800
≈ Cannon Black
- 00201A
≈ Stellar Explorer
Contrast & accessibility
Ag
AAAOn white
WCAG 17.81:1 · APCA Lc 104
Ag
FailOn black
WCAG 1.17:1 · APCA Lc 0
Best text color: #FFFFFF
WCAG 17.81:1 (AAA) · APCA Lc 104
Contrast pairs
Code snippets
CSS
:root {
--interstellar-blue: #040d50;
--interstellar-blue-rgb: 4 13 80;
--interstellar-blue-oklch: oklch(0.218 0.119 266.4);
}
.element {
color: var(--interstellar-blue);
background-color: hsl(233 90% 16%);
border-color: oklch(0.218 0.119 266.4);
}Tailwind CSS v4
@theme {
--color-interstellar-blue: #040d50;
--color-interstellar-blue-50: #e7f5ff;
--color-interstellar-blue-100: #d7e7ff;
--color-interstellar-blue-200: #bfd3ff;
--color-interstellar-blue-300: #9eb5f5;
--color-interstellar-blue-400: #7e9ce5;
--color-interstellar-blue-500: #6182d5;
--color-interstellar-blue-600: #536eb4;
--color-interstellar-blue-700: #425890;
--color-interstellar-blue-800: #2d416c;
--color-interstellar-blue-900: #1e2d4c;
--color-interstellar-blue-950: #0e1932;
}SCSS
$interstellar-blue: #040d50;
$interstellar-blue-rgb: 4, 13, 80;
$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);
}