#151795 color
The hex color #151795 is a dark, moderate blue.
In the RGB color model it is made of 8.2% red, 9% green and 58.4% blue (21, 23, 149).
Its hue angle is 239°, with 75% saturation and 33% lightness. For print, the CMYK equivalent is 86% cyan, 85% magenta, 0% yellow and 42% black.
The closest named color is Royal (#0C1793), a difference of 0.6 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 13.22:1).
#151795 color codes
| HEX | #151795 | |
|---|---|---|
| RGB | rgb(21, 23, 149) | |
| RGB percent | rgb(8.2%, 9%, 58.4%) | |
| HSL | hsl(239, 75%, 33%) | |
| HSV / HSB | hsv(239, 86%, 58%) | |
| CMYK | cmyk(86%, 85%, 0%, 42%) | |
| CIE LAB | lab(19.81, 45.17, -66.46) | |
| CIE LCH | lch(19.81, 80.36, 304.2) | |
| CIE XYZ | xyz(6.039, 2.941, 28.677) | |
| Decimal | 1382293 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #151795, 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 #151795 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.59:1 | Fail | Fail | Fail |
| Sample text | 13.22:1 | Pass | Pass | Pass |
| #151795 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.22:1 | Pass | Pass | Pass |
| Sample text | 1.59: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 #151795 looks to people with the most common types of color vision deficiency.
#003698Protanopia
no red cones#002993Deuteranopia
no green cones#004058Tritanopia
no blue cones#303030Achromatopsia
no color vision
CSS examples
.background { background-color: #151795; }
.text { color: #151795; }
.border { border: 2px solid #151795; }
.transparent { background-color: rgb(21 23 149 / 50%); }
.gradient { background: linear-gradient(to right, #151795, #531595); }
Similar colors
#0c1793Royal#001199Space Exploration#111188Galactic Cruise#120a8fUltramarine#221188Nightly Expedition#0018a8Dark Galaxy#002299Space Dust#030aa7Cobalt
Questions
- What color is #151795?
- #151795 is a dark, moderate blue, closest to the named color Royal. It belongs to the blue family of colors.
- What is the RGB value of #151795?
- The RGB value is 21, 23, 149: 21 red, 23 green and 149 blue on a 0 to 255 scale.
- What is the complementary color of #151795?
- The complementary color is #959315, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #151795?
- White text. Black text has a contrast ratio of 1.59:1 and white text 13.22:1. WCAG asks for at least 4.5:1 for normal text.