#1B127E#1B127E
#1B127E is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.167 H 273.1°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).
Color values
| HEX | #1B127E |
|---|---|
| RGB | rgb(27, 18, 126) |
| HSL | hsl(245, 75%, 28%) |
| HSV | hsv(245, 86%, 49%) |
| CMYK | cmyk(78.6%, 85.7%, 0%, 50.6%) |
| CIE-LAB | lab(16.36, 40.48, -57.74) |
| CIE-LCH | lch(16.36, 70.52, 305.04°) |
| OKLab | oklab(29.7% 0.0089 -0.167) |
| OKLCH | oklch(29.7% 0.167 273.1) |
| XYZ | xyz(4.4329, 2.1715, 19.9201) |
| Luminance | 0.0217 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.05
Navy
#000080
ΔE00 3.14
Royal
#0C1793
ΔE00 3.21
Darkblue
#00008B
ΔE00 3.36
Dark Royal Blue
#02066F
ΔE00 3.37
Deep Blue
#040273
ΔE00 3.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B127E #757E12
analogous
#123F7E #1B127E #51127E
triadic
#1B127E #7E1B12 #127E1B
tetradic
#1B127E #7E123F #757E12 #127E51
square
#1B127E #7E123F #757E12 #127E51
split-complementary
#1B127E #7E5112 #3F7E12
monochromatic
#06041B #100A48 #1B127E #261AB4 #392AE1
Accessibility & contrast
On white
14.64
#1B127E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.43
#1B127E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B127E
14.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B127E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B127E | 1.00 | 14.64 | 1.43 | 14.64 |
| #FFFFFF | 14.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D81
Deuteranopia (green-blind)
#00237C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #1b127e; /* rgb */ color: rgb(27, 18, 126); /* oklch */ color: oklch(29.7% 0.167 273.1);
Tailwind
colors: {
custom: {
50: '#6b54a5',
500: '#1b127e',
950: '#000000',
},
}SCSS
$custom: #1b127e; $custom-light: #6b54a5; $custom-dark: #000000;
JSON
{
"hex": "#1b127e",
"rgb": {
"r": 27,
"g": 18,
"b": 126
},
"hsl": {
"h": 245,
"s": 75,
"l": 28.235
},
"oklch": {
"l": 0.29697,
"c": 0.16725,
"h": 273.1
},
"luminance": 0.02172
}Semantic roles & 50–950 ramp
primary
#1B127E
secondary
#A9B438
accent
#F236E2
background
#F7F5FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F