#181F78#181F78
#181F78 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.6% C 0.148 H 270.5°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).
Color values
| HEX | #181F78 |
|---|---|
| RGB | rgb(24, 31, 120) |
| HSL | hsl(236, 67%, 28%) |
| HSV | hsv(236, 80%, 47%) |
| CMYK | cmyk(80%, 74.2%, 0%, 52.9%) |
| CIE-LAB | lab(18.05, 30.77, -51.11) |
| CIE-LCH | lch(18.05, 59.66, 301.05°) |
| OKLab | oklab(30.63% 0.0014 -0.148) |
| OKLCH | oklch(30.63% 0.148 270.5) |
| XYZ | xyz(4.2557, 2.5298, 18.0297) |
| Luminance | 0.0253 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 1.91
Royal
#0C1793
ΔE00 4.70
Dark Royal Blue
#02066F
ΔE00 5.61
Darkblue (survey)
#030764
ΔE00 6.01
Deep Blue
#040273
ΔE00 6.19
Navy
#000080
ΔE00 6.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#181F78 #787118
analogous
#184F78 #181F78 #411878
triadic
#181F78 #78181F #1F7818
tetradic
#181F78 #78184F #787118 #187841
square
#181F78 #78184F #787118 #187841
split-complementary
#181F78 #784118 #4F7818
monochromatic
#05071A #0E1245 #181F78 #222CAB #3440D6
Accessibility & contrast
On white
13.94
#181F78 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#181F78 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #181F78
13.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##181F78 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##181F78 | 1.00 | 13.94 | 1.51 | 13.94 |
| #FFFFFF | 13.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317B
Deuteranopia (green-blind)
#002776
Tritanopia (blue-blind)
#003849
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #181f78; /* rgb */ color: rgb(24, 31, 120); /* oklch */ color: oklch(30.6% 0.148 270.5);
Tailwind
colors: {
custom: {
50: '#675ba0',
500: '#181f78',
950: '#000000',
},
}SCSS
$custom: #181f78; $custom-light: #675ba0; $custom-dark: #000000;
JSON
{
"hex": "#181f78",
"rgb": {
"r": 24,
"g": 31,
"b": 120
},
"hsl": {
"h": 235.625,
"s": 66.667,
"l": 28.235
},
"oklch": {
"l": 0.30629,
"c": 0.14801,
"h": 270.5
},
"luminance": 0.0253
}Semantic roles & 50–950 ramp
primary
#181F78
secondary
#ADA53F
accent
#DD3EEA
background
#F6F5FA
surface
#EBE9F3
border
#C6C5CD
text
#07040F
muted
#7A797F