#1B177E#1B177E
#1B177E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.163 H 272.6°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).
Color values
| HEX | #1B177E |
|---|---|
| RGB | rgb(27, 23, 126) |
| HSL | hsl(242, 69%, 29%) |
| HSV | hsv(242, 82%, 49%) |
| CMYK | cmyk(78.6%, 81.7%, 0%, 50.6%) |
| CIE-LAB | lab(17.23, 37.94, -56.29) |
| CIE-LCH | lch(17.23, 67.89, 303.98°) |
| OKLab | oklab(30.3% 0.0073 -0.1629) |
| OKLCH | oklch(30.3% 0.163 272.6) |
| XYZ | xyz(4.5230, 2.3517, 19.9502) |
| Luminance | 0.0235 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.45
Royal
#0C1793
ΔE00 3.09
Dark Royal Blue
#02066F
ΔE00 4.04
Navy
#000080
ΔE00 4.10
Darkblue
#00008B
ΔE00 4.22
Deep Blue
#040273
ΔE00 4.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B177E #7A7E17
analogous
#17477E #1B177E #4F177E
triadic
#1B177E #7E1B17 #177E1B
tetradic
#1B177E #7E1747 #7A7E17 #177E4F
square
#1B177E #7E1747 #7A7E17 #177E4F
split-complementary
#1B177E #7E4F17 #477E17
monochromatic
#06051A #100E4A #1B177E #2620B2 #3C35DA
Accessibility & contrast
On white
14.28
#1B177E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#1B177E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B177E
14.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B177E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B177E | 1.00 | 14.28 | 1.47 | 14.28 |
| #FFFFFF | 14.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00257C
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #1b177e; /* rgb */ color: rgb(27, 23, 126); /* oklch */ color: oklch(30.3% 0.163 272.6);
Tailwind
colors: {
custom: {
50: '#6b57a5',
500: '#1b177e',
950: '#000000',
},
}SCSS
$custom: #1b177e; $custom-light: #6b57a5; $custom-dark: #000000;
JSON
{
"hex": "#1b177e",
"rgb": {
"r": 27,
"g": 23,
"b": 126
},
"hsl": {
"h": 242.33,
"s": 69.128,
"l": 29.216
},
"oklch": {
"l": 0.30302,
"c": 0.16307,
"h": 272.6
},
"luminance": 0.02352
}Semantic roles & 50–950 ramp
primary
#1B177E
secondary
#AEB33E
accent
#EC3CE5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F