#122874#122874
#122874 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.6% C 0.133 H 266.1°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).
Color values
| HEX | #122874 |
|---|---|
| RGB | rgb(18, 40, 116) |
| HSL | hsl(227, 73%, 26%) |
| HSV | hsv(227, 84%, 45%) |
| CMYK | cmyk(84.5%, 65.5%, 0%, 54.5%) |
| CIE-LAB | lab(19.67, 22.47, -45.91) |
| CIE-LCH | lch(19.67, 51.11, 296.08°) |
| OKLab | oklab(31.61% -0.009 -0.1329) |
| OKLCH | oklch(31.61% 0.133 266.1) |
| XYZ | xyz(4.1595, 2.9066, 16.8614) |
| Luminance | 0.0291 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.96
Marine
#042E60
ΔE00 5.62
Royal
#0C1793
ΔE00 7.41
Marine Blue
#01386A
ΔE00 7.72
Navy Blue
#1B2A4A
ΔE00 8.43
Dark Royal Blue
#02066F
ΔE00 8.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#122874 #745E12
analogous
#125974 #122874 #2D1274
triadic
#122874 #741228 #287412
tetradic
#122874 #741259 #745E12 #12742D
square
#122874 #741259 #745E12 #12742D
split-complementary
#122874 #742D12 #597412
monochromatic
#04091A #0A163F #122874 #1A3AA9 #234DDD
Accessibility & contrast
On white
13.28
#122874 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#122874 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #122874
13.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##122874 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##122874 | 1.00 | 13.28 | 1.58 | 13.28 |
| #FFFFFF | 13.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003476
Deuteranopia (green-blind)
#002B73
Tritanopia (blue-blind)
#003C4A
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #122874; /* rgb */ color: rgb(18, 40, 116); /* oklch */ color: oklch(31.6% 0.133 266.1);
Tailwind
colors: {
custom: {
50: '#63619d',
500: '#122874',
950: '#000000',
},
}SCSS
$custom: #122874; $custom-light: #63619d; $custom-dark: #000000;
JSON
{
"hex": "#122874",
"rgb": {
"r": 18,
"g": 40,
"b": 116
},
"hsl": {
"h": 226.531,
"s": 73.134,
"l": 26.275
},
"oklch": {
"l": 0.31605,
"c": 0.13318,
"h": 266.1
},
"luminance": 0.02907
}Semantic roles & 50–950 ramp
primary
#122874
secondary
#AB9137
accent
#C738F0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E