#18197F#18197F
#18197F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.163 H 270.9°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).
Color values
| HEX | #18197F |
|---|---|
| RGB | rgb(24, 25, 127) |
| HSL | hsl(239, 68%, 30%) |
| HSV | hsv(239, 81%, 50%) |
| CMYK | cmyk(81.1%, 80.3%, 0%, 50.2%) |
| CIE-LAB | lab(17.56, 36.95, -56.40) |
| CIE-LCH | lch(17.56, 67.43, 303.23°) |
| OKLab | oklab(30.52% 0.0027 -0.1633) |
| OKLCH | oklch(30.52% 0.163 270.9) |
| XYZ | xyz(4.5538, 2.4212, 20.3019) |
| Luminance | 0.0242 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.43
Royal
#0C1793
ΔE00 2.97
Dark Royal Blue
#02066F
ΔE00 4.40
Navy
#000080
ΔE00 4.50
Darkblue
#00008B
ΔE00 4.55
Deep Blue
#040273
ΔE00 4.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18197F #7F7E18
analogous
#184D7F #18197F #4A187F
triadic
#18197F #7F1819 #197F18
tetradic
#18197F #7F184D #7F7E18 #187F4A
square
#18197F #7F184D #7F7E18 #187F4A
split-complementary
#18197F #7F4A18 #4D7F18
monochromatic
#05051A #0E0F4C #18197F #2223B2 #383AD9
Accessibility & contrast
On white
14.15
#18197F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#18197F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18197F
14.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18197F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18197F | 1.00 | 14.15 | 1.48 | 14.15 |
| #FFFFFF | 14.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #18197f; /* rgb */ color: rgb(24, 25, 127); /* oklch */ color: oklch(30.5% 0.163 270.9);
Tailwind
colors: {
custom: {
50: '#6a58a5',
500: '#18197f',
950: '#000000',
},
}SCSS
$custom: #18197f; $custom-light: #6a58a5; $custom-dark: #000000;
JSON
{
"hex": "#18197f",
"rgb": {
"r": 24,
"g": 25,
"b": 127
},
"hsl": {
"h": 239.417,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.30516,
"c": 0.16332,
"h": 270.9
},
"luminance": 0.02422
}Semantic roles & 50–950 ramp
primary
#18197F
secondary
#B3B23F
accent
#E93DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F