#1A1F8B#1A1F8B
#1A1F8B is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.172 H 270.2°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).
Color values
| HEX | #1A1F8B |
|---|---|
| RGB | rgb(26, 31, 139) |
| HSL | hsl(237, 68%, 32%) |
| HSV | hsv(237, 81%, 55%) |
| CMYK | cmyk(81.3%, 77.7%, 0%, 45.5%) |
| CIE-LAB | lab(20.29, 37.82, -59.43) |
| CIE-LCH | lch(20.29, 70.45, 302.47°) |
| OKLab | oklab(32.89% 0.0006 -0.1721) |
| OKLCH | oklch(32.89% 0.172 270.2) |
| XYZ | xyz(5.5746, 3.0630, 24.7185) |
| Luminance | 0.0306 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.18
Midnight Blue
#191970
ΔE00 4.25
Cobalt Blue
#030AA7
ΔE00 5.08
Darkblue
#00008B
ΔE00 5.41
Royal Blue (survey)
#0504AA
ΔE00 5.69
Navy
#000080
ΔE00 5.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1A1F8B #8B861A
analogous
#1A588B #1A1F8B #4D1A8B
triadic
#1A1F8B #8B1A1F #1F8B1A
tetradic
#1A1F8B #8B1A58 #8B861A #1A8B4D
square
#1A1F8B #8B1A58 #8B861A #1A8B4D
split-complementary
#1A1F8B #8B4D1A #588B1A
monochromatic
#070824 #101457 #1A1F8B #242ABF #434ADC
Accessibility & contrast
On white
13.02
#1A1F8B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#1A1F8B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1A1F8B
13.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1A1F8B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1A1F8B | 1.00 | 13.02 | 1.61 | 13.02 |
| #FFFFFF | 13.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#002B89
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #1a1f8b; /* rgb */ color: rgb(26, 31, 139); /* oklch */ color: oklch(32.9% 0.172 270.2);
Tailwind
colors: {
custom: {
50: '#6d5cae',
500: '#1a1f8b',
950: '#000000',
},
}SCSS
$custom: #1a1f8b; $custom-light: #6d5cae; $custom-dark: #000000;
JSON
{
"hex": "#1a1f8b",
"rgb": {
"r": 26,
"g": 31,
"b": 139
},
"hsl": {
"h": 237.345,
"s": 68.485,
"l": 32.353
},
"oklch": {
"l": 0.32889,
"c": 0.17213,
"h": 270.2
},
"luminance": 0.03064
}Semantic roles & 50–950 ramp
primary
#1A1F8B
secondary
#BDB844
accent
#E43CEB
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F