#18198F#18198F
#18198F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.183 H 269.8°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).
Color values
| HEX | #18198F |
|---|---|
| RGB | rgb(24, 25, 143) |
| HSL | hsl(239, 71%, 33%) |
| HSV | hsv(239, 83%, 56%) |
| CMYK | cmyk(83.2%, 82.5%, 0%, 43.9%) |
| CIE-LAB | lab(19.52, 42.37, -63.21) |
| CIE-LCH | lch(19.52, 76.09, 303.83°) |
| OKLab | oklab(32.46% -0.0006 -0.183) |
| OKLCH | oklch(32.46% 0.183 269.8) |
| XYZ | xyz(5.6806, 2.8720, 26.2362) |
| Luminance | 0.0287 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 0.84
Cobalt Blue
#030AA7
ΔE00 3.75
Darkblue
#00008B
ΔE00 4.05
Royal Blue (survey)
#0504AA
ΔE00 4.33
Midnight Blue
#191970
ΔE00 4.79
Navy
#000080
ΔE00 4.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18198F #8F8E18
analogous
#18548F #18198F #53188F
triadic
#18198F #8F1819 #198F18
tetradic
#18198F #8F1854 #8F8E18 #188F53
square
#18198F #8F1854 #8F8E18 #188F53
split-complementary
#18198F #8F5318 #548F18
monochromatic
#060726 #0F105B #18198F #2122C3 #4243DF
Accessibility & contrast
On white
13.34
#18198F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#18198F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18198F
13.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18198F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18198F | 1.00 | 13.34 | 1.57 | 13.34 |
| #FFFFFF | 13.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#00298D
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #18198f; /* rgb */ color: rgb(24, 25, 143); /* oklch */ color: oklch(32.5% 0.183 269.8);
Tailwind
colors: {
custom: {
50: '#6e59b1',
500: '#18198f',
950: '#000000',
},
}SCSS
$custom: #18198f; $custom-light: #6e59b1; $custom-dark: #000000;
JSON
{
"hex": "#18198f",
"rgb": {
"r": 24,
"g": 25,
"b": 143
},
"hsl": {
"h": 239.496,
"s": 71.257,
"l": 32.745
},
"oklch": {
"l": 0.3246,
"c": 0.18303,
"h": 269.8
},
"luminance": 0.02873
}Semantic roles & 50–950 ramp
primary
#18198F
secondary
#C0BF43
accent
#EC3AEE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980