#181251 color
The hex color #181251 is a very dark, moderate blue.
In the RGB color model it is made of 9.4% red, 7.1% green and 31.8% blue (24, 18, 81).
Its hue angle is 246°, with 64% saturation and 19% lightness. For print, the CMYK equivalent is 70% cyan, 78% magenta, 0% yellow and 68% black.
The closest named color is Space Colonisation (#150F5B), a difference of 2.5 ΔE, a small difference.
White text is the more readable choice on this background (contrast 16.88:1).
#181251 color codes
| HEX | #181251 | |
|---|---|---|
| RGB | rgb(24, 18, 81) | |
| RGB percent | rgb(9.4%, 7.1%, 31.8%) | |
| HSL | hsl(246, 64%, 19%) | |
| HSV / HSB | hsv(246, 78%, 32%) | |
| CMYK | cmyk(70%, 78%, 0%, 68%) | |
| CIE LAB | lab(10.71, 24.68, -37.4) | |
| CIE LCH | lch(10.71, 44.81, 303.42) | |
| CIE XYZ | xyz(2.078, 1.221, 7.909) | |
| Decimal | 1577553 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #181251, 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 #181251 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.24:1 | Fail | Fail | Fail |
| Sample text | 16.88:1 | Pass | Pass | Pass |
| #181251 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 16.88:1 | Pass | Pass | Pass |
| Sample text | 1.24: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 #181251 looks to people with the most common types of color vision deficiency.
#001f53Protanopia
no red cones#001a50Deuteranopia
no green cones#002330Tritanopia
no blue cones#1d1d1dAchromatopsia
no color vision
CSS examples
.background { background-color: #181251; }
.text { color: #181251; }
.border { border: 2px solid #181251; }
.transparent { background-color: rgb(24 18 81 / 50%); }
.gradient { background: linear-gradient(to right, #181251, #371251); }
Similar colors
#150f5bSpace Colonisation#0f084bSilent Twilight#001155Interstellar Blue#111144Deadly Depths#000b44Storm#0a0555Ravenclaw#231c4dSilent Orbit#2d135fVoldemort
Closest common color name: Midnight Blue.
Questions
- What color is #181251?
- #181251 is a very dark, moderate blue, closest to the named color Space Colonisation. It belongs to the black family of colors.
- What is the RGB value of #181251?
- The RGB value is 24, 18, 81: 24 red, 18 green and 81 blue on a 0 to 255 scale.
- What is the complementary color of #181251?
- The complementary color is #4B5112, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #181251?
- White text. Black text has a contrast ratio of 1.24:1 and white text 16.88:1. WCAG asks for at least 4.5:1 for normal text.