#1B2187#1B2187
#1B2187 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.165 H 270.5°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).
Color values
| HEX | #1B2187 |
|---|---|
| RGB | rgb(27, 33, 135) |
| HSL | hsl(237, 67%, 32%) |
| HSV | hsv(237, 80%, 53%) |
| CMYK | cmyk(80%, 75.6%, 0%, 47.1%) |
| CIE-LAB | lab(20.32, 35.28, -56.88) |
| CIE-LCH | lch(20.32, 66.93, 301.81°) |
| OKLab | oklab(32.79% 0.0015 -0.1647) |
| OKLCH | oklch(32.79% 0.165 270.5) |
| XYZ | xyz(5.3675, 3.0694, 23.2265) |
| Luminance | 0.0307 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.00
Midnight Blue
#191970
ΔE00 3.84
Cobalt Blue
#030AA7
ΔE00 5.92
Darkblue
#00008B
ΔE00 6.04
Navy
#000080
ΔE00 6.38
Royal Blue (survey)
#0504AA
ΔE00 6.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B2187 #87811B
analogous
#1B5787 #1B2187 #4B1B87
triadic
#1B2187 #871B21 #21871B
tetradic
#1B2187 #871B57 #87811B #1B874B
square
#1B2187 #871B57 #87811B #1B874B
split-complementary
#1B2187 #874B1B #57871B
monochromatic
#070821 #111554 #1B2187 #252DBA #434BD9
Accessibility & contrast
On white
13.01
#1B2187 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#1B2187 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B2187
13.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B2187 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B2187 | 1.00 | 13.01 | 1.61 | 13.01 |
| #FFFFFF | 13.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002C85
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #1b2187; /* rgb */ color: rgb(27, 33, 135); /* oklch */ color: oklch(32.8% 0.165 270.5);
Tailwind
colors: {
custom: {
50: '#6c5dab',
500: '#1b2187',
950: '#000000',
},
}SCSS
$custom: #1b2187; $custom-light: #6c5dab; $custom-dark: #000000;
JSON
{
"hex": "#1b2187",
"rgb": {
"r": 27,
"g": 33,
"b": 135
},
"hsl": {
"h": 236.667,
"s": 66.667,
"l": 31.765
},
"oklch": {
"l": 0.32788,
"c": 0.16473,
"h": 270.5
},
"luminance": 0.0307
}Semantic roles & 50–950 ramp
primary
#1B2187
secondary
#BAB444
accent
#E03EEA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F