#18197C#18197C
#18197C is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.160 H 271.2°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).
Color values
| HEX | #18197C |
|---|---|
| RGB | rgb(24, 25, 124) |
| HSL | hsl(239, 68%, 29%) |
| HSV | hsv(239, 81%, 49%) |
| CMYK | cmyk(80.6%, 79.8%, 0%, 51.4%) |
| CIE-LAB | lab(17.20, 35.90, -55.08) |
| CIE-LCH | lch(17.20, 65.75, 303.10°) |
| OKLab | oklab(30.16% 0.0033 -0.1595) |
| OKLCH | oklch(30.16% 0.16 271.2) |
| XYZ | xyz(4.3612, 2.3442, 19.2875) |
| Luminance | 0.0234 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 1.96
Royal
#0C1793
ΔE00 3.43
Dark Royal Blue
#02066F
ΔE00 4.23
Deep Blue
#040273
ΔE00 4.60
Navy
#000080
ΔE00 4.61
Darkblue
#00008B
ΔE00 4.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18197C #7C7B18
analogous
#184B7C #18197C #49187C
triadic
#18197C #7C1819 #197C18
tetradic
#18197C #7C184B #7C7B18 #187C49
square
#18197C #7C184B #7C7B18 #187C49
split-complementary
#18197C #7C4918 #4B7C18
monochromatic
#05051A #0E0F49 #18197C #2223AF #3638D8
Accessibility & contrast
On white
14.30
#18197C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#18197C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18197C
14.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18197C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18197C | 1.00 | 14.30 | 1.47 | 14.30 |
| #FFFFFF | 14.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00257A
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #18197c; /* rgb */ color: rgb(24, 25, 124); /* oklch */ color: oklch(30.2% 0.160 271.2);
Tailwind
colors: {
custom: {
50: '#6957a3',
500: '#18197c',
950: '#000000',
},
}SCSS
$custom: #18197c; $custom-light: #6957a3; $custom-dark: #000000;
JSON
{
"hex": "#18197c",
"rgb": {
"r": 24,
"g": 25,
"b": 124
},
"hsl": {
"h": 239.4,
"s": 67.568,
"l": 29.02
},
"oklch": {
"l": 0.30157,
"c": 0.15952,
"h": 271.2
},
"luminance": 0.02345
}Semantic roles & 50–950 ramp
primary
#18197C
secondary
#B1AF3F
accent
#E93DEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F