#122F7F#122F7F
#122F7F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.1% C 0.140 H 264.6°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).
Color values
| HEX | #122F7F |
|---|---|
| RGB | rgb(18, 47, 127) |
| HSL | hsl(224, 75%, 28%) |
| HSV | hsv(224, 86%, 50%) |
| CMYK | cmyk(85.8%, 63%, 0%, 50.2%) |
| CIE-LAB | lab(22.63, 22.02, -48.06) |
| CIE-LCH | lch(22.63, 52.86, 294.62°) |
| OKLab | oklab(34.12% -0.0131 -0.1391) |
| OKLCH | oklch(34.12% 0.14 264.6) |
| XYZ | xyz(5.0954, 3.6933, 20.5189) |
| Luminance | 0.0369 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 5.64
Marine Blue
#01386A
ΔE00 6.48
Sapphire (survey)
#2138AB
ΔE00 6.87
Midnight Blue
#191970
ΔE00 7.01
Darkish Blue
#014182
ΔE00 7.13
Royal
#0C1793
ΔE00 7.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#122F7F #7F6212
analogous
#12657F #122F7F #2C127F
triadic
#122F7F #7F122F #2F7F12
tetradic
#122F7F #7F1265 #7F6212 #127F2C
square
#122F7F #7F1265 #7F6212 #127F2C
split-complementary
#122F7F #7F2C12 #657F12
monochromatic
#040A1B #0A1B49 #122F7F #1A43B5 #2B5BE1
Accessibility & contrast
On white
12.08
#122F7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#122F7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #122F7F
12.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##122F7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##122F7F | 1.00 | 12.08 | 1.74 | 12.08 |
| #FFFFFF | 12.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #122f7f; /* rgb */ color: rgb(18, 47, 127); /* oklch */ color: oklch(34.1% 0.140 264.6);
Tailwind
colors: {
custom: {
50: '#6667a5',
500: '#122f7f',
950: '#000000',
},
}SCSS
$custom: #122f7f; $custom-light: #6667a5; $custom-dark: #000000;
JSON
{
"hex": "#122f7f",
"rgb": {
"r": 18,
"g": 47,
"b": 127
},
"hsl": {
"h": 224.037,
"s": 75.172,
"l": 28.431
},
"oklch": {
"l": 0.34122,
"c": 0.13969,
"h": 264.6
},
"luminance": 0.03694
}Semantic roles & 50–950 ramp
primary
#122F7F
secondary
#B59438
accent
#C036F2
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F