#12137F#12137F
#12137F is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.4% C 0.170 H 269.2°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).
Color values
| HEX | #12137F |
|---|---|
| RGB | rgb(18, 19, 127) |
| HSL | hsl(239, 75%, 28%) |
| HSV | hsv(239, 86%, 50%) |
| CMYK | cmyk(85.8%, 85%, 0%, 50.2%) |
| CIE-LAB | lab(16.14, 39.81, -58.77) |
| CIE-LCH | lch(16.14, 70.98, 304.11°) |
| OKLab | oklab(29.44% -0.0025 -0.1702) |
| OKLCH | oklch(29.44% 0.17 269.2) |
| XYZ | xyz(4.3118, 2.1261, 20.2577) |
| Luminance | 0.0213 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.94
Midnight Blue
#191970
ΔE00 2.98
Navy
#000080
ΔE00 3.16
Darkblue
#00008B
ΔE00 3.35
Dark Royal Blue
#02066F
ΔE00 3.36
Deep Blue
#040273
ΔE00 3.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#12137F #7F7E12
analogous
#12497F #12137F #47127F
triadic
#12137F #7F1213 #137F12
tetradic
#12137F #7F1249 #7F7E12 #127F47
square
#12137F #7F1249 #7F7E12 #127F47
split-complementary
#12137F #7F4712 #497F12
monochromatic
#04041B #0A0B49 #12137F #1A1BB5 #2B2CE1
Accessibility & contrast
On white
14.73
#12137F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.43
#12137F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #12137F
14.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##12137F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##12137F | 1.00 | 14.73 | 1.43 | 14.73 |
| #FFFFFF | 14.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00227D
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #12137f; /* rgb */ color: rgb(18, 19, 127); /* oklch */ color: oklch(29.4% 0.170 269.2);
Tailwind
colors: {
custom: {
50: '#6954a5',
500: '#12137f',
950: '#000000',
},
}SCSS
$custom: #12137f; $custom-light: #6954a5; $custom-dark: #000000;
JSON
{
"hex": "#12137f",
"rgb": {
"r": 18,
"g": 19,
"b": 127
},
"hsl": {
"h": 239.45,
"s": 75.172,
"l": 28.431
},
"oklch": {
"l": 0.29435,
"c": 0.17019,
"h": 269.2
},
"luminance": 0.02127
}Semantic roles & 50–950 ramp
primary
#12137F
secondary
#B5B438
accent
#F036F2
background
#F6F5FA
surface
#ECE8F4
border
#C7C4CE
text
#08030F
muted
#7A787F