#1A317F#1A317F
#1A317F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.9% C 0.135 H 266.6°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).
Color values
| HEX | #1A317F |
|---|---|
| RGB | rgb(26, 49, 127) |
| HSL | hsl(226, 66%, 30%) |
| HSV | hsv(226, 80%, 50%) |
| CMYK | cmyk(79.5%, 61.4%, 0%, 50.2%) |
| CIE-LAB | lab(23.50, 21.41, -46.63) |
| CIE-LCH | lch(23.50, 51.31, 294.67°) |
| OKLab | oklab(34.86% -0.008 -0.1347) |
| OKLCH | oklch(34.86% 0.135 266.6) |
| XYZ | xyz(5.3537, 3.9479, 20.5544) |
| Luminance | 0.0395 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 5.80
Marine Blue
#01386A
ΔE00 6.49
Sapphire (survey)
#2138AB
ΔE00 6.69
Darkish Blue
#014182
ΔE00 6.93
Midnight Blue
#191970
ΔE00 7.35
Darkslateblue
#483D8B
ΔE00 7.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1A317F #7F681A
analogous
#1A637F #1A317F #361A7F
triadic
#1A317F #7F1A31 #317F1A
tetradic
#1A317F #7F1A63 #7F681A #1A7F36
square
#1A317F #7F1A63 #7F681A #1A7F36
split-complementary
#1A317F #7F361A #637F1A
monochromatic
#050A19 #101D4C #1A317F #2445B2 #3C60D7
Accessibility & contrast
On white
11.73
#1A317F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#1A317F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1A317F
11.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1A317F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1A317F | 1.00 | 11.73 | 1.79 | 11.73 |
| #FFFFFF | 11.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#004553
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #1a317f; /* rgb */ color: rgb(26, 49, 127); /* oklch */ color: oklch(34.9% 0.135 266.6);
Tailwind
colors: {
custom: {
50: '#6868a5',
500: '#1a317f',
950: '#000000',
},
}SCSS
$custom: #1a317f; $custom-light: #6868a5; $custom-dark: #000000;
JSON
{
"hex": "#1a317f",
"rgb": {
"r": 26,
"g": 49,
"b": 127
},
"hsl": {
"h": 226.337,
"s": 66.013,
"l": 30
},
"oklch": {
"l": 0.34857,
"c": 0.13495,
"h": 266.6
},
"luminance": 0.03949
}Semantic roles & 50–950 ramp
primary
#1A317F
secondary
#B39942
accent
#C23FE9
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F