#0000CC color

#0000CC is rgb(0, 0, 204) in RGB and hsl(240, 100%, 40%) in HSL. It is exactly the CSS color mediumblue. Use white text on it (contrast 11.22:1).

#0000CCindigo
HEX#0000CC
Short HEX#00C
RGBrgb(0, 0, 204)
RGB percentrgb(0%, 0%, 80%)
HSLhsl(240, 100%, 40%)
HSV / HSBhsv(240, 100%, 80%)
CMYKcmyk(100%, 100%, 0%, 20%)

Edit in the color converter → · Check contrast → · Shades →

About #0000CC

#0000CC is a medium-dark, vivid indigo with a hue angle of 240°. It belongs to the blue family and reads as a cool color. In the RGB model blue is the strongest channel at 204 (80%) and red the weakest at 0 (0%). Colors like this are typically used for buttons, links, badges and other accents that need to stand out.

Color conversions

HEX#0000CC
Short HEX#00C
RGBrgb(0, 0, 204)
RGB percentrgb(0%, 0%, 80%)
HSLhsl(240, 100%, 40%)
HSV / HSBhsv(240, 100%, 80%)
CMYKcmyk(100%, 100%, 0%, 20%)
CIELAB (D65)lab(24.8 66.9 -91.2)
Decimal204
Binary00000000 00000000 11001100

HEX 00 00 CC → 0, 0, 204 (each pair is a base-16 number: 0×16 + 0 = 0)

Color harmonies

Harmonies rotate the HSL hue (complementary +180°, triadic ±120°, split-complementary ±150°, analogous ±30°, tetradic 90° steps) and keep saturation and lightness. Swatches link to the nearest color page.

Tints and shades of #0000CC

Tints (mixed with white)

Shades (mixed with black)

Tones (mixed with gray)

Contrast and accessibility

Text on #0000CCRatioAA normalAA largeAAA normalAAA large
White text11.22:1PassPassPassPass
Black text1.87:1FailFailFailFail
White text on #0000CC
Black text on #0000CC
#0000CC text on white
#0000CC text on black

Relative luminance is 0.0436 (0 = black, 1 = white). WCAG 2 requires 4.5:1 for body text and 3:1 for large text and UI components.

Color blindness simulation

Protanopia
#0045d1

Deuteranopia
#002fc9

Tritanopia
#005477

Achromatopsia
#3b3b3b

With deuteranopia, the most common form of color blindness, this color shifts noticeably (ΔE 6.4). Do not rely on it alone to signal status; add an icon or text label. Simulation uses the Machado (2009) matrices for full dichromacy; achromatopsia shows luminance only.

Similar named colors

NameHEXΔE 2000
mediumblue#0000cd0.1
blue#0000ff6.5
darkblue#00008b8.6
navy#00008010.2

Nearby colors

CSS

.element {
  color: #0000cc;
  background-color: rgb(0, 0, 204);
  border: 1px solid hsl(240, 100%, 40%);
  box-shadow: 0 2px 8px rgb(0 0 204 / 50%);
}
:root { --brand: #0000cc; }

Frequently asked questions

What color is #0000CC?
A medium-dark vivid indigo in the blue family. Closest CSS name: mediumblue.
What is #0000CC in RGB?
rgb(0, 0, 204): red 0, green 0, blue 204.
What is the complementary color of #0000CC?
#CCCC00, found by rotating the hue 180°.