#1A218E#1A218E
#1A218E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.174 H 269.8°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).
Color values
| HEX | #1A218E |
|---|---|
| RGB | rgb(26, 33, 142) |
| HSL | hsl(236, 69%, 33%) |
| HSV | hsv(236, 82%, 56%) |
| CMYK | cmyk(81.7%, 76.8%, 0%, 44.3%) |
| CIE-LAB | lab(21.05, 37.70, -60.04) |
| CIE-LCH | lch(21.05, 70.90, 302.12°) |
| OKLab | oklab(33.53% -0.0007 -0.1739) |
| OKLCH | oklch(33.53% 0.174 269.8) |
| XYZ | xyz(5.8507, 3.2596, 25.9068) |
| Luminance | 0.0326 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.40
Midnight Blue
#191970
ΔE00 4.78
Cobalt Blue
#030AA7
ΔE00 5.11
Royal Blue (survey)
#0504AA
ΔE00 5.72
Darkblue
#00008B
ΔE00 5.87
Indigo Blue
#3A18B1
ΔE00 6.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1A218E #8E871A
analogous
#1A5B8E #1A218E #4D1A8E
triadic
#1A218E #8E1A21 #218E1A
tetradic
#1A218E #8E1A5B #8E871A #1A8E4D
square
#1A218E #8E1A5B #8E871A #1A8E4D
split-complementary
#1A218E #8E4D1A #5B8E1A
monochromatic
#070927 #11155A #1A218E #232DC2 #454FDD
Accessibility & contrast
On white
12.71
#1A218E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#1A218E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1A218E
12.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1A218E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1A218E | 1.00 | 12.71 | 1.65 | 12.71 |
| #FFFFFF | 12.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#002D8C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #1a218e; /* rgb */ color: rgb(26, 33, 142); /* oklch */ color: oklch(33.5% 0.174 269.8);
Tailwind
colors: {
custom: {
50: '#6e5eb0',
500: '#1a218e',
950: '#000000',
},
}SCSS
$custom: #1a218e; $custom-light: #6e5eb0; $custom-dark: #000000;
JSON
{
"hex": "#1a218e",
"rgb": {
"r": 26,
"g": 33,
"b": 142
},
"hsl": {
"h": 236.379,
"s": 69.048,
"l": 32.941
},
"oklch": {
"l": 0.3353,
"c": 0.17393,
"h": 269.8
},
"luminance": 0.0326
}Semantic roles & 50–950 ramp
primary
#1A218E
secondary
#BEB745
accent
#E13CEC
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#080411
muted
#7B7980