#151938 color
The hex color #151938 is a very dark, desaturated blue.
In the RGB color model it is made of 8.2% red, 9.8% green and 22% blue (21, 25, 56).
Its hue angle is 233°, with 45% saturation and 15% lightness. For print, the CMYK equivalent is 62% cyan, 55% magenta, 0% yellow and 78% black.
The closest named color is Nightwalker (#161D3B), a difference of 1.7 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 17.1:1).
#151938 color codes
| HEX | #151938 | |
|---|---|---|
| RGB | rgb(21, 25, 56) | |
| RGB percent | rgb(8.2%, 9.8%, 22%) | |
| HSL | hsl(233, 45%, 15%) | |
| HSV / HSB | hsv(233, 63%, 22%) | |
| CMYK | cmyk(62%, 55%, 0%, 78%) | |
| CIE LAB | lab(10.11, 9.16, -20.85) | |
| CIE LCH | lch(10.11, 22.77, 293.72) | |
| CIE XYZ | xyz(1.37, 1.14, 3.888) | |
| Decimal | 1382712 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #151938, 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 #151938 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.23:1 | Fail | Fail | Fail |
| Sample text | 17.1:1 | Pass | Pass | Pass |
| #151938 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 17.1:1 | Pass | Pass | Pass |
| Sample text | 1.23: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 #151938 looks to people with the most common types of color vision deficiency.
#0b1d39Protanopia
no red cones#071a37Deuteranopia
no green cones#052025Tritanopia
no blue cones#1c1c1cAchromatopsia
no color vision
CSS examples
.background { background-color: #151938; }
.text { color: #151938; }
.border { border: 2px solid #151938; }
.transparent { background-color: rgb(21 25 56 / 50%); }
.gradient { background: linear-gradient(to right, #151938, #221538); }
Similar colors
#161d3bNightwalker#151931Dark Knight#222244Black Market#071037Infinite Night#041330Squid’s Ink#060929Mysterious Depths#112244Dark Eclipse#211d49Azulado
Closest common color name: Oxford Blue.
Questions
- What color is #151938?
- #151938 is a very dark, desaturated blue, closest to the named color Nightwalker. It belongs to the black family of colors.
- What is the RGB value of #151938?
- The RGB value is 21, 25, 56: 21 red, 25 green and 56 blue on a 0 to 255 scale.
- What is the complementary color of #151938?
- The complementary color is #383415, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #151938?
- White text. Black text has a contrast ratio of 1.23:1 and white text 17.1:1. WCAG asks for at least 4.5:1 for normal text.