#1B1987#1B1987
#1B1987 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.6% C 0.172 H 271.5°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).
Color values
| HEX | #1B1987 |
|---|---|
| RGB | rgb(27, 25, 135) |
| HSL | hsl(241, 69%, 31%) |
| HSV | hsv(241, 81%, 53%) |
| CMYK | cmyk(80%, 81.5%, 0%, 47.1%) |
| CIE-LAB | lab(18.70, 39.89, -59.56) |
| CIE-LCH | lch(18.70, 71.68, 303.81°) |
| OKLab | oklab(31.65% 0.0045 -0.1724) |
| OKLCH | oklch(31.65% 0.172 271.5) |
| XYZ | xyz(5.1713, 2.6770, 23.1611) |
| Luminance | 0.0268 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.86
Midnight Blue
#191970
ΔE00 3.66
Darkblue
#00008B
ΔE00 4.13
Navy
#000080
ΔE00 4.50
Cobalt Blue
#030AA7
ΔE00 4.78
Indigo (survey)
#380282
ΔE00 5.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B1987 #858719
analogous
#194E87 #1B1987 #521987
triadic
#1B1987 #871B19 #19871B
tetradic
#1B1987 #87194E #858719 #198752
square
#1B1987 #87194E #858719 #198752
split-complementary
#1B1987 #875219 #4E8719
monochromatic
#060620 #110F53 #1B1987 #2523BB #423FDB
Accessibility & contrast
On white
13.68
#1B1987 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#1B1987 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B1987
13.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B1987 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B1987 | 1.00 | 13.68 | 1.54 | 13.68 |
| #FFFFFF | 13.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00338A
Deuteranopia (green-blind)
#002885
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #1b1987; /* rgb */ color: rgb(27, 25, 135); /* oklch */ color: oklch(31.6% 0.172 271.5);
Tailwind
colors: {
custom: {
50: '#6d58ab',
500: '#1b1987',
950: '#000000',
},
}SCSS
$custom: #1b1987; $custom-light: #6d58ab; $custom-dark: #000000;
JSON
{
"hex": "#1b1987",
"rgb": {
"r": 27,
"g": 25,
"b": 135
},
"hsl": {
"h": 241.091,
"s": 68.75,
"l": 31.373
},
"oklch": {
"l": 0.31645,
"c": 0.17247,
"h": 271.5
},
"luminance": 0.02678
}Semantic roles & 50–950 ramp
primary
#1B1987
secondary
#B8BA41
accent
#EC3CE8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F