#1A228E#1A228E
#1A228E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.173 H 269.7°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).
Color values
| HEX | #1A228E |
|---|---|
| RGB | rgb(26, 34, 142) |
| HSL | hsl(236, 69%, 33%) |
| HSV | hsv(236, 82%, 56%) |
| CMYK | cmyk(81.7%, 76.1%, 0%, 44.3%) |
| CIE-LAB | lab(21.27, 37.10, -59.69) |
| CIE-LCH | lch(21.27, 70.28, 301.86°) |
| OKLab | oklab(33.68% -0.001 -0.1729) |
| OKLCH | oklch(33.68% 0.173 269.7) |
| XYZ | xyz(5.8788, 3.3160, 25.9162) |
| Luminance | 0.0332 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.65
Midnight Blue
#191970
ΔE00 4.85
Cobalt Blue
#030AA7
ΔE00 5.31
Royal Blue (survey)
#0504AA
ΔE00 5.93
Darkblue
#00008B
ΔE00 6.12
Indigo Blue
#3A18B1
ΔE00 6.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1A228E #8E861A
analogous
#1A5C8E #1A228E #4C1A8E
triadic
#1A228E #8E1A22 #228E1A
tetradic
#1A228E #8E1A5C #8E861A #1A8E4C
square
#1A228E #8E1A5C #8E861A #1A8E4C
split-complementary
#1A228E #8E4C1A #5C8E1A
monochromatic
#070927 #11165A #1A228E #232EC2 #4550DD
Accessibility & contrast
On white
12.62
#1A228E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#1A228E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1A228E
12.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1A228E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1A228E | 1.00 | 12.62 | 1.66 | 12.62 |
| #FFFFFF | 12.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#002D8C
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #1a228e; /* rgb */ color: rgb(26, 34, 142); /* oklch */ color: oklch(33.7% 0.173 269.7);
Tailwind
colors: {
custom: {
50: '#6d5eb0',
500: '#1a228e',
950: '#000000',
},
}SCSS
$custom: #1a228e; $custom-light: #6d5eb0; $custom-dark: #000000;
JSON
{
"hex": "#1a228e",
"rgb": {
"r": 26,
"g": 34,
"b": 142
},
"hsl": {
"h": 235.862,
"s": 69.048,
"l": 32.941
},
"oklch": {
"l": 0.33681,
"c": 0.17292,
"h": 269.7
},
"luminance": 0.03317
}Semantic roles & 50–950 ramp
primary
#1A228E
secondary
#BEB645
accent
#E03CEC
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#080411
muted
#7B7980