#18177E#18177E
#18177E is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.164 H 271.2°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).
Color values
| HEX | #18177E |
|---|---|
| RGB | rgb(24, 23, 126) |
| HSL | hsl(241, 69%, 29%) |
| HSV | hsv(241, 82%, 49%) |
| CMYK | cmyk(81%, 81.7%, 0%, 50.6%) |
| CIE-LAB | lab(17.05, 37.72, -56.61) |
| CIE-LCH | lch(17.05, 68.02, 303.68°) |
| OKLab | oklab(30.12% 0.0036 -0.1639) |
| OKLCH | oklch(30.12% 0.164 271.2) |
| XYZ | xyz(4.4477, 2.3128, 19.9466) |
| Luminance | 0.0231 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.41
Royal
#0C1793
ΔE00 3.05
Dark Royal Blue
#02066F
ΔE00 3.97
Navy
#000080
ΔE00 4.07
Darkblue
#00008B
ΔE00 4.21
Deep Blue
#040273
ΔE00 4.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18177E #7D7E17
analogous
#17497E #18177E #4C177E
triadic
#18177E #7E1817 #177E18
tetradic
#18177E #7E1749 #7D7E17 #177E4C
square
#18177E #7E1749 #7D7E17 #177E4C
split-complementary
#18177E #7E4C17 #497E17
monochromatic
#05051A #0E0E4A #18177E #2220B2 #3735DA
Accessibility & contrast
On white
14.36
#18177E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#18177E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18177E
14.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18177E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18177E | 1.00 | 14.36 | 1.46 | 14.36 |
| #FFFFFF | 14.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00257C
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #18177e; /* rgb */ color: rgb(24, 23, 126); /* oklch */ color: oklch(30.1% 0.164 271.2);
Tailwind
colors: {
custom: {
50: '#6a56a5',
500: '#18177e',
950: '#000000',
},
}SCSS
$custom: #18177e; $custom-light: #6a56a5; $custom-dark: #000000;
JSON
{
"hex": "#18177e",
"rgb": {
"r": 24,
"g": 23,
"b": 126
},
"hsl": {
"h": 240.583,
"s": 69.128,
"l": 29.216
},
"oklch": {
"l": 0.30124,
"c": 0.16391,
"h": 271.2
},
"luminance": 0.02313
}Semantic roles & 50–950 ramp
primary
#18177E
secondary
#B2B33E
accent
#EC3CEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F