#12177F#12177F
#12177F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.9% C 0.167 H 268.9°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).
Color values
| HEX | #12177F |
|---|---|
| RGB | rgb(18, 23, 127) |
| HSL | hsl(237, 75%, 28%) |
| HSV | hsv(237, 86%, 50%) |
| CMYK | cmyk(85.8%, 81.9%, 0%, 50.2%) |
| CIE-LAB | lab(16.86, 37.69, -57.57) |
| CIE-LCH | lch(16.86, 68.81, 303.22°) |
| OKLab | oklab(29.94% -0.0033 -0.1668) |
| OKLCH | oklch(29.94% 0.167 268.9) |
| XYZ | xyz(4.3853, 2.2732, 20.2822) |
| Luminance | 0.0227 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.56
Royal
#0C1793
ΔE00 2.89
Dark Royal Blue
#02066F
ΔE00 3.98
Navy
#000080
ΔE00 4.03
Darkblue
#00008B
ΔE00 4.13
Deep Blue
#040273
ΔE00 4.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#12177F #7F7A12
analogous
#124D7F #12177F #43127F
triadic
#12177F #7F1217 #177F12
tetradic
#12177F #7F124D #7F7A12 #127F43
square
#12177F #7F124D #7F7A12 #127F43
split-complementary
#12177F #7F4312 #4D7F12
monochromatic
#04051B #0A0D49 #12177F #1A21B5 #2B33E1
Accessibility & contrast
On white
14.43
#12177F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#12177F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #12177F
14.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##12177F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##12177F | 1.00 | 14.43 | 1.45 | 14.43 |
| #FFFFFF | 14.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00247D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #12177f; /* rgb */ color: rgb(18, 23, 127); /* oklch */ color: oklch(29.9% 0.167 268.9);
Tailwind
colors: {
custom: {
50: '#6856a5',
500: '#12177f',
950: '#000000',
},
}SCSS
$custom: #12177f; $custom-light: #6856a5; $custom-dark: #000000;
JSON
{
"hex": "#12177f",
"rgb": {
"r": 18,
"g": 23,
"b": 127
},
"hsl": {
"h": 237.248,
"s": 75.172,
"l": 28.431
},
"oklch": {
"l": 0.29941,
"c": 0.16679,
"h": 268.9
},
"luminance": 0.02274
}Semantic roles & 50–950 ramp
primary
#12177F
secondary
#B5AF38
accent
#E936F2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F