Royal color: hex code #0C1793

#0C1793 rgb(12, 23, 147)
Shades of blue

Royal has the hex code #0C1793. It is a dark, vivid blue.

In the RGB color model it is made of 4.7% red, 9% green and 57.6% blue (12, 23, 147).

Its hue angle is 235°, with 85% saturation and 31% lightness. For print, the CMYK equivalent is 92% cyan, 84% magenta, 0% yellow and 42% black.

White text is the more readable choice on this background (contrast 13.47:1).

Royal (#0C1793) color codes

HEX#0C1793
RGBrgb(12, 23, 147)
RGB percentrgb(4.7%, 9%, 57.6%)
HSLhsl(235, 85%, 31%)
HSV / HSBhsv(235, 92%, 58%)
CMYKcmyk(92%, 84%, 0%, 42%)
CIE LABlab(19.21, 44.2, -66.23)
CIE LCHlch(19.21, 79.62, 303.72)
CIE XYZxyz(5.723, 2.797, 27.836)
Decimal792467
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with Royal, 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 #0C1793RatioAAAAAAA large
Sample text1.56:1FailFailFail
Sample text13.47:1PassPassPass
#0C1793 as text onRatioAAAAAAA large
Sample text13.47:1PassPassPass
Sample text1.56:1FailFailFail

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 #0C1793 looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #0c1793; }
.text { color: #0c1793; }
.border { border: 2px solid #0c1793; }
.transparent { background-color: rgb(12 23 147 / 50%); }
.gradient { background: linear-gradient(to right, #0c1793, #450c93); }
Background
Text color
Border

Similar colors

See #0C1793 on its hex code page

Questions

What color is #0C1793?
#0C1793 is a dark, vivid blue known as Royal. It belongs to the blue family of colors.
What is the RGB value of Royal?
The RGB value is 12, 23, 147: 12 red, 23 green and 147 blue on a 0 to 255 scale.
What is the complementary color of Royal?
The complementary color is #93880C, found by rotating the hue 180° on the color wheel.
Is black or white text better on #0C1793?
White text. Black text has a contrast ratio of 1.56:1 and white text 13.47:1. WCAG asks for at least 4.5:1 for normal text.