What is hex #0200CC color?

 
The hex code #0200CC is closest to the named color Medium Blue (#0000CD).
In professional design frameworks, this hue is considered a highly vibrant and energetic tone. It is perfect for drawing attention to critical elements like call-to-action buttons, highlights, or modern branding.

From a technical standpoint, this color is composed of 1% red, 0% green and 80% blue, resulting in rgb(2, 0, 204) and hsl(241, 100%, 40%).
For print media and manufacturing layout, the CMYK equivalent is (99%, 100%, 0%, 20%).
In the HSV/HSB scale, #0200CC features a hue of 241°, 100% saturation, and 80% brightness.

Hex #0200CC Color Codes & Conversions

Closest Named Color
Medium Blue (#0000CD)
Hex Code #0200CC
Hex8 (RGBA Hex) #0200CCFF
RGB (CSS) rgb(2, 0, 204)
RGBA (CSS) rgba(2, 0, 204, 1)
HSL (CSS) hsl(241, 100%, 40%)
HSLA (CSS) hsla(241, 100%, 40%, 1)
HSV / HSB (241°, 100%, 80%)
CMYK Values (99%, 100%, 0%, 20%)
OKLCH (Modern CSS) oklch(38.2% 0.264 264.3)
CIE-LAB (D65) 24.86, 66.94, -91.10
CIE XYZ 10.92, 4.37, 57.38
Decimal / Binary 131276
00000010 00000000 11001100

Closest Standards & Equivalents

Closest Web Safe
#0000CC
Inverse Color
#FDFF33
Complementary Color
#CACC00
Closest Pantone®
Pantone Blue 072 C
Closest RAL
RAL 5005 [Signal blue]

#0200CC Grayscale Equivalents

Average
#454545
Lightness (Desaturation)
#666666
Weighted (BT601)
#181818
Luma (BT709)
#0F0F0F

WCAG 2.1 Color Contrast & Accessibility

Check how #0200CC complies with web accessibility standards (WCAG AA & AAA) for typography. Need to test against another custom color? Use our interactive contrast checker.

White Text on #0200CC

Sample preview of readable typography on top of #0200CC.

Contrast Ratio: 11.2:1
AA Pass AAA Pass

Black Text on #0200CC

Sample preview of readable typography on top of #0200CC.

Contrast Ratio: 1.87:1
AA Fail AAA Fail

HTML / CSS Live Previews & Snippets for #0200CC

Preview #0200CC in real UI elements and copy ready-to-use CSS rules.

Background Preview
background-color: #0200CC;
Typography Color Preview
color: #0200CC;
Border & Shadow Preview
border: 2px solid #0200CC;
CSS Custom Properties & Gradient
:root {
  --color-primary: #0200CC;
  --color-primary-rgb: 2, 0, 204;
  --color-complementary: #CACC00;
}
.btn-accent {
  background-color: #0200CC;
  color: #ffffff;
}

Hex #0200CC Color Palettes

Complementary Palette

The complementary color of #0200CC is #CACC00. Opposite on the color wheel, placing these two colors next to each other creates the strongest visual contrast.

Analogous Palette

The analogous color scheme of #0200CC pairs with #0064CC and #6800CC, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.

Split-Complementary Palette

The split-complementary scheme of #0200CC pairs with #64CC00 and #CC6800, delivering strong contrast while remaining easier to balance than a direct complement.

Triadic Palette

The triadic color scheme of #0200CC uses #00CC01 and #CC0100, spaced 120° apart for balanced, high-energy contrast.

Tetradic Palette

The tetradic color scheme of #0200CC combines #CC0100, #CACC00 and #00CACC around the color wheel for rich multi-accent UI systems.

Square Palette

The square color scheme of #0200CC pairs with #CC0064, #CACC00 and #00CC68 spaced evenly at 90° intervals.

Tints, Tones & Shades of Hex #0200CC

Tints

Tints are created by mixing #0200CC with white, producing lighter variations.

Tones

Tones are created by mixing #0200CC with gray, softening saturation.

Shades

Shades result from mixing #0200CC with black, creating deeper variations.

Hex #0200CC in Programming & CSS Frameworks

Copy the exact syntax for #0200CC in CSS, Tailwind, Java, Python, .NET, Swift, or Kotlin:

HTML / CSS #0200CC
Tailwind CSS bg-[#0200CC] text-[#0200CC]
Java (AWT) new Color(2,0,204);
Python Color("#0200CC")
.NET (C#) Color.FromArgb(255, 2,0,204);
Swift / iOS UIColor(red: 0.01, green: 0, blue: 0.8, alpha: 1)
Kotlin / Android Color.rgb(2, 0, 204)