#12177E#12177E
#12177E is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.166 H 268.9°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).
Color values
| HEX | #12177E |
|---|---|
| RGB | rgb(18, 23, 126) |
| HSL | hsl(237, 75%, 28%) |
| HSV | hsv(237, 86%, 49%) |
| CMYK | cmyk(85.7%, 81.7%, 0%, 50.6%) |
| CIE-LAB | lab(16.73, 37.35, -57.14) |
| CIE-LCH | lch(16.73, 68.26, 303.17°) |
| OKLab | oklab(29.82% -0.0031 -0.1655) |
| OKLCH | oklch(29.82% 0.166 268.9) |
| XYZ | xyz(4.3205, 2.2472, 19.9407) |
| Luminance | 0.0225 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.42
Royal
#0C1793
ΔE00 3.04
Dark Royal Blue
#02066F
ΔE00 3.91
Navy
#000080
ΔE00 4.06
Deep Blue
#040273
ΔE00 4.20
Darkblue
#00008B
ΔE00 4.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#12177E #7E7912
analogous
#124D7E #12177E #43127E
triadic
#12177E #7E1217 #177E12
tetradic
#12177E #7E124D #7E7912 #127E43
square
#12177E #7E124D #7E7912 #127E43
split-complementary
#12177E #7E4312 #4D7E12
monochromatic
#04051B #0A0D48 #12177E #1A21B4 #2A32E1
Accessibility & contrast
On white
14.49
#12177E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#12177E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #12177E
14.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##12177E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##12177E | 1.00 | 14.49 | 1.45 | 14.49 |
| #FFFFFF | 14.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00247C
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #12177e; /* rgb */ color: rgb(18, 23, 126); /* oklch */ color: oklch(29.8% 0.166 268.9);
Tailwind
colors: {
custom: {
50: '#6856a5',
500: '#12177e',
950: '#000000',
},
}SCSS
$custom: #12177e; $custom-light: #6856a5; $custom-dark: #000000;
JSON
{
"hex": "#12177e",
"rgb": {
"r": 18,
"g": 23,
"b": 126
},
"hsl": {
"h": 237.222,
"s": 75,
"l": 28.235
},
"oklch": {
"l": 0.29816,
"c": 0.16555,
"h": 268.9
},
"luminance": 0.02248
}Semantic roles & 50–950 ramp
primary
#12177E
secondary
#B4AE38
accent
#E936F2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F