#18177F#18177F
#18177F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.165 H 271.2°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).
Color values
| HEX | #18177F |
|---|---|
| RGB | rgb(24, 23, 127) |
| HSL | hsl(241, 69%, 29%) |
| HSV | hsv(241, 82%, 50%) |
| CMYK | cmyk(81.1%, 81.9%, 0%, 50.2%) |
| CIE-LAB | lab(17.17, 38.06, -57.04) |
| CIE-LCH | lch(17.17, 68.57, 303.72°) |
| OKLab | oklab(30.25% 0.0033 -0.1651) |
| OKLCH | oklch(30.25% 0.165 271.2) |
| XYZ | xyz(4.5126, 2.3388, 20.2882) |
| Luminance | 0.0234 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.56
Royal
#0C1793
ΔE00 2.90
Navy
#000080
ΔE00 4.05
Dark Royal Blue
#02066F
ΔE00 4.05
Darkblue
#00008B
ΔE00 4.13
Deep Blue
#040273
ΔE00 4.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18177F #7E7F17
analogous
#174A7F #18177F #4C177F
triadic
#18177F #7F1817 #177F18
tetradic
#18177F #7F174A #7E7F17 #177F4C
square
#18177F #7F174A #7E7F17 #177F4C
split-complementary
#18177F #7F4C17 #4A7F17
monochromatic
#05051A #0E0E4B #18177F #2220B3 #3736DB
Accessibility & contrast
On white
14.31
#18177F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#18177F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18177F
14.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18177F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18177F | 1.00 | 14.31 | 1.47 | 14.31 |
| #FFFFFF | 14.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00257D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #18177f; /* rgb */ color: rgb(24, 23, 127); /* oklch */ color: oklch(30.2% 0.165 271.2);
Tailwind
colors: {
custom: {
50: '#6a56a5',
500: '#18177f',
950: '#000000',
},
}SCSS
$custom: #18177f; $custom-light: #6a56a5; $custom-dark: #000000;
JSON
{
"hex": "#18177f",
"rgb": {
"r": 24,
"g": 23,
"b": 127
},
"hsl": {
"h": 240.577,
"s": 69.333,
"l": 29.412
},
"oklch": {
"l": 0.30246,
"c": 0.16516,
"h": 271.2
},
"luminance": 0.02339
}Semantic roles & 50–950 ramp
primary
#18177F
secondary
#B2B43E
accent
#EC3CEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F