#12187E#12187E
#12187E is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.165 H 268.8°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).
Color values
| HEX | #12187E |
|---|---|
| RGB | rgb(18, 24, 126) |
| HSL | hsl(237, 75%, 28%) |
| HSV | hsv(237, 86%, 49%) |
| CMYK | cmyk(85.7%, 81%, 0%, 50.6%) |
| CIE-LAB | lab(16.93, 36.78, -56.81) |
| CIE-LCH | lch(16.93, 67.68, 302.92°) |
| OKLab | oklab(29.95% -0.0033 -0.1646) |
| OKLCH | oklch(29.95% 0.165 268.8) |
| XYZ | xyz(4.3407, 2.2877, 19.9474) |
| Luminance | 0.0229 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.35
Royal
#0C1793
ΔE00 3.07
Dark Royal Blue
#02066F
ΔE00 4.10
Navy
#000080
ΔE00 4.30
Deep Blue
#040273
ΔE00 4.42
Darkblue
#00008B
ΔE00 4.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#12187E #7E7812
analogous
#124E7E #12187E #42127E
triadic
#12187E #7E1218 #187E12
tetradic
#12187E #7E124E #7E7812 #127E42
square
#12187E #7E124E #7E7812 #127E42
split-complementary
#12187E #7E4212 #4E7E12
monochromatic
#04051B #0A0E48 #12187E #1A22B4 #2A34E1
Accessibility & contrast
On white
14.41
#12187E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#12187E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #12187E
14.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##12187E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##12187E | 1.00 | 14.41 | 1.46 | 14.41 |
| #FFFFFF | 14.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00247C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #12187e; /* rgb */ color: rgb(18, 24, 126); /* oklch */ color: oklch(30.0% 0.165 268.8);
Tailwind
colors: {
custom: {
50: '#6857a5',
500: '#12187e',
950: '#000000',
},
}SCSS
$custom: #12187e; $custom-light: #6857a5; $custom-dark: #000000;
JSON
{
"hex": "#12187e",
"rgb": {
"r": 18,
"g": 24,
"b": 126
},
"hsl": {
"h": 236.667,
"s": 75,
"l": 28.235
},
"oklch": {
"l": 0.29953,
"c": 0.16463,
"h": 268.8
},
"luminance": 0.02288
}Semantic roles & 50–950 ramp
primary
#12187E
secondary
#B4AD38
accent
#E736F2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F