Maroon Colors  ·  Color Library

Palettes / Colors / #0C1931

#0C1931 — Dark Blue

#0C1931 is a blue color we call Dark Blue, closest to the named color Black (#000000). It belongs to the blue family.

Color name

Closest CSS keyword: black (#000000) — not an exact match. CSS black gives you #000000, a different color; use #0C1931 when you need this exact shade.

Sources: common names follow widely used color-name references; CSS keywords and their hex values follow the CSS Color specification.

#0C1931 is a cool blue color associated with trust, calm and professionalism. It is deep enough for text, outlines and dark interface surfaces, and makes light colors glow next to it.

Its strongest partner is its complement #31240C; it also sits naturally between #0C2C31 and #120C31. In the palettes below you can see it working alongside real color combinations from our collection.

#0C1931 · RGB 12, 25, 49

Download PNG swatch SVG

Color values

HEX#0C1931
RGB12, 25, 49
HSL219°, 61%, 12%
HSV219°, 76%, 19%
CMYK76%, 49%, 0%, 81%
XYZ1.05, 1.00, 3.04
Yxy1.00, 0.2070, 0.1955
CIE-Lab8.95, 3.94, -17.67
Hunter Lab9.98, 1.96, -12.09

RGB & CMYK percentages

Red 5% · Green 10% · Blue 19%

Cyan 76% · Magenta 49% · Yellow 0% · Key 81%

CMYK values are unprofiled approximations for screen reference — not a print-proofing guarantee.

Previews

Sample text in #0C1931 on black
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Sample text in #0C1931 on white
Lorem ipsum dolor sit amet, consectetur adipiscing elit.

CSS code for #0C1931

.text { color: #0C1931; }
.background { background-color: #0C1931; }
.border { border: 3px solid #0C1931; }
.text-rgb { color: rgb(12, 25, 49); }
.text-hsl { color: hsl(219, 61%, 12%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #0C1931; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(12, 25, 49, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #0C1931; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(12, 25, 49, 0.8); }

HTML: <p style="color:#0C1931">Text here</p> · <div style="background-color:#0C1931">Div content here</div>

Shades of #0C1931

#0B172D#0A1529#0A1529#091325#081121#070F1D#060D19#060D19#050A15#040810

Tints of #0C1931

#142A52#1D3C77#254D98#2E60BD#4274D1#638CD9#88A8E2#A9C0EA#CEDBF3#EFF3FB

Tones of #0C1931

#0F1A2F#111B2C#141B29#171C27#191D24#1C1E21

Color harmonies

Complementary — #31240C:

Analogous:

Triadic:

Contrast & accessibility

Against white text17.51:1 AAA
Against black text1.20:1 Fails

Best text color on #0C1931: #FFFFFF.

Semi-transparent (opacity) text on #0C1931

Text set with opacity blends into the background, so its real contrast is lower than the solid ratios above. Choose a text color and an opacity to see the blended color and its true ratio:

100%
Sample heading text
Smaller body text shows the effect best.

Blended color: · Contrast against #0C1931: ·

How #0C1931 looks with color blindness

Simulated with standard Machado color-vision-deficiency matrices — useful when this color carries meaning in charts, maps or interfaces:

Protanopia · #12122BDeuteranopia · #11102ATritanopia · #0D2726

Closest design-system colors

The nearest matches in the Tailwind CSS, Material Design and Bootstrap palettes — handy when you need a framework class instead of a raw hex:

Bootstrap dark · #212529Tailwind neutral 600 · #525252Tailwind stone 600 · #57534E

Palettes with a similar color

These palettes use a close neighbour of #0C1931 rather than the exact color:

Lucky Tempest
#0C192C · #44FC95 · #65FA1D · #F957B3
Palette Ff6500
#FF6500 · #1E3E62 · #0B192C · #000000
Mellow Terrace
#0B1636 · #4CFC86 · #E748F8 · #FAFD3E
Modern Ember
#0C1A2B · #36F615 · #A3F940 · #FC9724
Palette D4ecdd
#D4ECDD · #345B63 · #152D35 · #112031
Palette 041c32
#041C32 · #04293A · #064663 · #ECB365

Similar colors

The closest colors that actually appear in our palette collection — click any to open its page:

#0C192C#0B192C#0B1636#0C1A2B#112031#041C32#111D2B#121435#111F35#09122C#0D132A#161A30

Browse neighbouring colors

← #0C1930  ·  #0C1932 →

Frequently asked questions

What color is #0C1931?

#0C1931 is Dark Blue, a blue color (RGB 12, 25, 49). Its closest standard named color is Black.

What is the RGB and HSL of #0C1931?

#0C1931 is RGB 12, 25, 49 — HSL 219°, 61%, 12% — CMYK 76%, 49%, 0%, 81%.

What colors go with #0C1931?

Its complement is #31240C; analogous partners are #0C2C31 and #120C31. It also appears in 6+ palettes in our collection.

Can I use #0C1931 for text?

White text on #0C1931 has a contrast ratio of 17.51:1 (passes WCAG AA); black text gives 1.20:1.