#1E178B#1E178B
#1E178B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.178 H 272.5°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).
Color values
| HEX | #1E178B |
|---|---|
| RGB | rgb(30, 23, 139) |
| HSL | hsl(244, 72%, 32%) |
| HSV | hsv(244, 83%, 55%) |
| CMYK | cmyk(78.4%, 83.5%, 0%, 45.5%) |
| CIE-LAB | lab(19.02, 42.44, -61.53) |
| CIE-LCH | lch(19.02, 74.75, 304.59°) |
| OKLab | oklab(32.06% 0.0079 -0.178) |
| OKLCH | oklch(32.06% 0.178 272.5) |
| XYZ | xyz(5.5005, 2.7523, 24.6624) |
| Luminance | 0.0275 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.47
Darkblue
#00008B
ΔE00 3.72
Cobalt Blue
#030AA7
ΔE00 4.07
Navy
#000080
ΔE00 4.33
Midnight Blue
#191970
ΔE00 4.39
Royal Blue (survey)
#0504AA
ΔE00 4.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1E178B #848B17
analogous
#174A8B #1E178B #58178B
triadic
#1E178B #8B1E17 #178B1E
tetradic
#1E178B #8B174A #848B17 #178B58
square
#1E178B #8B174A #848B17 #178B58
split-complementary
#1E178B #8B5817 #4A8B17
monochromatic
#070622 #130E56 #1E178B #2920C0 #473DDF
Accessibility & contrast
On white
13.54
#1E178B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#1E178B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1E178B
13.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1E178B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1E178B | 1.00 | 13.54 | 1.55 | 13.54 |
| #FFFFFF | 13.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348E
Deuteranopia (green-blind)
#002889
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #1e178b; /* rgb */ color: rgb(30, 23, 139); /* oklch */ color: oklch(32.1% 0.178 272.5);
Tailwind
colors: {
custom: {
50: '#6f58ae',
500: '#1e178b',
950: '#000000',
},
}SCSS
$custom: #1e178b; $custom-light: #6f58ae; $custom-dark: #000000;
JSON
{
"hex": "#1e178b",
"rgb": {
"r": 30,
"g": 23,
"b": 139
},
"hsl": {
"h": 243.621,
"s": 71.605,
"l": 31.765
},
"oklch": {
"l": 0.32061,
"c": 0.1782,
"h": 272.5
},
"luminance": 0.02753
}Semantic roles & 50–950 ramp
primary
#1E178B
secondary
#B7BF3F
accent
#EE39E3
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090310
muted
#7B787F