#0C123F color
The hex color #0C123F is a very dark, moderate blue.
In the RGB color model it is made of 4.7% red, 7.1% green and 24.7% blue (12, 18, 63).
Its hue angle is 233°, with 68% saturation and 15% lightness. For print, the CMYK equivalent is 81% cyan, 71% magenta, 0% yellow and 75% black.
The closest named color is Deadly Depths (#111144), a difference of 1.8 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 17.89:1).
#0C123F color codes
| HEX | #0C123F | |
|---|---|---|
| RGB | rgb(12, 18, 63) | |
| RGB percent | rgb(4.7%, 7.1%, 24.7%) | |
| HSL | hsl(233, 68%, 15%) | |
| HSV / HSB | hsv(233, 81%, 25%) | |
| CMYK | cmyk(81%, 71%, 0%, 75%) | |
| CIE LAB | lab(7.85, 15.67, -29.54) | |
| CIE LCH | lch(7.85, 33.43, 297.94) | |
| CIE XYZ | xyz(1.265, 0.87, 4.803) | |
| Decimal | 791103 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #0C123F, 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 #0C123F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.17:1 | Fail | Fail | Fail |
| Sample text | 17.89:1 | Pass | Pass | Pass |
| #0C123F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 17.89:1 | Pass | Pass | Pass |
| Sample text | 1.17: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 #0C123F looks to people with the most common types of color vision deficiency.
#001a40Protanopia
no red cones#00153eDeuteranopia
no green cones#001e26Tritanopia
no blue cones#171717Achromatopsia
no color vision
CSS examples
.background { background-color: #0c123f; }
.text { color: #0c123f; }
.border { border: 2px solid #0c123f; }
.transparent { background-color: rgb(12 18 63 / 50%); }
.gradient { background: linear-gradient(to right, #0c123f, #200c3f); }
Similar colors
#111144Deadly Depths#071037Infinite Night#000435Oblivion#000b44Storm#1c1e4dFly-by-Night#03012dMidnight#00022eIllicit Darkness#211d49Azulado
Closest common color name: Oxford Blue.
Questions
- What color is #0C123F?
- #0C123F is a very dark, moderate blue, closest to the named color Deadly Depths. It belongs to the black family of colors.
- What is the RGB value of #0C123F?
- The RGB value is 12, 18, 63: 12 red, 18 green and 63 blue on a 0 to 255 scale.
- What is the complementary color of #0C123F?
- The complementary color is #3F390C, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #0C123F?
- White text. Black text has a contrast ratio of 1.17:1 and white text 17.89:1. WCAG asks for at least 4.5:1 for normal text.