It is not recommended to use override classnames custom css class We can override the inbuilt selectors in CSS for color, However, this will affect other places where these classnames are being used. Here is an example using navbar-light/dark and bg-light/dark So we can use the following approaches to change colors for navigation bg-info - information color is updated in background.bg-warning - warning color is updated in the background.bg-danger - updates background to danger color.bg-success - change background to success color.bg-secondary - change background color to secondary.You can set the background color of an element to blue by using the CSS.
CSS COLOR CODES FOR DARK BLUE CODE
Background color changeīootstrap 4.5 provides the following inbuilt classnames we can use in the navigation bar You could also place the CSS code into a external style sheet. navbar-dark It changes text color from light to dark and the background color is dark.navbar-light This is used to change the text color to dark from light and background colors are light only.Navigation bar text color changeīy default navigation bar is transparent, which means text color is synced with background-colorīootstrap provides two inbuilt selectors for text colors. In bootstrap, Changing the color of navigation is not that easy, as it contains brand, anchor links inside it.īootstrap classes are LESS based styles, which you need to know the parent and child classes used inside the navigation bar. It has a hue angle of 212.1 degrees, a saturation of 44.7 and a lightness of 63.1. This color has an approximate wavelength of 464.2 nm. In the HSL color space 00008b has a hue of 240 (degrees), 100 saturation and 27 lightness. In the RGB color model 00008b is comprised of 0 red, 0 green and 54.51 blue. Whereas in a CMYK color space, it is composed of 41.4 cyan, 22.2 magenta, 0 yellow and 20.4 black. The color darkblue / Dark blue with hexadecimal color code 00008b is a medium dark shade of blue-magenta. The default background color is white and the color is blue. In a RGB color space, hex 779ecb (also known as Dark pastel blue) is composed of 46.7 red, 62 green and 79.6 blue.