Ultramarine color: hex code #120A8F

#120A8F rgb(18, 10, 143)
Shades of blue

Ultramarine has the hex code #120A8F. It is a dark, vivid blue.

In the RGB color model it is made of 7.1% red, 3.9% green and 56.1% blue (18, 10, 143).

Its hue angle is 244°, with 87% saturation and 30% lightness. For print, the CMYK equivalent is 87% cyan, 93% magenta, 0% yellow and 44% black.

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

Ultramarine (#120A8F) color codes

HEX#120A8F
RGBrgb(18, 10, 143)
RGB percentrgb(7.1%, 3.9%, 56.1%)
HSLhsl(244, 87%, 30%)
HSV / HSBhsv(244, 93%, 56%)
CMYKcmyk(87%, 93%, 0%, 44%)
CIE LABlab(17.12, 48.42, -67.21)
CIE LCHlch(17.12, 82.84, 305.77)
CIE XYZxyz(5.314, 2.328, 26.151)
Decimal1182351
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with Ultramarine, 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 #120A8FRatioAAAAAAA large
Sample text1.47:1FailFailFail
Sample text14.33:1PassPassPass
#120A8F as text onRatioAAAAAAA large
Sample text14.33:1PassPassPass
Sample text1.47: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 #120A8F looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #120a8f; }
.text { color: #120a8f; }
.border { border: 2px solid #120a8f; }
.transparent { background-color: rgb(18 10 143 / 50%); }
.gradient { background: linear-gradient(to right, #120a8f, #550a8f); }
Background
Text color
Border

Similar colors

See #120A8F on its hex code page

Questions

What color is #120A8F?
#120A8F is a dark, vivid blue known as Ultramarine. It belongs to the blue family of colors.
What is the RGB value of Ultramarine?
The RGB value is 18, 10, 143: 18 red, 10 green and 143 blue on a 0 to 255 scale.
What is the complementary color of Ultramarine?
The complementary color is #878F0A, found by rotating the hue 180° on the color wheel.
Is black or white text better on #120A8F?
White text. Black text has a contrast ratio of 1.47:1 and white text 14.33:1. WCAG asks for at least 4.5:1 for normal text.