HTML color codes for royal blue - hexadecimal + RGB
Discover all HTML codes for the color royal blue - hexadecimal, rgb, hsl, hsv, and cmyk, as well as different combinations, schemes, temperatures, hues, and types of royal blue color.
#0833a2
Complementary color of royal blue:
The complementary color of a color is the opposite of it on the color wheel (chromatic circle)
#a27708
Monochromatic scheme of the color royal blue
This scheme is based on the color royal blue and is composed of different hues, tones, and shades, both dark and light.
HTML and CSS codes for the color royal blue
format | code |
---|---|
hex | #0833a2 |
rgb | rgb(8,51,162) |
hsl | hsl(224,91%,34%) |
cmyk | cmyk(96, 69, 0, 37) |
hsv | hsv(224, 96%, 64%) |
What is the royal blue color in RGB format?
The royal blue color in RGB format is composed of (8 in the red channel), (51 in the green channel), and (162 in the blue channel).
What is the royal blue color in CMYK format?
It is composed of (96%) cyan, (69%) magenta, (0%) yellow, and (37%) black / key.
What is the composition of the royal blue color in HSL?
It is composed of (224°) hue, (91%) saturation, and (34%) lightness.
What is the royal blue color in HSV format?
The royal blue color in HSV format is composed of (224°) hue, (96%) saturation, and (64%) value.
Analogous scheme of the color royal blue
Analogous colors are obtained from the two closest colors within the color wheel.
Triadic scheme of the color royal blue
The triadic scheme is obtained from 3 colors equally spaced from each other within the color wheel
Tetradic scheme of the color royal 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 royal 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 royal blue
Tints are obtained from the base color royal blue up to reaching white, finding in between shades of pastel colors.
Shades of the color royal blue
These shades are obtained from the base color royal blue up to reaching black.
Check the contrast of the color royal blue.
You can now validate the contrast relationship of the color royal blue, whether using it as a background color or as a text color.
Contrast ratio test of the color royal blue as a background
Contrast ratio test of the color royal blue as text.
How to implement the color royal blue in HTML and CSS
Here are examples of code to use the royal 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 royal blue in HTML - CSS.
To set the background color, you can use inline styles or apply them in a CSS stylesheet
<div style="background:#0833a2;"> Color royal blue as the background of a div.</div>
/* Color royal blue as the background of the body tag with CSS. */body {background: #0833a2;}
To set the text color royal blue in HTML - CSS.
To set the text color, you can use inline styles or apply them in a CSS stylesheet.
<p style="color:#0833a2;"> Color royal blue as the text color.</p>
p {color:#0833a2 ;}