#0C223C Color Information

Hex color code: #0C223C

#0C223C is a dark blue color. In RGB it is (12, 34, 60), and in HSL it is (213°, 67%, 14%). It is frequently seen in web interfaces.

Try:
Color NameDark Slate Gray
HEX
#0C223C
RGB
12, 34, 60
HSL
213°, 67%, 14%
CMYK
80%, 43%, 0%, 76%

Shades

CSS Usage
color: #0C223C;
background-color: #0C223C;
border-color: #0C223C;
box-shadow: 0 0 10px #0C223C;
border: 2px solid #0C223C;
Tailwind Usage
bg-[#0C223C]
text-[#0C223C]
border-[#0C223C]
shadow-[0_0_10px_0C223C]

Generate Gradient

Gradient CSS
background: linear-gradient(90deg, #0C223C, #FF5733);

Preview in UI

Button

.btn-primary { background-color: #0C223C; color: #FFFFFF; }

Badge

New Feature
.badge { background-color: #0C223C; color: #FFFFFF; }

Text Highlight

The quick brown fox jumps over the lazy dog. highlighted text example shows how the color looks as a text highlight.

Card

Card Title

This card uses your color as a border accent.

.card-accent { border: 2px solid #0C223C; background-color: #0C223C15; }

Alert / Toast

This is an alert using your color as accent.
.alert { background-color: #0C223C20; border-left: 4px solid #0C223C; }

Link / Accent

This is a paragraph with a link using your color. The color can be applied to interactive elements.

a { color: #0C223C; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #0C223C in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

12, 34, 60

Red: 12 / Green: 34 / Blue: 60

HSL

213°, 67%, 14%

Hue: 213° / Saturation: 67% / Lightness: 14%

CMYK

80%, 43%, 0%, 76%

Cyan: 80% / Magenta: 43% / Yellow: 0% / Key: 76%

What color is #0C223C?

#0C223C is a very dark shade associated with sophistication and elegance.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #0C223C to RGB:

rgb(12, 34, 60)HEX to RGB Converter →

HEX to HSL

Convert #0C223C to HSL:

hsl(213, 67%, 14%)RGB to HSL Converter →

HEX to CMYK

Convert #0C223C to CMYK:

cmyk(80%, 43%, 0%, 76%)Color Converter →

Color Meaning and Usage

#0C223C is a dark blue color with RGB values of 12, 34, 60 and HSL of 213°, 67%, 14%. This very dark shade evokes sophistication and elegance, making it suitable for often used for branding and logos. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #0C223C is #3C260C, creating high-contrast pairings. For softer combinations, try analogous colors like #0C393C.

Use #0C223C in CSS: color: #0C223C or background-color: #0C223C. Create palettes with Color Palette Generator or check contrast with Contrast Checker.

Contrast with #0C223C

Sample text on this color - The quick brown fox jumps over the lazy dog.

Contrast Ratio: 1.31:1
WCAG AA: Fail
WCAG AAA: Fail

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #0C223C?

#0C223C is a dark blue color - a very dark shade that evokes sophistication and elegance.

What is the RGB value of #0C223C?

#0C223C in RGB is (12, 34, 60) - 12 red, 34 green, and 60 blue.

How to use #0C223C in CSS?

Use #0C223C directly in your CSS properties like color or background-color.

What colors go well with #0C223C?

#3C260C (complementary), #0C393C (analogous), and #000000 (lighter shade) work well with #0C223C.