#1A1F8E#1A1F8E
#1A1F8E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.176 H 270.0°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).
Color values
| HEX | #1A1F8E |
|---|---|
| RGB | rgb(26, 31, 142) |
| HSL | hsl(237, 69%, 33%) |
| HSV | hsv(237, 82%, 56%) |
| CMYK | cmyk(81.7%, 78.2%, 0%, 44.3%) |
| CIE-LAB | lab(20.64, 38.87, -60.73) |
| CIE-LCH | lch(20.64, 72.10, 302.62°) |
| OKLab | oklab(33.24% 0 -0.1759) |
| OKLCH | oklch(33.24% 0.176 270) |
| XYZ | xyz(5.7968, 3.1519, 25.8888) |
| Luminance | 0.0315 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.95
Midnight Blue
#191970
ΔE00 4.67
Cobalt Blue
#030AA7
ΔE00 4.74
Royal Blue (survey)
#0504AA
ΔE00 5.35
Darkblue
#00008B
ΔE00 5.38
Navy
#000080
ΔE00 5.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1A1F8E #8E891A
analogous
#1A598E #1A1F8E #4F1A8E
triadic
#1A1F8E #8E1A1F #1F8E1A
tetradic
#1A1F8E #8E1A59 #8E891A #1A8E4F
square
#1A1F8E #8E1A59 #8E891A #1A8E4F
split-complementary
#1A1F8E #8E4F1A #598E1A
monochromatic
#070827 #11145A #1A1F8E #232AC2 #454CDD
Accessibility & contrast
On white
12.88
#1A1F8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#1A1F8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1A1F8E
12.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1A1F8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1A1F8E | 1.00 | 12.88 | 1.63 | 12.88 |
| #FFFFFF | 12.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#002C8C
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #1a1f8e; /* rgb */ color: rgb(26, 31, 142); /* oklch */ color: oklch(33.2% 0.176 270.0);
Tailwind
colors: {
custom: {
50: '#6e5cb0',
500: '#1a1f8e',
950: '#000000',
},
}SCSS
$custom: #1a1f8e; $custom-light: #6e5cb0; $custom-dark: #000000;
JSON
{
"hex": "#1a1f8e",
"rgb": {
"r": 26,
"g": 31,
"b": 142
},
"hsl": {
"h": 237.414,
"s": 69.048,
"l": 32.941
},
"oklch": {
"l": 0.33237,
"c": 0.17589,
"h": 270
},
"luminance": 0.03153
}Semantic roles & 50–950 ramp
primary
#1A1F8E
secondary
#BEB945
accent
#E43CEC
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980