#1A1F7D#1A1F7D
#1A1F7D is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.3% C 0.154 H 271.1°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).
Color values
| HEX | #1A1F7D |
|---|---|
| RGB | rgb(26, 31, 125) |
| HSL | hsl(237, 66%, 30%) |
| HSV | hsv(237, 79%, 49%) |
| CMYK | cmyk(79.2%, 75.2%, 0%, 51%) |
| CIE-LAB | lab(18.71, 32.80, -53.21) |
| CIE-LCH | lch(18.71, 62.51, 301.65°) |
| OKLab | oklab(31.3% 0.0029 -0.1541) |
| OKLCH | oklch(31.3% 0.154 271.1) |
| XYZ | xyz(4.6164, 2.6798, 19.6720) |
| Luminance | 0.0268 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.36
Royal
#0C1793
ΔE00 3.92
Dark Royal Blue
#02066F
ΔE00 5.65
Navy
#000080
ΔE00 6.10
Deep Blue
#040273
ΔE00 6.10
Darkblue
#00008B
ΔE00 6.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1A1F7D #7D781A
analogous
#1A507D #1A1F7D #471A7D
triadic
#1A1F7D #7D1A1F #1F7D1A
tetradic
#1A1F7D #7D1A50 #7D781A #1A7D47
square
#1A1F7D #7D1A50 #7D781A #1A7D47
split-complementary
#1A1F7D #7D471A #507D1A
monochromatic
#050619 #0F124A #1A1F7D #252CB0 #3B43D6
Accessibility & contrast
On white
13.67
#1A1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#1A1F7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1A1F7D
13.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1A1F7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1A1F7D | 1.00 | 13.67 | 1.54 | 13.67 |
| #FFFFFF | 13.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#00297B
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #1a1f7d; /* rgb */ color: rgb(26, 31, 125); /* oklch */ color: oklch(31.3% 0.154 271.1);
Tailwind
colors: {
custom: {
50: '#695ba4',
500: '#1a1f7d',
950: '#000000',
},
}SCSS
$custom: #1a1f7d; $custom-light: #695ba4; $custom-dark: #000000;
JSON
{
"hex": "#1a1f7d",
"rgb": {
"r": 26,
"g": 31,
"b": 125
},
"hsl": {
"h": 236.97,
"s": 65.563,
"l": 29.608
},
"oklch": {
"l": 0.31297,
"c": 0.1541,
"h": 271.1
},
"luminance": 0.0268
}Semantic roles & 50–950 ramp
primary
#1A1F7D
secondary
#B1AB42
accent
#E03FE9
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F