#1B1878#1B1878
#1B1878 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.155 H 273.1°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).
Color values
| HEX | #1B1878 |
|---|---|
| RGB | rgb(27, 24, 120) |
| HSL | hsl(242, 67%, 28%) |
| HSV | hsv(242, 80%, 47%) |
| CMYK | cmyk(77.5%, 80%, 0%, 52.9%) |
| CIE-LAB | lab(16.71, 35.33, -53.33) |
| CIE-LCH | lch(16.71, 63.97, 303.52°) |
| OKLab | oklab(29.72% 0.0083 -0.1543) |
| OKLCH | oklch(29.72% 0.155 273.1) |
| XYZ | xyz(4.1677, 2.2419, 17.9787) |
| Luminance | 0.0224 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 1.44
Dark Royal Blue
#02066F
ΔE00 3.92
Royal
#0C1793
ΔE00 4.03
Deep Blue
#040273
ΔE00 4.36
Navy
#000080
ΔE00 4.62
Darkblue (survey)
#030764
ΔE00 4.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B1878 #757818
analogous
#184578 #1B1878 #4B1878
triadic
#1B1878 #781B18 #18781B
tetradic
#1B1878 #781845 #757818 #18784B
square
#1B1878 #781845 #757818 #18784B
split-complementary
#1B1878 #784B18 #457818
monochromatic
#06051A #100E45 #1B1878 #2622AB #3934D6
Accessibility & contrast
On white
14.50
#1B1878 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#1B1878 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B1878
14.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B1878 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B1878 | 1.00 | 14.50 | 1.45 | 14.50 |
| #FFFFFF | 14.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E7B
Deuteranopia (green-blind)
#002576
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #1b1878; /* rgb */ color: rgb(27, 24, 120); /* oklch */ color: oklch(29.7% 0.155 273.1);
Tailwind
colors: {
custom: {
50: '#6957a0',
500: '#1b1878',
950: '#000000',
},
}SCSS
$custom: #1b1878; $custom-light: #6957a0; $custom-dark: #000000;
JSON
{
"hex": "#1b1878",
"rgb": {
"r": 27,
"g": 24,
"b": 120
},
"hsl": {
"h": 241.875,
"s": 66.667,
"l": 28.235
},
"oklch": {
"l": 0.29723,
"c": 0.15453,
"h": 273.1
},
"luminance": 0.02242
}Semantic roles & 50–950 ramp
primary
#1B1878
secondary
#A9AD3F
accent
#EA3EE4
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F