#181787 color
The hex color #181787 is a dark, moderate blue.
In the RGB color model it is made of 9.4% red, 9% green and 52.9% blue (24, 23, 135).
Its hue angle is 241°, with 71% saturation and 31% lightness. For print, the CMYK equivalent is 82% cyan, 83% magenta, 0% yellow and 47% black.
The closest named color is Galactic Cruise (#111188), a difference of 1.2 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 13.9:1).
#181787 color codes
| HEX | #181787 | |
|---|---|---|
| RGB | rgb(24, 23, 135) | |
| RGB percent | rgb(9.4%, 9%, 52.9%) | |
| HSL | hsl(241, 71%, 31%) | |
| HSV / HSB | hsv(241, 83%, 53%) | |
| CMYK | cmyk(82%, 83%, 0%, 47%) | |
| CIE LAB | lab(18.17, 40.75, -60.45) | |
| CIE LCH | lch(18.17, 72.9, 303.99) | |
| CIE XYZ | xyz(5.055, 2.556, 23.144) | |
| Decimal | 1578887 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #181787, 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 #181787 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.51:1 | Fail | Fail | Fail |
| Sample text | 13.9:1 | Pass | Pass | Pass |
| #181787 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.9:1 | Pass | Pass | Pass |
| Sample text | 1.51: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 #181787 looks to people with the most common types of color vision deficiency.
#00328aProtanopia
no red cones#002685Deuteranopia
no green cones#003b50Tritanopia
no blue cones#2c2c2cAchromatopsia
no color vision
CSS examples
.background { background-color: #181787; }
.text { color: #181787; }
.border { border: 2px solid #181787; }
.transparent { background-color: rgb(24 23 135 / 50%); }
.gradient { background: linear-gradient(to right, #181787, #501787); }
Similar colors
#111188Galactic Cruise#221188Nightly Expedition#0c1793Royal#120a8fUltramarine#301885Indiglow#001199Space Exploration#220088Orbital Kingdom#002299Space Dust
Questions
- What color is #181787?
- #181787 is a dark, moderate blue, closest to the named color Galactic Cruise. It belongs to the blue family of colors.
- What is the RGB value of #181787?
- The RGB value is 24, 23, 135: 24 red, 23 green and 135 blue on a 0 to 255 scale.
- What is the complementary color of #181787?
- The complementary color is #868717, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #181787?
- White text. Black text has a contrast ratio of 1.51:1 and white text 13.9:1. WCAG asks for at least 4.5:1 for normal text.