#18197E#18197E
#18197E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.162 H 271.0°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).
Color values
| HEX | #18197E |
|---|---|
| RGB | rgb(24, 25, 126) |
| HSL | hsl(239, 68%, 29%) |
| HSV | hsv(239, 81%, 49%) |
| CMYK | cmyk(81%, 80.2%, 0%, 50.6%) |
| CIE-LAB | lab(17.44, 36.60, -55.96) |
| CIE-LCH | lch(17.44, 66.87, 303.19°) |
| OKLab | oklab(30.4% 0.0029 -0.162) |
| OKLCH | oklch(30.4% 0.162 271) |
| XYZ | xyz(4.4889, 2.3953, 19.9604) |
| Luminance | 0.0240 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.27
Royal
#0C1793
ΔE00 3.12
Dark Royal Blue
#02066F
ΔE00 4.34
Navy
#000080
ΔE00 4.53
Darkblue
#00008B
ΔE00 4.63
Deep Blue
#040273
ΔE00 4.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18197E #7E7D18
analogous
#184C7E #18197E #4A187E
triadic
#18197E #7E1819 #197E18
tetradic
#18197E #7E184C #7E7D18 #187E4A
square
#18197E #7E184C #7E7D18 #187E4A
split-complementary
#18197E #7E4A18 #4C7E18
monochromatic
#05051A #0E0F4B #18197E #2223B1 #3739D9
Accessibility & contrast
On white
14.20
#18197E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#18197E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18197E
14.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18197E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18197E | 1.00 | 14.20 | 1.48 | 14.20 |
| #FFFFFF | 14.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.20 | 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: #18197e; /* rgb */ color: rgb(24, 25, 126); /* oklch */ color: oklch(30.4% 0.162 271.0);
Tailwind
colors: {
custom: {
50: '#6958a5',
500: '#18197e',
950: '#000000',
},
}SCSS
$custom: #18197e; $custom-light: #6958a5; $custom-dark: #000000;
JSON
{
"hex": "#18197e",
"rgb": {
"r": 24,
"g": 25,
"b": 126
},
"hsl": {
"h": 239.412,
"s": 68,
"l": 29.412
},
"oklch": {
"l": 0.30396,
"c": 0.16207,
"h": 271
},
"luminance": 0.02396
}Semantic roles & 50–950 ramp
primary
#18197E
secondary
#B2B13F
accent
#E93DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F