#181B56 color
The hex color #181B56 is a dark, moderate blue.
In the RGB color model it is made of 9.4% red, 10.6% green and 33.7% blue (24, 27, 86).
Its hue angle is 237°, with 56% saturation and 22% lightness. For print, the CMYK equivalent is 72% cyan, 69% magenta, 0% yellow and 66% black.
The closest named color is Spacescape (#222255), a difference of 2.7 ΔE, a small difference.
White text is the more readable choice on this background (contrast 15.79:1).
#181B56 color codes
| HEX | #181B56 | |
|---|---|---|
| RGB | rgb(24, 27, 86) | |
| RGB percent | rgb(9.4%, 10.6%, 33.7%) | |
| HSL | hsl(237, 56%, 22%) | |
| HSV / HSB | hsv(237, 72%, 34%) | |
| CMYK | cmyk(72%, 69%, 0%, 66%) | |
| CIE LAB | lab(13.53, 20.37, -36.18) | |
| CIE LCH | lch(13.53, 41.52, 299.38) | |
| CIE XYZ | xyz(2.448, 1.65, 8.992) | |
| Decimal | 1579862 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #181B56, 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 #181B56 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.33:1 | Fail | Fail | Fail |
| Sample text | 15.79:1 | Pass | Pass | Pass |
| #181B56 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 15.79:1 | Pass | Pass | Pass |
| Sample text | 1.33: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 #181B56 looks to people with the most common types of color vision deficiency.
#002558Protanopia
no red cones#002055Deuteranopia
no green cones#002a35Tritanopia
no blue cones#232323Achromatopsia
no color vision
CSS examples
.background { background-color: #181b56; }
.text { color: #181b56; }
.border { border: 2px solid #181b56; }
.transparent { background-color: rgb(24 27 86 / 50%); }
.gradient { background: linear-gradient(to right, #181b56, #341856); }
Similar colors
#222255Spacescape#1c1e4dFly-by-Night#222266Intergalactic Cowboy#231c4dSilent Orbit#001155Interstellar Blue#112255Dark Soul#112358Fibonacci Blue#111144Deadly Depths
Closest common color name: Midnight Blue.
Questions
- What color is #181B56?
- #181B56 is a dark, moderate blue, closest to the named color Spacescape. It belongs to the blue family of colors.
- What is the RGB value of #181B56?
- The RGB value is 24, 27, 86: 24 red, 27 green and 86 blue on a 0 to 255 scale.
- What is the complementary color of #181B56?
- The complementary color is #565318, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #181B56?
- White text. Black text has a contrast ratio of 1.33:1 and white text 15.79:1. WCAG asks for at least 4.5:1 for normal text.