#1A177F#1A177F
#1A177F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.165 H 272.0°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).
Color values
| HEX | #1A177F |
|---|---|
| RGB | rgb(26, 23, 127) |
| HSL | hsl(242, 69%, 29%) |
| HSV | hsv(242, 82%, 50%) |
| CMYK | cmyk(79.5%, 81.9%, 0%, 50.2%) |
| CIE-LAB | lab(17.29, 38.20, -56.84) |
| CIE-LCH | lch(17.29, 68.48, 303.91°) |
| OKLab | oklab(30.36% 0.0058 -0.1645) |
| OKLCH | oklch(30.36% 0.165 272) |
| XYZ | xyz(4.5619, 2.3642, 20.2905) |
| Luminance | 0.0237 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.58
Royal
#0C1793
ΔE00 2.92
Navy
#000080
ΔE00 4.07
Dark Royal Blue
#02066F
ΔE00 4.09
Darkblue
#00008B
ΔE00 4.14
Deep Blue
#040273
ΔE00 4.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1A177F #7C7F17
analogous
#17487F #1A177F #4E177F
triadic
#1A177F #7F1A17 #177F1A
tetradic
#1A177F #7F1748 #7C7F17 #177F4E
square
#1A177F #7F1748 #7C7F17 #177F4E
split-complementary
#1A177F #7F4E17 #487F17
monochromatic
#05051A #0F0E4B #1A177F #2520B3 #3B36DB
Accessibility & contrast
On white
14.26
#1A177F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#1A177F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1A177F
14.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1A177F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1A177F | 1.00 | 14.26 | 1.47 | 14.26 |
| #FFFFFF | 14.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00257D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #1a177f; /* rgb */ color: rgb(26, 23, 127); /* oklch */ color: oklch(30.4% 0.165 272.0);
Tailwind
colors: {
custom: {
50: '#6a57a5',
500: '#1a177f',
950: '#000000',
},
}SCSS
$custom: #1a177f; $custom-light: #6a57a5; $custom-dark: #000000;
JSON
{
"hex": "#1a177f",
"rgb": {
"r": 26,
"g": 23,
"b": 127
},
"hsl": {
"h": 241.731,
"s": 69.333,
"l": 29.412
},
"oklch": {
"l": 0.30362,
"c": 0.1646,
"h": 272
},
"luminance": 0.02365
}Semantic roles & 50–950 ramp
primary
#1A177F
secondary
#B0B43E
accent
#EC3CE7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F