#1A157F#1A157F
#1A157F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.166 H 272.2°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).
Color values
| HEX | #1A157F |
|---|---|
| RGB | rgb(26, 21, 127) |
| HSL | hsl(243, 72%, 29%) |
| HSV | hsv(243, 83%, 50%) |
| CMYK | cmyk(79.5%, 83.5%, 0%, 50.2%) |
| CIE-LAB | lab(16.93, 39.26, -57.44) |
| CIE-LCH | lch(16.93, 69.57, 304.35°) |
| OKLab | oklab(30.11% 0.0064 -0.1662) |
| OKLCH | oklch(30.11% 0.166 272.2) |
| XYZ | xyz(4.5236, 2.2878, 20.2777) |
| Luminance | 0.0229 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.79
Royal
#0C1793
ΔE00 2.93
Navy
#000080
ΔE00 3.65
Darkblue
#00008B
ΔE00 3.76
Dark Royal Blue
#02066F
ΔE00 3.79
Deep Blue
#040273
ΔE00 3.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1A157F #7A7F15
analogous
#15457F #1A157F #4F157F
triadic
#1A157F #7F1A15 #157F1A
tetradic
#1A157F #7F1545 #7A7F15 #157F4F
square
#1A157F #7F1545 #7A7F15 #157F4F
split-complementary
#1A157F #7F4F15 #457F15
monochromatic
#05041A #0F0C4A #1A157F #251EB4 #3931DD
Accessibility & contrast
On white
14.41
#1A157F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#1A157F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1A157F
14.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1A157F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1A157F | 1.00 | 14.41 | 1.46 | 14.41 |
| #FFFFFF | 14.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00247D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #1a157f; /* rgb */ color: rgb(26, 21, 127); /* oklch */ color: oklch(30.1% 0.166 272.2);
Tailwind
colors: {
custom: {
50: '#6b55a5',
500: '#1a157f',
950: '#000000',
},
}SCSS
$custom: #1a157f; $custom-light: #6b55a5; $custom-dark: #000000;
JSON
{
"hex": "#1a157f",
"rgb": {
"r": 26,
"g": 21,
"b": 127
},
"hsl": {
"h": 242.83,
"s": 71.622,
"l": 29.02
},
"oklch": {
"l": 0.30109,
"c": 0.16633,
"h": 272.2
},
"luminance": 0.02288
}Semantic roles & 50–950 ramp
primary
#1A157F
secondary
#AEB43C
accent
#EE39E6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F