#12117F#12117F
#12117F is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.2% C 0.172 H 269.3°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).
Color values
| HEX | #12117F |
|---|---|
| RGB | rgb(18, 17, 127) |
| HSL | hsl(241, 76%, 28%) |
| HSV | hsv(241, 87%, 50%) |
| CMYK | cmyk(85.8%, 86.6%, 0%, 50.2%) |
| CIE-LAB | lab(15.81, 40.78, -59.32) |
| CIE-LCH | lch(15.81, 71.99, 304.51°) |
| OKLab | oklab(29.21% -0.0021 -0.1717) |
| OKLCH | oklch(29.21% 0.172 269.3) |
| XYZ | xyz(4.2794, 2.0613, 20.2469) |
| Luminance | 0.0206 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Navy
#000080
ΔE00 2.78
Darkblue
#00008B
ΔE00 3.01
Royal
#0C1793
ΔE00 3.05
Dark Royal Blue
#02066F
ΔE00 3.12
Deep Blue
#040273
ΔE00 3.15
Midnight Blue
#191970
ΔE00 3.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#12117F #7E7F11
analogous
#11477F #12117F #49117F
triadic
#12117F #7F1211 #117F12
tetradic
#12117F #7F1147 #7E7F11 #117F49
square
#12117F #7F1147 #7E7F11 #117F49
split-complementary
#12117F #7F4911 #477F11
monochromatic
#04041B #0A0A49 #12117F #1A18B5 #2A28E2
Accessibility & contrast
On white
14.87
#12117F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.41
#12117F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #12117F
14.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##12117F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##12117F | 1.00 | 14.87 | 1.41 | 14.87 |
| #FFFFFF | 14.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D82
Deuteranopia (green-blind)
#00217D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#272727
Design tokens & code
CSS
--color: #12117f; /* rgb */ color: rgb(18, 17, 127); /* oklch */ color: oklch(29.2% 0.172 269.3);
Tailwind
colors: {
custom: {
50: '#6953a5',
500: '#12117f',
950: '#000000',
},
}SCSS
$custom: #12117f; $custom-light: #6953a5; $custom-dark: #000000;
JSON
{
"hex": "#12117f",
"rgb": {
"r": 18,
"g": 17,
"b": 127
},
"hsl": {
"h": 240.545,
"s": 76.389,
"l": 28.235
},
"oklch": {
"l": 0.29207,
"c": 0.17172,
"h": 269.3
},
"luminance": 0.02062
}Semantic roles & 50–950 ramp
primary
#12117F
secondary
#B4B537
accent
#F335F1
background
#F6F4FA
surface
#ECE7F4
border
#C7C3CE
text
#08030F
muted
#7A787F