#18177B#18177B
#18177B is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.160 H 271.5°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).
Color values
| HEX | #18177B |
|---|---|
| RGB | rgb(24, 23, 123) |
| HSL | hsl(241, 68%, 29%) |
| HSV | hsv(241, 81%, 48%) |
| CMYK | cmyk(80.5%, 81.3%, 0%, 51.8%) |
| CIE-LAB | lab(16.68, 36.69, -55.30) |
| CIE-LCH | lch(16.68, 66.36, 303.56°) |
| OKLab | oklab(29.76% 0.0042 -0.1601) |
| OKLCH | oklch(29.76% 0.16 271.5) |
| XYZ | xyz(4.2570, 2.2366, 18.9424) |
| Luminance | 0.0224 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 1.97
Royal
#0C1793
ΔE00 3.51
Dark Royal Blue
#02066F
ΔE00 3.79
Deep Blue
#040273
ΔE00 4.13
Navy
#000080
ΔE00 4.19
Darkblue
#00008B
ΔE00 4.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18177B #7A7B17
analogous
#17487B #18177B #4A177B
triadic
#18177B #7B1817 #177B18
tetradic
#18177B #7B1748 #7A7B17 #177B4A
square
#18177B #7B1748 #7A7B17 #177B4A
split-complementary
#18177B #7B4A17 #487B17
monochromatic
#05051A #0E0D47 #18177B #2221AF #3533D9
Accessibility & contrast
On white
14.51
#18177B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#18177B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18177B
14.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18177B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18177B | 1.00 | 14.51 | 1.45 | 14.51 |
| #FFFFFF | 14.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E7E
Deuteranopia (green-blind)
#002479
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #18177b; /* rgb */ color: rgb(24, 23, 123); /* oklch */ color: oklch(29.8% 0.160 271.5);
Tailwind
colors: {
custom: {
50: '#6956a2',
500: '#18177b',
950: '#000000',
},
}SCSS
$custom: #18177b; $custom-light: #6956a2; $custom-dark: #000000;
JSON
{
"hex": "#18177b",
"rgb": {
"r": 24,
"g": 23,
"b": 123
},
"hsl": {
"h": 240.6,
"s": 68.493,
"l": 28.627
},
"oklch": {
"l": 0.2976,
"c": 0.16015,
"h": 271.5
},
"luminance": 0.02237
}Semantic roles & 50–950 ramp
primary
#18177B
secondary
#AFB03E
accent
#EB3CEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F