#1B1B87#1B1B87
#1B1B87 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.171 H 271.3°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).
Color values
| HEX | #1B1B87 |
|---|---|
| RGB | rgb(27, 27, 135) |
| HSL | hsl(240, 67%, 32%) |
| HSV | hsv(240, 80%, 53%) |
| CMYK | cmyk(80%, 80%, 0%, 47.1%) |
| CIE-LAB | lab(19.08, 38.80, -58.93) |
| CIE-LCH | lch(19.08, 70.56, 303.36°) |
| OKLab | oklab(31.91% 0.0039 -0.1706) |
| OKLCH | oklch(31.91% 0.171 271.3) |
| XYZ | xyz(5.2156, 2.7656, 23.1759) |
| Luminance | 0.0277 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.01
Midnight Blue
#191970
ΔE00 3.61
Darkblue
#00008B
ΔE00 4.57
Navy
#000080
ΔE00 4.93
Cobalt Blue
#030AA7
ΔE00 5.00
Dark Royal Blue
#02066F
ΔE00 5.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B1B87 #87871B
analogous
#1B5187 #1B1B87 #511B87
triadic
#1B1B87 #871B1B #1B871B
tetradic
#1B1B87 #871B51 #87871B #1B8751
square
#1B1B87 #871B51 #87871B #1B8751
split-complementary
#1B1B87 #87511B #51871B
monochromatic
#070721 #111154 #1B1B87 #2525BA #4343D9
Accessibility & contrast
On white
13.52
#1B1B87 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#1B1B87 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B1B87
13.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B1B87 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B1B87 | 1.00 | 13.52 | 1.55 | 13.52 |
| #FFFFFF | 13.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348A
Deuteranopia (green-blind)
#002985
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #1b1b87; /* rgb */ color: rgb(27, 27, 135); /* oklch */ color: oklch(31.9% 0.171 271.3);
Tailwind
colors: {
custom: {
50: '#6d59ab',
500: '#1b1b87',
950: '#000000',
},
}SCSS
$custom: #1b1b87; $custom-light: #6d59ab; $custom-dark: #000000;
JSON
{
"hex": "#1b1b87",
"rgb": {
"r": 27,
"g": 27,
"b": 135
},
"hsl": {
"h": 240,
"s": 66.667,
"l": 31.765
},
"oklch": {
"l": 0.3191,
"c": 0.17066,
"h": 271.3
},
"luminance": 0.02766
}Semantic roles & 50–950 ramp
primary
#1B1B87
secondary
#BABA44
accent
#EA3EEA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F