HTML color codes for navy blue - hexadecimal + RGB
Discover all HTML codes for the color navy blue - hexadecimal, rgb, hsl, hsv, and cmyk, as well as different combinations, schemes, temperatures, hues, and types of navy blue color.
#252440
Complementary color of navy blue:
The complementary color of a color is the opposite of it on the color wheel (chromatic circle)
#3f4024
Monochromatic scheme of the color navy blue
This scheme is based on the color navy blue and is composed of different hues, tones, and shades, both dark and light.
HTML and CSS codes for the color navy blue
format | code |
---|---|
hex | #252440 |
rgb | rgb(37,36,64) |
hsl | hsl(243,29%,20%) |
cmyk | cmyk(43, 44, 0, 75) |
hsv | hsv(243, 44%, 26%) |
What is the navy blue color in RGB format?
The navy blue color in RGB format is composed of (37 in the red channel), (36 in the green channel), and (64 in the blue channel).
What is the navy blue color in CMYK format?
It is composed of (43%) cyan, (44%) magenta, (0%) yellow, and (75%) black / key.
What is the composition of the navy blue color in HSL?
It is composed of (243°) hue, (29%) saturation, and (20%) lightness.
What is the navy blue color in HSV format?
The navy blue color in HSV format is composed of (243°) hue, (44%) saturation, and (26%) value.
Analogous scheme of the color navy blue
Analogous colors are obtained from the two closest colors within the color wheel.
Triadic scheme of the color navy blue
The triadic scheme is obtained from 3 colors equally spaced from each other within the color wheel
Tetradic scheme of the color navy blue
This color scheme is obtained by using two pairs of opposing colors on the color wheel in a rectangular shape.
Split complementary scheme of the color navy blue
This color scheme is obtained by using two pairs of opposing colors on the color wheel in a rectangular shape.
Tints of the color navy blue
Tints are obtained from the base color navy blue up to reaching white, finding in between shades of pastel colors.
Shades of the color navy blue
These shades are obtained from the base color navy blue up to reaching black.
Check the contrast of the color navy blue.
You can now validate the contrast relationship of the color navy blue, whether using it as a background color or as a text color.
Contrast ratio test of the color navy blue as a background
Contrast ratio test of the color navy blue as text.
How to implement the color navy blue in HTML and CSS
Here are examples of code to use the navy blue on your web page. Remember that you can implement the color in HTML using color codes such as hexadecimal, RGB, or HSL, and also directly with the color name written in English (as long as it is natively supported by HTML).
Background color navy blue in HTML - CSS.
To set the background color, you can use inline styles or apply them in a CSS stylesheet
<div style="background:#252440;"> Color navy blue as the background of a div.</div>
/* Color navy blue as the background of the body tag with CSS. */body {background: #252440;}
To set the text color navy blue in HTML - CSS.
To set the text color, you can use inline styles or apply them in a CSS stylesheet.
<p style="color:#252440;"> Color navy blue as the text color.</p>
p {color:#252440 ;}