#181A7E#181A7E
#181A7E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.161 H 270.9°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).
Color values
| HEX | #181A7E |
|---|---|
| RGB | rgb(24, 26, 126) |
| HSL | hsl(239, 68%, 29%) |
| HSV | hsv(239, 81%, 49%) |
| CMYK | cmyk(81%, 79.4%, 0%, 50.6%) |
| CIE-LAB | lab(17.64, 36.03, -55.63) |
| CIE-LCH | lch(17.64, 66.28, 302.93°) |
| OKLab | oklab(30.54% 0.0025 -0.1611) |
| OKLCH | oklch(30.54% 0.161 270.9) |
| XYZ | xyz(4.5107, 2.4388, 19.9676) |
| Luminance | 0.0244 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.23
Royal
#0C1793
ΔE00 3.18
Dark Royal Blue
#02066F
ΔE00 4.54
Navy
#000080
ΔE00 4.77
Darkblue
#00008B
ΔE00 4.85
Deep Blue
#040273
ΔE00 4.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#181A7E #7E7C18
analogous
#184D7E #181A7E #49187E
triadic
#181A7E #7E181A #1A7E18
tetradic
#181A7E #7E184D #7E7C18 #187E49
square
#181A7E #7E184D #7E7C18 #187E49
split-complementary
#181A7E #7E4918 #4D7E18
monochromatic
#05051A #0E0F4B #181A7E #2225B1 #373BD9
Accessibility & contrast
On white
14.11
#181A7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#181A7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #181A7E
14.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##181A7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##181A7E | 1.00 | 14.11 | 1.49 | 14.11 |
| #FFFFFF | 14.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00267C
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #181a7e; /* rgb */ color: rgb(24, 26, 126); /* oklch */ color: oklch(30.5% 0.161 270.9);
Tailwind
colors: {
custom: {
50: '#6958a5',
500: '#181a7e',
950: '#000000',
},
}SCSS
$custom: #181a7e; $custom-light: #6958a5; $custom-dark: #000000;
JSON
{
"hex": "#181a7e",
"rgb": {
"r": 24,
"g": 26,
"b": 126
},
"hsl": {
"h": 238.824,
"s": 68,
"l": 29.412
},
"oklch": {
"l": 0.30538,
"c": 0.1611,
"h": 270.9
},
"luminance": 0.02439
}Semantic roles & 50–950 ramp
primary
#181A7E
secondary
#B2B03F
accent
#E73DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F