#1B1786#1B1786
#1B1786 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.3% C 0.173 H 271.8°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).
Color values
| HEX | #1B1786 |
|---|---|
| RGB | rgb(27, 23, 134) |
| HSL | hsl(242, 71%, 31%) |
| HSV | hsv(242, 83%, 53%) |
| CMYK | cmyk(79.9%, 82.8%, 0%, 47.5%) |
| CIE-LAB | lab(18.22, 40.61, -59.73) |
| CIE-LCH | lch(18.22, 72.23, 304.21°) |
| OKLab | oklab(31.27% 0.0054 -0.1729) |
| OKLCH | oklch(31.27% 0.173 271.8) |
| XYZ | xyz(5.0600, 2.5665, 22.7783) |
| Luminance | 0.0257 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.95
Midnight Blue
#191970
ΔE00 3.62
Darkblue
#00008B
ΔE00 3.75
Navy
#000080
ΔE00 4.08
Dark Royal Blue
#02066F
ΔE00 4.74
Cobalt Blue
#030AA7
ΔE00 4.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B1786 #828617
analogous
#174A86 #1B1786 #521786
triadic
#1B1786 #861B17 #17861B
tetradic
#1B1786 #86174A #828617 #178652
square
#1B1786 #86174A #828617 #178652
split-complementary
#1B1786 #865217 #4A8617
monochromatic
#06051E #100E52 #1B1786 #2620BA #403ADD
Accessibility & contrast
On white
13.88
#1B1786 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#1B1786 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B1786
13.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B1786 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B1786 | 1.00 | 13.88 | 1.51 | 13.88 |
| #FFFFFF | 13.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003289
Deuteranopia (green-blind)
#002784
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #1b1786; /* rgb */ color: rgb(27, 23, 134); /* oklch */ color: oklch(31.3% 0.173 271.8);
Tailwind
colors: {
custom: {
50: '#6d57ab',
500: '#1b1786',
950: '#000000',
},
}SCSS
$custom: #1b1786; $custom-light: #6d57ab; $custom-dark: #000000;
JSON
{
"hex": "#1b1786",
"rgb": {
"r": 27,
"g": 23,
"b": 134
},
"hsl": {
"h": 242.162,
"s": 70.701,
"l": 30.784
},
"oklch": {
"l": 0.31272,
"c": 0.17296,
"h": 271.8
},
"luminance": 0.02567
}Semantic roles & 50–950 ramp
primary
#1B1786
secondary
#B6BA3F
accent
#ED3AE7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F