#12197E#12197E
#12197E is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.164 H 268.7°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).
Color values
| HEX | #12197E |
|---|---|
| RGB | rgb(18, 25, 126) |
| HSL | hsl(236, 75%, 28%) |
| HSV | hsv(236, 86%, 49%) |
| CMYK | cmyk(85.7%, 80.2%, 0%, 50.6%) |
| CIE-LAB | lab(17.13, 36.21, -56.48) |
| CIE-LCH | lch(17.13, 67.09, 302.66°) |
| OKLab | oklab(30.09% -0.0036 -0.1636) |
| OKLCH | oklch(30.09% 0.164 268.7) |
| XYZ | xyz(4.3617, 2.3297, 19.9544) |
| Luminance | 0.0233 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.30
Royal
#0C1793
ΔE00 3.13
Dark Royal Blue
#02066F
ΔE00 4.30
Navy
#000080
ΔE00 4.54
Deep Blue
#040273
ΔE00 4.65
Darkblue
#00008B
ΔE00 4.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#12197E #7E7712
analogous
#124F7E #12197E #41127E
triadic
#12197E #7E1219 #197E12
tetradic
#12197E #7E124F #7E7712 #127E41
square
#12197E #7E124F #7E7712 #127E41
split-complementary
#12197E #7E4112 #4F7E12
monochromatic
#04051B #0A0E48 #12197E #1A24B4 #2A36E1
Accessibility & contrast
On white
14.32
#12197E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#12197E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #12197E
14.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##12197E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##12197E | 1.00 | 14.32 | 1.47 | 14.32 |
| #FFFFFF | 14.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00257C
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #12197e; /* rgb */ color: rgb(18, 25, 126); /* oklch */ color: oklch(30.1% 0.164 268.7);
Tailwind
colors: {
custom: {
50: '#6857a5',
500: '#12197e',
950: '#000000',
},
}SCSS
$custom: #12197e; $custom-light: #6857a5; $custom-dark: #000000;
JSON
{
"hex": "#12197e",
"rgb": {
"r": 18,
"g": 25,
"b": 126
},
"hsl": {
"h": 236.111,
"s": 75,
"l": 28.235
},
"oklch": {
"l": 0.30094,
"c": 0.16369,
"h": 268.7
},
"luminance": 0.0233
}Semantic roles & 50–950 ramp
primary
#12197E
secondary
#B4AC38
accent
#E536F2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F