Web Safe Color

Copy-ready color values

HEX#0000CC
RGBrgb(0, 0, 204)
HSLhsl(240, 100%, 40%)
HSVhsv(240, 100%, 80%)
CMYK approx.cmyk(100, 100, 0, 20)

Color value table

FormatValueCopy
HEX#0000CC
RGBrgb(0, 0, 204)
HSLhsl(240, 100%, 40%)
HSVhsv(240, 100%, 80%)
CMYK approx.cmyk(100, 100, 0, 20)
CSS keyword0000cc

Contrast and classification

DarkLightness11.22:1Contrast with white1.87:1Contrast with blackBlue / CyanColor family

Shade and tint preview

White 10%
#1A1AD1

White 30%
#4D4DDB

White 70%
#B3B3F0

White 90%
#E6E6FA

Black 10%
#0000B8

Black 30%
#00008F

Black 70%
#00003D

Black 90%
#000014

Harmony palettes

Complementary

#FFFF33
#FFFF64

Analogous

#0000B4
#0018B4

Triadic

#00CC00
#CC0000

Split complementary

#FFFF58
#D1D12A

Using 0000cc

0000cc 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-0000cc: #0000cc;
}

.button-primary {
  background: var(--color-0000cc);
  color: #ffffff;
}

$0000cc: #0000cc;

// Tailwind arbitrary value
class="bg-[#0000cc] text-white"