#18198B#18198B
#18198B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.0% C 0.178 H 270.1°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).
Color values
| HEX | #18198B |
|---|---|
| RGB | rgb(24, 25, 139) |
| HSL | hsl(239, 71%, 32%) |
| HSV | hsv(239, 83%, 55%) |
| CMYK | cmyk(82.7%, 82%, 0%, 45.5%) |
| CIE-LAB | lab(19.03, 41.04, -61.54) |
| CIE-LCH | lch(19.03, 73.97, 303.70°) |
| OKLab | oklab(31.97% 0.0002 -0.1782) |
| OKLCH | oklch(31.97% 0.178 270.1) |
| XYZ | xyz(5.3829, 2.7529, 24.6688) |
| Luminance | 0.0275 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.27
Darkblue
#00008B
ΔE00 4.03
Midnight Blue
#191970
ΔE00 4.22
Cobalt Blue
#030AA7
ΔE00 4.26
Navy
#000080
ΔE00 4.60
Royal Blue (survey)
#0504AA
ΔE00 4.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18198B #8B8A18
analogous
#18538B #18198B #51188B
triadic
#18198B #8B1819 #198B18
tetradic
#18198B #8B1853 #8B8A18 #188B51
square
#18198B #8B1853 #8B8A18 #188B51
split-complementary
#18198B #8B5118 #538B18
monochromatic
#060623 #0F1057 #18198B #2122BF #3F41DE
Accessibility & contrast
On white
13.54
#18198B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#18198B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18198B
13.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18198B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18198B | 1.00 | 13.54 | 1.55 | 13.54 |
| #FFFFFF | 13.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348E
Deuteranopia (green-blind)
#002889
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #18198b; /* rgb */ color: rgb(24, 25, 139); /* oklch */ color: oklch(32.0% 0.178 270.1);
Tailwind
colors: {
custom: {
50: '#6d58ae',
500: '#18198b',
950: '#000000',
},
}SCSS
$custom: #18198b; $custom-light: #6d58ae; $custom-dark: #000000;
JSON
{
"hex": "#18198b",
"rgb": {
"r": 24,
"g": 25,
"b": 139
},
"hsl": {
"h": 239.478,
"s": 70.552,
"l": 31.961
},
"oklch": {
"l": 0.31969,
"c": 0.17819,
"h": 270.1
},
"luminance": 0.02754
}Semantic roles & 50–950 ramp
primary
#18198B
secondary
#BEBD40
accent
#EC3AED
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080310
muted
#7B787F