HTML color codes for blue - hexadecimal + RGB

Discover all HTML codes for the color blue - hexadecimal, rgb, hsl, hsv, and cmyk, as well as different combinations, schemes, temperatures, hues, and types of blue color.

#0000ff

códigos del color blue

Complementary color of blue:

The complementary color of a color is the opposite of it on the color wheel (chromatic circle)

#ffff00

Monochromatic scheme of the color blue

#00008e
#0000ad
#0000cd
#0000ee
#481eff
#7e43ff
#a463ff
#c482ff

This scheme is based on the color blue and is composed of different hues, tones, and shades, both dark and light.

HTML and CSS codes for the color blue

formatcode
hex#0000ff
rgbrgb(0,0,255)
hslhsl(240,100%,50%)
cmykcmyk(100, 100, 0, 0)
hsvhsv(240, 100%, 100%)

What is the blue color in RGB format?

The blue color in RGB format is composed of (0 in the red channel), (0 in the green channel), and (255 in the blue channel).

What is the blue color in CMYK format?

It is composed of (100%) cyan, (100%) magenta, (0%) yellow, and (0%) black / key.

What is the composition of the blue color in HSL?

It is composed of (240°) hue, (100%) saturation, and (50%) lightness.

What is the blue color in HSV format?

The blue color in HSV format is composed of (240°) hue, (100%) saturation, and (100%) value.

Analogous scheme of the color blue

Analogous colors are obtained from the two closest colors within the color wheel.

#0000ff
#7f00ff
#007fff

Triadic scheme of the color blue

The triadic scheme is obtained from 3 colors equally spaced from each other within the color wheel

#0000ff
#ff0000
#00ff00

Tetradic scheme of the color blue

This color scheme is obtained by using two pairs of opposing colors on the color wheel in a rectangular shape.

#0000ff
#ff0080
#ffff00
#00ff80

Split complementary scheme of the color blue

This color scheme is obtained by using two pairs of opposing colors on the color wheel in a rectangular shape.

#0000ff
#ff00cc
#66ff00

Tints of the color blue

Tints are obtained from the base color blue up to reaching white, finding in between shades of pastel colors.

#0000ff
#3333ff
#6666ff
#9999ff
#ccccff
#ffffff

Shades of the color blue

These shades are obtained from the base color blue up to reaching black.

#0000ff
#0000cc
#000099
#000066
#000033
#000000

Check the contrast of the color blue.

You can now validate the contrast relationship of the color blue, whether using it as a background color or as a text color.

Change the text color.
Contrast ratio: 8.59

Contrast ratio test of the color blue as a background

Change the background color
Contrast ratio: 1.82

Contrast ratio test of the color blue as text.

How to implement the color blue in HTML and CSS

Here are examples of code to use the 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 blue in HTML - CSS.

To set the background color, you can use inline styles or apply them in a CSS stylesheet

<div style="background:#0000ff;"> Color blue as the background of a div.</div>
/* Color blue as the background of the body tag with CSS. */
body {
background: #0000ff;
}

To set the text color blue in HTML - CSS.

To set the text color, you can use inline styles or apply them in a CSS stylesheet.

<p style="color:#0000ff;"> Color blue as the text color.</p>
p {
color:#0000ff ;
}

Here are more colors with all their codes