#18197B#18197B
#18197B is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.158 H 271.3°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).
Color values
| HEX | #18197B |
|---|---|
| RGB | rgb(24, 25, 123) |
| HSL | hsl(239, 67%, 29%) |
| HSV | hsv(239, 80%, 48%) |
| CMYK | cmyk(80.5%, 79.7%, 0%, 51.8%) |
| CIE-LAB | lab(17.08, 35.55, -54.64) |
| CIE-LCH | lch(17.08, 65.19, 303.05°) |
| OKLab | oklab(30.04% 0.0035 -0.1582) |
| OKLCH | oklch(30.04% 0.158 271.3) |
| XYZ | xyz(4.2983, 2.3190, 18.9561) |
| Luminance | 0.0232 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 1.80
Royal
#0C1793
ΔE00 3.58
Dark Royal Blue
#02066F
ΔE00 4.19
Deep Blue
#040273
ΔE00 4.59
Navy
#000080
ΔE00 4.66
Darkblue
#00008B
ΔE00 4.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18197B #7B7A18
analogous
#184B7B #18197B #49187B
triadic
#18197B #7B1819 #197B18
tetradic
#18197B #7B184B #7B7A18 #187B49
square
#18197B #7B184B #7B7A18 #187B49
split-complementary
#18197B #7B4918 #4B7B18
monochromatic
#05051A #0E0F48 #18197B #2223AE #3637D8
Accessibility & contrast
On white
14.34
#18197B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#18197B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18197B
14.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18197B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18197B | 1.00 | 14.34 | 1.46 | 14.34 |
| #FFFFFF | 14.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002579
Tritanopia (blue-blind)
#003749
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #18197b; /* rgb */ color: rgb(24, 25, 123); /* oklch */ color: oklch(30.0% 0.158 271.3);
Tailwind
colors: {
custom: {
50: '#6957a2',
500: '#18197b',
950: '#000000',
},
}SCSS
$custom: #18197b; $custom-light: #6957a2; $custom-dark: #000000;
JSON
{
"hex": "#18197b",
"rgb": {
"r": 24,
"g": 25,
"b": 123
},
"hsl": {
"h": 239.394,
"s": 67.347,
"l": 28.824
},
"oklch": {
"l": 0.30038,
"c": 0.15825,
"h": 271.3
},
"luminance": 0.0232
}Semantic roles & 50–950 ramp
primary
#18197B
secondary
#B0AF3F
accent
#E83EEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F