CSS Named Color / Web Safe Color
Copy-ready color values
HEX
#0000FFRGB
rgb(0, 0, 255)HSL
hsl(240, 100%, 50%)HSV
hsv(240, 100%, 100%)CMYK approx.
cmyk(100, 100, 0, 0)Color value table
| Format | Value | Copy |
|---|---|---|
| HEX | #0000FF | |
| RGB | rgb(0, 0, 255) | |
| HSL | hsl(240, 100%, 50%) | |
| HSV | hsv(240, 100%, 100%) | |
| CMYK approx. | cmyk(100, 100, 0, 0) | |
| CSS keyword | blue |
Contrast and classification
DarkLightness8.59:1Contrast with white2.44:1Contrast with blackBlue / CyanColor family
Shade and tint preview
White 10%#1A1AFF
White 30%#4D4DFF
White 70%#B3B3FF
White 90%#E6E6FF
Black 10%#0000E6
Black 30%#0000B3
Black 70%#00004D
Black 90%#00001A
Harmony palettes
Complementary
#FFFF00#FFFF3DAnalogous
#0000E0#001FE0Triadic
#00FF00#FF0000Split complementary
#FFFF2E#D1D100Using Blue
Blue works best when it is chosen with contrast, surrounding colors, and interface state in mind. Use the HEX value for static CSS, RGB when you need channel-level control, and HSL when adjusting lightness or saturation for hover states. The CMYK value is an approximate screen-to-print conversion, so print workflows should still rely on calibrated design software or a printer profile.
CSS, SCSS, and Tailwind examples
:root {
--color-blue: #0000ff;
}
.button-primary {
background: var(--color-blue);
color: #ffffff;
}
$blue: #0000ff;
// Tailwind arbitrary value
class="bg-[#0000ff] text-white"