#1B1B87 color
The hex color #1B1B87 is a dark, moderate blue.
In the RGB color model it is made of 10.6% red, 10.6% green and 52.9% blue (27, 27, 135).
Its hue angle is 240°, with 67% saturation and 32% lightness. For print, the CMYK equivalent is 80% cyan, 80% magenta, 0% yellow and 47% black.
The closest named color is Royal (#0C1793), a difference of 2 ΔE, a small difference.
White text is the more readable choice on this background (contrast 13.52:1).
#1B1B87 color codes
| HEX | #1B1B87 | |
|---|---|---|
| RGB | rgb(27, 27, 135) | |
| RGB percent | rgb(10.6%, 10.6%, 52.9%) | |
| HSL | hsl(240, 67%, 32%) | |
| HSV / HSB | hsv(240, 80%, 53%) | |
| CMYK | cmyk(80%, 80%, 0%, 47%) | |
| CIE LAB | lab(19.08, 38.8, -58.93) | |
| CIE LCH | lch(19.08, 70.56, 303.36) | |
| CIE XYZ | xyz(5.216, 2.766, 23.176) | |
| Decimal | 1776519 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #1B1B87, 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 #1B1B87 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.55:1 | Fail | Fail | Fail |
| Sample text | 13.52:1 | Pass | Pass | Pass |
| #1B1B87 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.52:1 | Pass | Pass | Pass |
| Sample text | 1.55: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 #1B1B87 looks to people with the most common types of color vision deficiency.
#00348aProtanopia
no red cones#002985Deuteranopia
no green cones#003c51Tritanopia
no blue cones#2e2e2eAchromatopsia
no color vision
CSS examples
.background { background-color: #1b1b87; }
.text { color: #1b1b87; }
.border { border: 2px solid #1b1b87; }
.transparent { background-color: rgb(27 27 135 / 50%); }
.gradient { background: linear-gradient(to right, #1b1b87, #511b87); }
Similar colors
#0c1793Royal#111188Galactic Cruise#221188Nightly Expedition#301885Indiglow#002299Space Dust#002489Lost in Heaven#001199Space Exploration#120a8fUltramarine
Questions
- What color is #1B1B87?
- #1B1B87 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 #1B1B87?
- The RGB value is 27, 27, 135: 27 red, 27 green and 135 blue on a 0 to 255 scale.
- What is the complementary color of #1B1B87?
- The complementary color is #87871B, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #1B1B87?
- White text. Black text has a contrast ratio of 1.55:1 and white text 13.52:1. WCAG asks for at least 4.5:1 for normal text.