#12127E#12127E
#12127E is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.2% C 0.170 H 269.3°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).
Color values
| HEX | #12127E |
|---|---|
| RGB | rgb(18, 18, 126) |
| HSL | hsl(240, 75%, 28%) |
| HSV | hsv(240, 86%, 49%) |
| CMYK | cmyk(85.7%, 85.7%, 0%, 50.6%) |
| CIE-LAB | lab(15.84, 39.97, -58.63) |
| CIE-LCH | lch(15.84, 70.96, 304.29°) |
| OKLab | oklab(29.19% -0.0021 -0.1698) |
| OKLCH | oklch(29.19% 0.17 269.3) |
| XYZ | xyz(4.2304, 2.0671, 19.9106) |
| Luminance | 0.0207 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Navy
#000080
ΔE00 2.99
Midnight Blue
#191970
ΔE00 2.99
Royal
#0C1793
ΔE00 3.13
Dark Royal Blue
#02066F
ΔE00 3.13
Deep Blue
#040273
ΔE00 3.24
Darkblue
#00008B
ΔE00 3.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#12127E #7E7E12
analogous
#12487E #12127E #48127E
triadic
#12127E #7E1212 #127E12
tetradic
#12127E #7E1248 #7E7E12 #127E48
square
#12127E #7E1248 #7E7E12 #127E48
split-complementary
#12127E #7E4812 #487E12
monochromatic
#04041B #0A0A48 #12127E #1A1AB4 #2A2AE1
Accessibility & contrast
On white
14.86
#12127E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.41
#12127E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #12127E
14.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##12127E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##12127E | 1.00 | 14.86 | 1.41 | 14.86 |
| #FFFFFF | 14.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D81
Deuteranopia (green-blind)
#00227C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#272727
Design tokens & code
CSS
--color: #12127e; /* rgb */ color: rgb(18, 18, 126); /* oklch */ color: oklch(29.2% 0.170 269.3);
Tailwind
colors: {
custom: {
50: '#6853a5',
500: '#12127e',
950: '#000000',
},
}SCSS
$custom: #12127e; $custom-light: #6853a5; $custom-dark: #000000;
JSON
{
"hex": "#12127e",
"rgb": {
"r": 18,
"g": 18,
"b": 126
},
"hsl": {
"h": 240,
"s": 75,
"l": 28.235
},
"oklch": {
"l": 0.2919,
"c": 0.16976,
"h": 269.3
},
"luminance": 0.02068
}Semantic roles & 50–950 ramp
primary
#12127E
secondary
#B4B438
accent
#F236F2
background
#F6F4FA
surface
#ECE7F4
border
#C7C3CE
text
#08030F
muted
#7A787F