#18198E#18198E
#18198E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.3% C 0.182 H 269.9°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).
Color values
| HEX | #18198E |
|---|---|
| RGB | rgb(24, 25, 142) |
| HSL | hsl(239, 71%, 33%) |
| HSV | hsv(239, 83%, 56%) |
| CMYK | cmyk(83.1%, 82.4%, 0%, 44.3%) |
| CIE-LAB | lab(19.40, 42.04, -62.79) |
| CIE-LCH | lch(19.40, 75.56, 303.80°) |
| OKLab | oklab(32.34% -0.0004 -0.1818) |
| OKLCH | oklch(32.34% 0.182 269.9) |
| XYZ | xyz(5.6051, 2.8418, 25.8390) |
| Luminance | 0.0284 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 0.93
Cobalt Blue
#030AA7
ΔE00 3.87
Darkblue
#00008B
ΔE00 4.03
Royal Blue (survey)
#0504AA
ΔE00 4.45
Midnight Blue
#191970
ΔE00 4.65
Navy
#000080
ΔE00 4.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18198E #8E8D18
analogous
#18548E #18198E #52188E
triadic
#18198E #8E1819 #198E18
tetradic
#18198E #8E1854 #8E8D18 #188E52
square
#18198E #8E1854 #8E8D18 #188E52
split-complementary
#18198E #8E5218 #548E18
monochromatic
#060725 #0F105A #18198E #2122C2 #4143DF
Accessibility & contrast
On white
13.39
#18198E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#18198E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18198E
13.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18198E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18198E | 1.00 | 13.39 | 1.57 | 13.39 |
| #FFFFFF | 13.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003591
Deuteranopia (green-blind)
#00298C
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #18198e; /* rgb */ color: rgb(24, 25, 142); /* oklch */ color: oklch(32.3% 0.182 269.9);
Tailwind
colors: {
custom: {
50: '#6e59b0',
500: '#18198e',
950: '#000000',
},
}SCSS
$custom: #18198e; $custom-light: #6e59b0; $custom-dark: #000000;
JSON
{
"hex": "#18198e",
"rgb": {
"r": 24,
"g": 25,
"b": 142
},
"hsl": {
"h": 239.492,
"s": 71.084,
"l": 32.549
},
"oklch": {
"l": 0.32337,
"c": 0.18182,
"h": 269.9
},
"luminance": 0.02842
}Semantic roles & 50–950 ramp
primary
#18198E
secondary
#C0BF42
accent
#EC3AEE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980