#1A317E#1A317E
#1A317E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.8% C 0.134 H 266.5°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).
Color values
| HEX | #1A317E |
|---|---|
| RGB | rgb(26, 49, 126) |
| HSL | hsl(226, 66%, 30%) |
| HSV | hsv(226, 79%, 49%) |
| CMYK | cmyk(79.4%, 61.1%, 0%, 50.6%) |
| CIE-LAB | lab(23.41, 21.01, -46.14) |
| CIE-LCH | lch(23.41, 50.70, 294.48°) |
| OKLab | oklab(34.77% -0.008 -0.1333) |
| OKLCH | oklch(34.77% 0.134 266.5) |
| XYZ | xyz(5.2889, 3.9220, 20.2129) |
| Luminance | 0.0392 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 5.65
Marine Blue
#01386A
ΔE00 6.39
Sapphire (survey)
#2138AB
ΔE00 6.84
Darkish Blue
#014182
ΔE00 6.90
Midnight Blue
#191970
ΔE00 7.36
Darkslateblue
#483D8B
ΔE00 7.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1A317E #7E671A
analogous
#1A637E #1A317E #351A7E
triadic
#1A317E #7E1A31 #317E1A
tetradic
#1A317E #7E1A63 #7E671A #1A7E35
square
#1A317E #7E1A63 #7E671A #1A7E35
split-complementary
#1A317E #7E351A #637E1A
monochromatic
#050A19 #101D4B #1A317E #2445B1 #3C5FD7
Accessibility & contrast
On white
11.77
#1A317E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#1A317E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1A317E
11.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1A317E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1A317E | 1.00 | 11.77 | 1.78 | 11.77 |
| #FFFFFF | 11.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D81
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #1a317e; /* rgb */ color: rgb(26, 49, 126); /* oklch */ color: oklch(34.8% 0.134 266.5);
Tailwind
colors: {
custom: {
50: '#6868a4',
500: '#1a317e',
950: '#000000',
},
}SCSS
$custom: #1a317e; $custom-light: #6868a4; $custom-dark: #000000;
JSON
{
"hex": "#1a317e",
"rgb": {
"r": 26,
"g": 49,
"b": 126
},
"hsl": {
"h": 226.2,
"s": 65.789,
"l": 29.804
},
"oklch": {
"l": 0.34765,
"c": 0.13351,
"h": 266.5
},
"luminance": 0.03923
}Semantic roles & 50–950 ramp
primary
#1A317E
secondary
#B29842
accent
#C23FE9
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F