#1B1887#1B1887
#1B1887 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.5% C 0.173 H 271.6°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).
Color values
| HEX | #1B1887 |
|---|---|
| RGB | rgb(27, 24, 135) |
| HSL | hsl(242, 70%, 31%) |
| HSV | hsv(242, 82%, 53%) |
| CMYK | cmyk(80%, 82.2%, 0%, 47.1%) |
| CIE-LAB | lab(18.52, 40.42, -59.86) |
| CIE-LCH | lch(18.52, 72.23, 304.03°) |
| OKLab | oklab(31.52% 0.0048 -0.1733) |
| OKLCH | oklch(31.52% 0.173 271.6) |
| XYZ | xyz(5.1503, 2.6350, 23.1541) |
| Luminance | 0.0264 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.82
Midnight Blue
#191970
ΔE00 3.71
Darkblue
#00008B
ΔE00 3.92
Navy
#000080
ΔE00 4.30
Cobalt Blue
#030AA7
ΔE00 4.68
Indigo (survey)
#380282
ΔE00 4.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B1887 #848718
analogous
#184C87 #1B1887 #521887
triadic
#1B1887 #871B18 #18871B
tetradic
#1B1887 #87184C #848718 #188752
square
#1B1887 #87184C #848718 #188752
split-complementary
#1B1887 #875218 #4C8718
monochromatic
#06061F #110F53 #1B1887 #2521BB #413DDC
Accessibility & contrast
On white
13.75
#1B1887 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#1B1887 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B1887
13.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B1887 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B1887 | 1.00 | 13.75 | 1.53 | 13.75 |
| #FFFFFF | 13.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00328A
Deuteranopia (green-blind)
#002785
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #1b1887; /* rgb */ color: rgb(27, 24, 135); /* oklch */ color: oklch(31.5% 0.173 271.6);
Tailwind
colors: {
custom: {
50: '#6d58ab',
500: '#1b1887',
950: '#000000',
},
}SCSS
$custom: #1b1887; $custom-light: #6d58ab; $custom-dark: #000000;
JSON
{
"hex": "#1b1887",
"rgb": {
"r": 27,
"g": 24,
"b": 135
},
"hsl": {
"h": 241.622,
"s": 69.811,
"l": 31.176
},
"oklch": {
"l": 0.31518,
"c": 0.17334,
"h": 271.6
},
"luminance": 0.02636
}Semantic roles & 50–950 ramp
primary
#1B1887
secondary
#B7BB40
accent
#ED3BE8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F