#1B157E#1B157E
#1B157E is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.165 H 272.8°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).
Color values
| HEX | #1B157E |
|---|---|
| RGB | rgb(27, 21, 126) |
| HSL | hsl(243, 71%, 29%) |
| HSV | hsv(243, 83%, 49%) |
| CMYK | cmyk(78.6%, 83.3%, 0%, 50.6%) |
| CIE-LAB | lab(16.87, 39.00, -56.90) |
| CIE-LCH | lch(16.87, 68.98, 304.43°) |
| OKLab | oklab(30.05% 0.008 -0.1646) |
| OKLCH | oklch(30.05% 0.165 272.8) |
| XYZ | xyz(4.4848, 2.2752, 19.9374) |
| Luminance | 0.0228 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.67
Royal
#0C1793
ΔE00 3.10
Navy
#000080
ΔE00 3.69
Dark Royal Blue
#02066F
ΔE00 3.73
Darkblue
#00008B
ΔE00 3.85
Deep Blue
#040273
ΔE00 3.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B157E #787E15
analogous
#15447E #1B157E #50157E
triadic
#1B157E #7E1B15 #157E1B
tetradic
#1B157E #7E1544 #787E15 #157E50
square
#1B157E #7E1544 #787E15 #157E50
split-complementary
#1B157E #7E5015 #447E15
monochromatic
#06041A #100C4A #1B157E #261EB2 #3B31DD
Accessibility & contrast
On white
14.43
#1B157E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#1B157E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B157E
14.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B157E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B157E | 1.00 | 14.43 | 1.46 | 14.43 |
| #FFFFFF | 14.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00247C
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #1b157e; /* rgb */ color: rgb(27, 21, 126); /* oklch */ color: oklch(30.0% 0.165 272.8);
Tailwind
colors: {
custom: {
50: '#6b55a5',
500: '#1b157e',
950: '#000000',
},
}SCSS
$custom: #1b157e; $custom-light: #6b55a5; $custom-dark: #000000;
JSON
{
"hex": "#1b157e",
"rgb": {
"r": 27,
"g": 21,
"b": 126
},
"hsl": {
"h": 243.429,
"s": 71.429,
"l": 28.824
},
"oklch": {
"l": 0.30048,
"c": 0.16482,
"h": 272.8
},
"luminance": 0.02276
}Semantic roles & 50–950 ramp
primary
#1B157E
secondary
#ACB33C
accent
#EE3AE4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F