#12117E#12117E
#12117E is a dark, vivid blue. Relative luminance 0.020; OKLCH L 29.1% C 0.171 H 269.4°. Best body text is #FFFFFF at 14.92:1 contrast (WCAG AA passes).
Color values
| HEX | #12117E |
|---|---|
| RGB | rgb(18, 17, 126) |
| HSL | hsl(241, 76%, 28%) |
| HSV | hsv(241, 87%, 49%) |
| CMYK | cmyk(85.7%, 86.5%, 0%, 50.6%) |
| CIE-LAB | lab(15.67, 40.46, -58.90) |
| CIE-LCH | lch(15.67, 71.46, 304.48°) |
| OKLab | oklab(29.08% -0.0019 -0.1705) |
| OKLCH | oklch(29.08% 0.171 269.4) |
| XYZ | xyz(4.2145, 2.0353, 19.9054) |
| Luminance | 0.0204 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Navy
#000080
ΔE00 2.80
Dark Royal Blue
#02066F
ΔE00 3.01
Deep Blue
#040273
ΔE00 3.08
Darkblue
#00008B
ΔE00 3.10
Midnight Blue
#191970
ΔE00 3.12
Royal
#0C1793
ΔE00 3.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#12117E #7D7E11
analogous
#11477E #12117E #48117E
triadic
#12117E #7E1211 #117E12
tetradic
#12117E #7E1147 #7D7E11 #117E48
square
#12117E #7E1147 #7D7E11 #117E48
split-complementary
#12117E #7E4811 #477E11
monochromatic
#04041B #0A0A48 #12117E #1A18B4 #2927E2
Accessibility & contrast
On white
14.92
#12117E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.41
#12117E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #12117E
14.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##12117E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##12117E | 1.00 | 14.92 | 1.41 | 14.92 |
| #FFFFFF | 14.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D81
Deuteranopia (green-blind)
#00217C
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#272727
Design tokens & code
CSS
--color: #12117e; /* rgb */ color: rgb(18, 17, 126); /* oklch */ color: oklch(29.1% 0.171 269.4);
Tailwind
colors: {
custom: {
50: '#6953a5',
500: '#12117e',
950: '#000000',
},
}SCSS
$custom: #12117e; $custom-light: #6953a5; $custom-dark: #000000;
JSON
{
"hex": "#12117e",
"rgb": {
"r": 18,
"g": 17,
"b": 126
},
"hsl": {
"h": 240.55,
"s": 76.224,
"l": 28.039
},
"oklch": {
"l": 0.29076,
"c": 0.17052,
"h": 269.4
},
"luminance": 0.02036
}Semantic roles & 50–950 ramp
primary
#12117E
secondary
#B3B437
accent
#F335F1
background
#F6F4FA
surface
#ECE7F4
border
#C7C3CE
text
#08030F
muted
#7A787F