#122872#122872
#122872 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.4% C 0.130 H 266.0°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).
Color values
| HEX | #122872 |
|---|---|
| RGB | rgb(18, 40, 114) |
| HSL | hsl(226, 73%, 26%) |
| HSV | hsv(226, 84%, 45%) |
| CMYK | cmyk(84.2%, 64.9%, 0%, 55.3%) |
| CIE-LAB | lab(19.48, 21.64, -44.93) |
| CIE-LCH | lch(19.48, 49.87, 295.72°) |
| OKLab | oklab(31.41% -0.009 -0.13) |
| OKLCH | oklch(31.41% 0.13 266) |
| XYZ | xyz(4.0444, 2.8606, 16.2553) |
| Luminance | 0.0286 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.08
Marine
#042E60
ΔE00 5.36
Marine Blue
#01386A
ΔE00 7.59
Royal
#0C1793
ΔE00 7.72
Navy Blue
#1B2A4A
ΔE00 8.13
Navy Blue (survey)
#001146
ΔE00 8.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#122872 #725C12
analogous
#125872 #122872 #2C1272
triadic
#122872 #721228 #287212
tetradic
#122872 #721258 #725C12 #12722C
square
#122872 #721258 #725C12 #12722C
split-complementary
#122872 #722C12 #587212
monochromatic
#04091A #0A153D #122872 #1A3BA7 #234DDC
Accessibility & contrast
On white
13.36
#122872 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#122872 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #122872
13.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##122872 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##122872 | 1.00 | 13.36 | 1.57 | 13.36 |
| #FFFFFF | 13.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#002B71
Tritanopia (blue-blind)
#003B49
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #122872; /* rgb */ color: rgb(18, 40, 114); /* oklch */ color: oklch(31.4% 0.130 266.0);
Tailwind
colors: {
custom: {
50: '#63619b',
500: '#122872',
950: '#000000',
},
}SCSS
$custom: #122872; $custom-light: #63619b; $custom-dark: #000000;
JSON
{
"hex": "#122872",
"rgb": {
"r": 18,
"g": 40,
"b": 114
},
"hsl": {
"h": 226.25,
"s": 72.727,
"l": 25.882
},
"oklch": {
"l": 0.31406,
"c": 0.13032,
"h": 266
},
"luminance": 0.02861
}Semantic roles & 50–950 ramp
primary
#122872
secondary
#A98F37
accent
#C538EF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E