#18218E color
The hex color #18218E is a dark, moderate blue.
In the RGB color model it is made of 9.4% red, 12.9% green and 55.7% blue (24, 33, 142).
Its hue angle is 235°, with 71% saturation and 33% lightness. For print, the CMYK equivalent is 83% cyan, 77% magenta, 0% yellow and 44% black.
The closest named color is Space Dust (#002299), a difference of 1.8 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 12.75:1).
#18218E color codes
| HEX | #18218E | |
|---|---|---|
| RGB | rgb(24, 33, 142) | |
| RGB percent | rgb(9.4%, 12.9%, 55.7%) | |
| HSL | hsl(235, 71%, 33%) | |
| HSV / HSB | hsv(235, 83%, 56%) | |
| CMYK | cmyk(83%, 77%, 0%, 44%) | |
| CIE LAB | lab(20.96, 37.56, -60.21) | |
| CIE LCH | lch(20.96, 70.96, 301.96) | |
| CIE XYZ | xyz(5.801, 3.234, 25.904) | |
| Decimal | 1581454 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #18218E, 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 #18218E | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.65:1 | Fail | Fail | Fail |
| Sample text | 12.75:1 | Pass | Pass | Pass |
| #18218E as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 12.75:1 | Pass | Pass | Pass |
| Sample text | 1.65:1 | Fail | Fail | Fail |
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 #18218E looks to people with the most common types of color vision deficiency.
#003891Protanopia
no red cones#002c8cDeuteranopia
no green cones#004156Tritanopia
no blue cones#323232Achromatopsia
no color vision
CSS examples
.background { background-color: #18218e; }
.text { color: #18218e; }
.border { border: 2px solid #18218e; }
.transparent { background-color: rgb(24 33 142 / 50%); }
.gradient { background: linear-gradient(to right, #18218e, #4a188e); }
Similar colors
#002299Space Dust#082599Deepsea Kraken#002489Lost in Heaven#0c1793Royal#072688Naval Adventures#312297Gentian Blue#111188Galactic Cruise#001199Space Exploration
Closest common color name: Ultramarine.
Questions
- What color is #18218E?
- #18218E is a dark, moderate blue, closest to the named color Space Dust. It belongs to the blue family of colors.
- What is the RGB value of #18218E?
- The RGB value is 24, 33, 142: 24 red, 33 green and 142 blue on a 0 to 255 scale.
- What is the complementary color of #18218E?
- The complementary color is #8E8518, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #18218E?
- White text. Black text has a contrast ratio of 1.65:1 and white text 12.75:1. WCAG asks for at least 4.5:1 for normal text.