#142F7F#142F7F
#142F7F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.2% C 0.139 H 265.2°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).
Color values
| HEX | #142F7F |
|---|---|
| RGB | rgb(20, 47, 127) |
| HSL | hsl(225, 73%, 29%) |
| HSV | hsv(225, 84%, 50%) |
| CMYK | cmyk(84.3%, 63%, 0%, 50.2%) |
| CIE-LAB | lab(22.70, 22.20, -47.94) |
| CIE-LCH | lch(22.70, 52.83, 294.85°) |
| OKLab | oklab(34.19% -0.0116 -0.1387) |
| OKLCH | oklch(34.19% 0.139 265.2) |
| XYZ | xyz(5.1344, 3.7134, 20.5207) |
| Luminance | 0.0371 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 5.74
Marine Blue
#01386A
ΔE00 6.60
Sapphire (survey)
#2138AB
ΔE00 6.83
Midnight Blue
#191970
ΔE00 6.93
Darkish Blue
#014182
ΔE00 7.23
Royal
#0C1793
ΔE00 7.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#142F7F #7F6414
analogous
#14657F #142F7F #2F147F
triadic
#142F7F #7F142F #2F7F14
tetradic
#142F7F #7F1465 #7F6414 #147F2F
square
#142F7F #7F1465 #7F6414 #147F2F
split-complementary
#142F7F #7F2F14 #657F14
monochromatic
#040A1A #0C1B4A #142F7F #1C43B4 #2F5BDE
Accessibility & contrast
On white
12.05
#142F7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#142F7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #142F7F
12.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##142F7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##142F7F | 1.00 | 12.05 | 1.74 | 12.05 |
| #FFFFFF | 12.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.05 | 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: #142f7f; /* rgb */ color: rgb(20, 47, 127); /* oklch */ color: oklch(34.2% 0.139 265.2);
Tailwind
colors: {
custom: {
50: '#6667a5',
500: '#142f7f',
950: '#000000',
},
}SCSS
$custom: #142f7f; $custom-light: #6667a5; $custom-dark: #000000;
JSON
{
"hex": "#142f7f",
"rgb": {
"r": 20,
"g": 47,
"b": 127
},
"hsl": {
"h": 224.86,
"s": 72.789,
"l": 28.824
},
"oklch": {
"l": 0.34194,
"c": 0.13919,
"h": 265.2
},
"luminance": 0.03714
}Semantic roles & 50–950 ramp
primary
#142F7F
secondary
#B4963B
accent
#C138EF
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F