#122871#122871
#122871 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.3% C 0.129 H 266.0°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).
Color values
| HEX | #122871 |
|---|---|
| RGB | rgb(18, 40, 113) |
| HSL | hsl(226, 73%, 26%) |
| HSV | hsv(226, 84%, 44%) |
| CMYK | cmyk(84.1%, 64.6%, 0%, 55.7%) |
| CIE-LAB | lab(19.38, 21.23, -44.44) |
| CIE-LCH | lch(19.38, 49.25, 295.53°) |
| OKLab | oklab(31.31% -0.009 -0.1286) |
| OKLCH | oklch(31.31% 0.129 266) |
| XYZ | xyz(3.9878, 2.8380, 15.9572) |
| Luminance | 0.0284 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.16
Marine
#042E60
ΔE00 5.23
Marine Blue
#01386A
ΔE00 7.52
Royal
#0C1793
ΔE00 7.88
Navy Blue
#1B2A4A
ΔE00 7.98
Navy Blue (survey)
#001146
ΔE00 8.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#122871 #715B12
analogous
#125771 #122871 #2B1271
triadic
#122871 #711228 #287112
tetradic
#122871 #711257 #715B12 #12712B
square
#122871 #711257 #715B12 #12712B
split-complementary
#122871 #712B12 #577112
monochromatic
#04091A #0A153C #122871 #1A3BA6 #234DDB
Accessibility & contrast
On white
13.40
#122871 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#122871 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #122871
13.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##122871 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##122871 | 1.00 | 13.40 | 1.57 | 13.40 |
| #FFFFFF | 13.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #122871; /* rgb */ color: rgb(18, 40, 113); /* oklch */ color: oklch(31.3% 0.129 266.0);
Tailwind
colors: {
custom: {
50: '#62619b',
500: '#122871',
950: '#000000',
},
}SCSS
$custom: #122871; $custom-light: #62619b; $custom-dark: #000000;
JSON
{
"hex": "#122871",
"rgb": {
"r": 18,
"g": 40,
"b": 113
},
"hsl": {
"h": 226.105,
"s": 72.519,
"l": 25.686
},
"oklch": {
"l": 0.31308,
"c": 0.12888,
"h": 266
},
"luminance": 0.02838
}Semantic roles & 50–950 ramp
primary
#122871
secondary
#A88E37
accent
#C539EF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E