#1A2F7E#1A2F7E
#1A2F7E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.4% C 0.136 H 267.2°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).
Color values
| HEX | #1A2F7E |
|---|---|
| RGB | rgb(26, 47, 126) |
| HSL | hsl(227, 66%, 30%) |
| HSV | hsv(227, 79%, 49%) |
| CMYK | cmyk(79.4%, 62.7%, 0%, 50.6%) |
| CIE-LAB | lab(22.86, 22.42, -47.05) |
| CIE-LCH | lch(22.86, 52.11, 295.48°) |
| OKLab | oklab(34.35% -0.0066 -0.136) |
| OKLCH | oklch(34.35% 0.136 267.2) |
| XYZ | xyz(5.2071, 3.7584, 20.1856) |
| Luminance | 0.0376 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 5.96
Midnight Blue
#191970
ΔE00 6.68
Sapphire (survey)
#2138AB
ΔE00 6.89
Marine Blue
#01386A
ΔE00 6.95
Darkslateblue
#483D8B
ΔE00 7.51
Darkish Blue
#014182
ΔE00 7.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1A2F7E #7E691A
analogous
#1A617E #1A2F7E #371A7E
triadic
#1A2F7E #7E1A2F #2F7E1A
tetradic
#1A2F7E #7E1A61 #7E691A #1A7E37
square
#1A2F7E #7E1A61 #7E691A #1A7E37
split-complementary
#1A2F7E #7E371A #617E1A
monochromatic
#050919 #101C4B #1A2F7E #2442B1 #3C5CD7
Accessibility & contrast
On white
11.99
#1A2F7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#1A2F7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1A2F7E
11.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1A2F7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1A2F7E | 1.00 | 11.99 | 1.75 | 11.99 |
| #FFFFFF | 11.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #1a2f7e; /* rgb */ color: rgb(26, 47, 126); /* oklch */ color: oklch(34.4% 0.136 267.2);
Tailwind
colors: {
custom: {
50: '#6867a4',
500: '#1a2f7e',
950: '#000000',
},
}SCSS
$custom: #1a2f7e; $custom-light: #6867a4; $custom-dark: #000000;
JSON
{
"hex": "#1a2f7e",
"rgb": {
"r": 26,
"g": 47,
"b": 126
},
"hsl": {
"h": 227.4,
"s": 65.789,
"l": 29.804
},
"oklch": {
"l": 0.34351,
"c": 0.13612,
"h": 267.2
},
"luminance": 0.03759
}Semantic roles & 50–950 ramp
primary
#1A2F7E
secondary
#B29A42
accent
#C53FE9
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F