#142E8F#142E8F
#142E8F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.162 H 266.0°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).
Color values
| HEX | #142E8F |
|---|---|
| RGB | rgb(20, 46, 143) |
| HSL | hsl(227, 75%, 32%) |
| HSV | hsv(227, 86%, 56%) |
| CMYK | cmyk(86%, 67.8%, 0%, 43.9%) |
| CIE-LAB | lab(23.95, 29.31, -55.90) |
| CIE-LCH | lch(23.95, 63.11, 297.67°) |
| OKLab | oklab(35.58% -0.0113 -0.162) |
| OKLCH | oklch(35.58% 0.162 266) |
| XYZ | xyz(6.2217, 4.0851, 26.4419) |
| Luminance | 0.0409 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.72
Royal
#0C1793
ΔE00 6.12
Midnight Blue
#191970
ΔE00 7.04
Blueberry
#464196
ΔE00 7.42
Darkslateblue
#483D8B
ΔE00 7.64
Marine
#042E60
ΔE00 8.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#142E8F #8F7514
analogous
#146C8F #142E8F #38148F
triadic
#142E8F #8F142E #2E8F14
tetradic
#142E8F #8F146C #8F7514 #148F38
square
#142E8F #8F146C #8F7514 #148F38
split-complementary
#142E8F #8F3814 #6C8F14
monochromatic
#050B24 #0C1D59 #142E8F #1C3FC5 #3A5EE3
Accessibility & contrast
On white
11.56
#142E8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#142E8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #142E8F
11.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##142E8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##142E8F | 1.00 | 11.56 | 1.82 | 11.56 |
| #FFFFFF | 11.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #142e8f; /* rgb */ color: rgb(20, 46, 143); /* oklch */ color: oklch(35.6% 0.162 266.0);
Tailwind
colors: {
custom: {
50: '#6b66b1',
500: '#142e8f',
950: '#000000',
},
}SCSS
$custom: #142e8f; $custom-light: #6b66b1; $custom-dark: #000000;
JSON
{
"hex": "#142e8f",
"rgb": {
"r": 20,
"g": 46,
"b": 143
},
"hsl": {
"h": 227.317,
"s": 75.46,
"l": 31.961
},
"oklch": {
"l": 0.35583,
"c": 0.16238,
"h": 266
},
"luminance": 0.04086
}Semantic roles & 50–950 ramp
primary
#142E8F
secondary
#C3A63C
accent
#CA36F2
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80