#18398E#18398E
#18398E is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.8% C 0.146 H 264.3°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).
Color values
| HEX | #18398E |
|---|---|
| RGB | rgb(24, 57, 142) |
| HSL | hsl(223, 71%, 33%) |
| HSV | hsv(223, 83%, 56%) |
| CMYK | cmyk(83.1%, 59.9%, 0%, 44.3%) |
| CIE-LAB | lab(26.94, 21.67, -50.38) |
| CIE-LCH | lch(26.94, 54.84, 293.27°) |
| OKLab | oklab(37.81% -0.0145 -0.1456) |
| OKLCH | oklch(37.81% 0.146 264.3) |
| XYZ | xyz(6.7206, 5.0726, 26.2109) |
| Luminance | 0.0507 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.80
Darkish Blue
#014182
ΔE00 5.11
Cobalt (survey)
#1E488F
ΔE00 5.17
Cobalt
#0047AB
ΔE00 5.69
Twilight Blue
#0A437A
ΔE00 6.29
Marine Blue
#01386A
ΔE00 6.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18398E #8E6D18
analogous
#18748E #18398E #32188E
triadic
#18398E #8E1839 #398E18
tetradic
#18398E #8E1874 #8E6D18 #188E32
square
#18398E #8E1874 #8E6D18 #188E32
split-complementary
#18398E #8E3218 #748E18
monochromatic
#060F25 #0F245A #18398E #214EC2 #416DDF
Accessibility & contrast
On white
10.42
#18398E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.01
#18398E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18398E
10.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18398E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18398E | 1.00 | 10.42 | 2.01 | 10.42 |
| #FFFFFF | 10.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#004F5D
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #18398e; /* rgb */ color: rgb(24, 57, 142); /* oklch */ color: oklch(37.8% 0.146 264.3);
Tailwind
colors: {
custom: {
50: '#6b6eb0',
500: '#18398e',
950: '#000000',
},
}SCSS
$custom: #18398e; $custom-light: #6b6eb0; $custom-dark: #000000;
JSON
{
"hex": "#18398e",
"rgb": {
"r": 24,
"g": 57,
"b": 142
},
"hsl": {
"h": 223.22,
"s": 71.084,
"l": 32.549
},
"oklch": {
"l": 0.37811,
"c": 0.14634,
"h": 264.3
},
"luminance": 0.05073
}Semantic roles & 50–950 ramp
primary
#18398E
secondary
#C09D42
accent
#BC3AEE
background
#F6F6FA
surface
#ECEBF5
border
#C7C6CF
text
#080710
muted
#7A7A7F