#1B177F#1B177F
#1B177F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.164 H 272.5°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).
Color values
| HEX | #1B177F |
|---|---|
| RGB | rgb(27, 23, 127) |
| HSL | hsl(242, 69%, 29%) |
| HSV | hsv(242, 82%, 50%) |
| CMYK | cmyk(78.7%, 81.9%, 0%, 50.2%) |
| CIE-LAB | lab(17.36, 38.28, -56.73) |
| CIE-LCH | lch(17.36, 68.44, 304.01°) |
| OKLab | oklab(30.42% 0.0071 -0.1642) |
| OKLCH | oklch(30.42% 0.164 272.5) |
| XYZ | xyz(4.5879, 2.3776, 20.2917) |
| Luminance | 0.0238 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.60
Royal
#0C1793
ΔE00 2.94
Navy
#000080
ΔE00 4.08
Dark Royal Blue
#02066F
ΔE00 4.11
Darkblue
#00008B
ΔE00 4.15
Deep Blue
#040273
ΔE00 4.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B177F #7B7F17
analogous
#17477F #1B177F #4F177F
triadic
#1B177F #7F1B17 #177F1B
tetradic
#1B177F #7F1747 #7B7F17 #177F4F
square
#1B177F #7F1747 #7B7F17 #177F4F
split-complementary
#1B177F #7F4F17 #477F17
monochromatic
#06051A #100E4B #1B177F #2620B3 #3C36DB
Accessibility & contrast
On white
14.23
#1B177F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#1B177F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B177F
14.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B177F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B177F | 1.00 | 14.23 | 1.48 | 14.23 |
| #FFFFFF | 14.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00257D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #1b177f; /* rgb */ color: rgb(27, 23, 127); /* oklch */ color: oklch(30.4% 0.164 272.5);
Tailwind
colors: {
custom: {
50: '#6b57a5',
500: '#1b177f',
950: '#000000',
},
}SCSS
$custom: #1b177f; $custom-light: #6b57a5; $custom-dark: #000000;
JSON
{
"hex": "#1b177f",
"rgb": {
"r": 27,
"g": 23,
"b": 127
},
"hsl": {
"h": 242.308,
"s": 69.333,
"l": 29.412
},
"oklch": {
"l": 0.30422,
"c": 0.16432,
"h": 272.5
},
"luminance": 0.02378
}Semantic roles & 50–950 ramp
primary
#1B177F
secondary
#AFB43E
accent
#EC3CE5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F