#12004C color

#12004C rgb(18, 0, 76)
Shades of black

The hex color #12004C is a very dark, vivid violet.

In the RGB color model it is made of 7.1% red, 0% green and 29.8% blue (18, 0, 76).

Its hue angle is 254°, with 100% saturation and 15% lightness. For print, the CMYK equivalent is 76% cyan, 100% magenta, 0% yellow and 70% black.

The closest named color is Ravenclaw (#0A0555), a difference of 2.1 ΔE, a small difference.

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

#12004C color codes

HEX#12004C
RGBrgb(18, 0, 76)
RGB percentrgb(7.1%, 0%, 29.8%)
HSLhsl(254, 100%, 15%)
HSV / HSBhsv(254, 100%, 30%)
CMYKcmyk(76%, 100%, 0%, 70%)
CIE LABlab(5.87, 32.61, -41.95)
CIE LCHlch(5.87, 53.13, 307.86)
CIE XYZxyz(1.554, 0.65, 6.88)
Decimal1179724
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #12004C, 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 #12004CRatioAAAAAAA large
Sample text1.13:1FailFailFail
Sample text18.58:1PassPassPass
#12004C as text onRatioAAAAAAA large
Sample text18.58:1PassPassPass
Sample text1.13: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 #12004C looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #12004c; }
.text { color: #12004c; }
.border { border: 2px solid #12004c; }
.transparent { background-color: rgb(18 0 76 / 50%); }
.gradient { background: linear-gradient(to right, #12004c, #38004c); }
Background
Text color
Border

Similar colors

Closest common color name: Midnight Blue.

Questions

What color is #12004C?
#12004C is a very dark, vivid violet, closest to the named color Ravenclaw. It belongs to the black family of colors.
What is the RGB value of #12004C?
The RGB value is 18, 0, 76: 18 red, 0 green and 76 blue on a 0 to 255 scale.
What is the complementary color of #12004C?
The complementary color is #3A4C00, found by rotating the hue 180° on the color wheel.
Is black or white text better on #12004C?
White text. Black text has a contrast ratio of 1.13:1 and white text 18.58:1. WCAG asks for at least 4.5:1 for normal text.