#12187F#12187F
#12187F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.166 H 268.8°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).
Color values
| HEX | #12187F |
|---|---|
| RGB | rgb(18, 24, 127) |
| HSL | hsl(237, 75%, 28%) |
| HSV | hsv(237, 86%, 50%) |
| CMYK | cmyk(85.8%, 81.1%, 0%, 50.2%) |
| CIE-LAB | lab(17.05, 37.13, -57.24) |
| CIE-LCH | lch(17.05, 68.23, 302.97°) |
| OKLab | oklab(30.08% -0.0035 -0.1658) |
| OKLCH | oklch(30.08% 0.166 268.8) |
| XYZ | xyz(4.4055, 2.3136, 20.2889) |
| Luminance | 0.0231 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.50
Royal
#0C1793
ΔE00 2.92
Dark Royal Blue
#02066F
ΔE00 4.16
Navy
#000080
ΔE00 4.27
Darkblue
#00008B
ΔE00 4.35
Deep Blue
#040273
ΔE00 4.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#12187F #7F7912
analogous
#124E7F #12187F #42127F
triadic
#12187F #7F1218 #187F12
tetradic
#12187F #7F124E #7F7912 #127F42
square
#12187F #7F124E #7F7912 #127F42
split-complementary
#12187F #7F4212 #4E7F12
monochromatic
#04051B #0A0E49 #12187F #1A22B5 #2B35E1
Accessibility & contrast
On white
14.36
#12187F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#12187F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #12187F
14.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##12187F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##12187F | 1.00 | 14.36 | 1.46 | 14.36 |
| #FFFFFF | 14.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00247D
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #12187f; /* rgb */ color: rgb(18, 24, 127); /* oklch */ color: oklch(30.1% 0.166 268.8);
Tailwind
colors: {
custom: {
50: '#6857a5',
500: '#12187f',
950: '#000000',
},
}SCSS
$custom: #12187f; $custom-light: #6857a5; $custom-dark: #000000;
JSON
{
"hex": "#12187f",
"rgb": {
"r": 18,
"g": 24,
"b": 127
},
"hsl": {
"h": 236.697,
"s": 75.172,
"l": 28.431
},
"oklch": {
"l": 0.30077,
"c": 0.16589,
"h": 268.8
},
"luminance": 0.02314
}Semantic roles & 50–950 ramp
primary
#12187F
secondary
#B5AE38
accent
#E736F2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F