#1B2181#1B2181
#1B2181 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.157 H 270.9°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).
Color values
| HEX | #1B2181 |
|---|---|
| RGB | rgb(27, 33, 129) |
| HSL | hsl(236, 65%, 31%) |
| HSV | hsv(236, 79%, 51%) |
| CMYK | cmyk(79.1%, 74.4%, 0%, 49.4%) |
| CIE-LAB | lab(19.66, 33.10, -54.19) |
| CIE-LCH | lch(19.66, 63.50, 301.42°) |
| OKLab | oklab(32.12% 0.0025 -0.1569) |
| OKLCH | oklch(32.12% 0.157 270.9) |
| XYZ | xyz(4.9570, 2.9052, 21.0641) |
| Luminance | 0.0291 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.10
Royal
#0C1793
ΔE00 3.72
Dark Royal Blue
#02066F
ΔE00 6.27
Darkblue
#00008B
ΔE00 6.37
Navy
#000080
ΔE00 6.48
Deep Blue
#040273
ΔE00 6.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B2181 #817B1B
analogous
#1B5481 #1B2181 #481B81
triadic
#1B2181 #811B21 #21811B
tetradic
#1B2181 #811B54 #817B1B #1B8148
square
#1B2181 #811B54 #817B1B #1B8148
split-complementary
#1B2181 #81481B #54811B
monochromatic
#06071C #10144E #1B2181 #262EB4 #3F48D7
Accessibility & contrast
On white
13.28
#1B2181 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#1B2181 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B2181
13.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B2181 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B2181 | 1.00 | 13.28 | 1.58 | 13.28 |
| #FFFFFF | 13.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#002B7F
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #1b2181; /* rgb */ color: rgb(27, 33, 129); /* oklch */ color: oklch(32.1% 0.157 270.9);
Tailwind
colors: {
custom: {
50: '#6a5da7',
500: '#1b2181',
950: '#000000',
},
}SCSS
$custom: #1b2181; $custom-light: #6a5da7; $custom-dark: #000000;
JSON
{
"hex": "#1b2181",
"rgb": {
"r": 27,
"g": 33,
"b": 129
},
"hsl": {
"h": 236.471,
"s": 65.385,
"l": 30.588
},
"oklch": {
"l": 0.3212,
"c": 0.15691,
"h": 270.9
},
"luminance": 0.02906
}Semantic roles & 50–950 ramp
primary
#1B2181
secondary
#B5AE43
accent
#DE3FE8
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#080410
muted
#7A797F