#12137E#12137E
#12137E is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.3% C 0.169 H 269.2°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).
Color values
| HEX | #12137E |
|---|---|
| RGB | rgb(18, 19, 126) |
| HSL | hsl(239, 75%, 28%) |
| HSV | hsv(239, 86%, 49%) |
| CMYK | cmyk(85.7%, 84.9%, 0%, 50.6%) |
| CIE-LAB | lab(16.00, 39.47, -58.35) |
| CIE-LCH | lch(16.00, 70.45, 304.08°) |
| OKLab | oklab(29.31% -0.0023 -0.1689) |
| OKLCH | oklch(29.31% 0.169 269.2) |
| XYZ | xyz(4.2469, 2.1002, 19.9162) |
| Luminance | 0.0210 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.86
Royal
#0C1793
ΔE00 3.08
Navy
#000080
ΔE00 3.19
Dark Royal Blue
#02066F
ΔE00 3.26
Deep Blue
#040273
ΔE00 3.41
Darkblue
#00008B
ΔE00 3.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#12137E #7E7D12
analogous
#12497E #12137E #47127E
triadic
#12137E #7E1213 #137E12
tetradic
#12137E #7E1249 #7E7D12 #127E47
square
#12137E #7E1249 #7E7D12 #127E47
split-complementary
#12137E #7E4712 #497E12
monochromatic
#04041B #0A0B48 #12137E #1A1BB4 #2A2CE1
Accessibility & contrast
On white
14.79
#12137E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.42
#12137E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #12137E
14.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##12137E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##12137E | 1.00 | 14.79 | 1.42 | 14.79 |
| #FFFFFF | 14.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D81
Deuteranopia (green-blind)
#00227C
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #12137e; /* rgb */ color: rgb(18, 19, 126); /* oklch */ color: oklch(29.3% 0.169 269.2);
Tailwind
colors: {
custom: {
50: '#6854a5',
500: '#12137e',
950: '#000000',
},
}SCSS
$custom: #12137e; $custom-light: #6854a5; $custom-dark: #000000;
JSON
{
"hex": "#12137e",
"rgb": {
"r": 18,
"g": 19,
"b": 126
},
"hsl": {
"h": 239.444,
"s": 75,
"l": 28.235
},
"oklch": {
"l": 0.29307,
"c": 0.16897,
"h": 269.2
},
"luminance": 0.02101
}Semantic roles & 50–950 ramp
primary
#12137E
secondary
#B4B338
accent
#F036F2
background
#F6F4FA
surface
#ECE8F4
border
#C7C4CE
text
#08030F
muted
#7A787F