#12197F#12197F
#12197F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.2% C 0.165 H 268.7°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).
Color values
| HEX | #12197F |
|---|---|
| RGB | rgb(18, 25, 127) |
| HSL | hsl(236, 75%, 28%) |
| HSV | hsv(236, 86%, 50%) |
| CMYK | cmyk(85.8%, 80.3%, 0%, 50.2%) |
| CIE-LAB | lab(17.25, 36.56, -56.92) |
| CIE-LCH | lch(17.25, 67.65, 302.72°) |
| OKLab | oklab(30.22% -0.0038 -0.1649) |
| OKLCH | oklch(30.22% 0.165 268.7) |
| XYZ | xyz(4.4265, 2.3556, 20.2959) |
| Luminance | 0.0236 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.45
Royal
#0C1793
ΔE00 2.97
Dark Royal Blue
#02066F
ΔE00 4.36
Navy
#000080
ΔE00 4.51
Darkblue
#00008B
ΔE00 4.58
Deep Blue
#040273
ΔE00 4.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#12197F #7F7812
analogous
#124F7F #12197F #41127F
triadic
#12197F #7F1219 #197F12
tetradic
#12197F #7F124F #7F7812 #127F41
square
#12197F #7F124F #7F7812 #127F41
split-complementary
#12197F #7F4112 #4F7F12
monochromatic
#04051B #0A0E49 #12197F #1A24B5 #2B36E1
Accessibility & contrast
On white
14.27
#12197F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#12197F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #12197F
14.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##12197F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##12197F | 1.00 | 14.27 | 1.47 | 14.27 |
| #FFFFFF | 14.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00257D
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #12197f; /* rgb */ color: rgb(18, 25, 127); /* oklch */ color: oklch(30.2% 0.165 268.7);
Tailwind
colors: {
custom: {
50: '#6857a5',
500: '#12197f',
950: '#000000',
},
}SCSS
$custom: #12197f; $custom-light: #6857a5; $custom-dark: #000000;
JSON
{
"hex": "#12197f",
"rgb": {
"r": 18,
"g": 25,
"b": 127
},
"hsl": {
"h": 236.147,
"s": 75.172,
"l": 28.431
},
"oklch": {
"l": 0.30216,
"c": 0.16495,
"h": 268.7
},
"luminance": 0.02356
}Semantic roles & 50–950 ramp
primary
#12197F
secondary
#B5AD38
accent
#E636F2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F