#0C0CE4 color
The hex color #0C0CE4 is a vivid blue.
In the RGB color model it is made of 4.7% red, 4.7% green and 89.4% blue (12, 12, 228).
Its hue angle is 240°, with 90% saturation and 47% lightness. For print, the CMYK equivalent is 95% cyan, 95% magenta, 0% yellow and 11% black.
The closest named color is Pure Blue (#0203E2), a difference of 0.8 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 9.6:1).
#0C0CE4 color codes
| HEX | #0C0CE4 | |
|---|---|---|
| RGB | rgb(12, 12, 228) | |
| RGB percent | rgb(4.7%, 4.7%, 89.4%) | |
| HSL | hsl(240, 90%, 47%) | |
| HSV / HSB | hsv(240, 95%, 89%) | |
| CMYK | cmyk(95%, 95%, 0%, 11%) | |
| CIE LAB | lab(29.26, 70.72, -97.63) | |
| CIE LCH | lch(29.26, 120.55, 305.92) | |
| CIE XYZ | xyz(14.282, 5.941, 73.778) | |
| Decimal | 789732 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #0C0CE4, based on their position on the color wheel.
Complementary
The color opposite on the color wheel (180°). Strongest contrast.
Analogous
Neighbors 30° either side. Calm, natural combinations.
Split complementary
The two colors next to the complement (150° and 210°).
Triadic
Three colors evenly spaced, 120° apart.
Tetradic (square)
Four colors 90° apart.
Shades, tints and tones
Shades (darker, mixed with black)
Tints (lighter, mixed with white)
Tones (mixed with gray)
Contrast and accessibility
| Text on #0C0CE4 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.19:1 | Fail | Fail | Fail |
| Sample text | 9.6:1 | Pass | Pass | Pass |
| #0C0CE4 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 9.6:1 | Pass | Pass | Pass |
| Sample text | 2.19:1 | Fail | Fail | Fail |
WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.
Color blindness simulation
How #0C0CE4 looks to people with the most common types of color vision deficiency.
#0050e9Protanopia
no red cones#0039e1Deuteranopia
no green cones#006086Tritanopia
no blue cones#454545Achromatopsia
no color vision
CSS examples
.background { background-color: #0c0ce4; }
.text { color: #0c0ce4; }
.border { border: 2px solid #0c0ce4; }
.transparent { background-color: rgb(12 12 228 / 50%); }
.gradient { background: linear-gradient(to right, #0c0ce4, #780ce4); }
Similar colors
#0203e2Pure Blue#0000eeHyperlink Blue#150aecBurning Ultrablue#0011eeMidsummer Nights#0022ddBrutally Blue#1f22d2Lapis on Neptune#1c1cf0Bluebonnet#0020efBlue Overdose
Closest common color name: Blue.
Questions
- What color is #0C0CE4?
- #0C0CE4 is a vivid blue, closest to the named color Pure Blue. It belongs to the blue family of colors.
- What is the RGB value of #0C0CE4?
- The RGB value is 12, 12, 228: 12 red, 12 green and 228 blue on a 0 to 255 scale.
- What is the complementary color of #0C0CE4?
- The complementary color is #E4E40C, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #0C0CE4?
- White text. Black text has a contrast ratio of 2.19:1 and white text 9.6:1. WCAG asks for at least 4.5:1 for normal text.