#1F147F#1F147F
#1F147F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.3% C 0.166 H 274.7°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).
Color values
| HEX | #1F147F |
|---|---|
| RGB | rgb(31, 20, 127) |
| HSL | hsl(246, 73%, 29%) |
| HSV | hsv(246, 84%, 50%) |
| CMYK | cmyk(75.6%, 84.3%, 0%, 50.2%) |
| CIE-LAB | lab(17.10, 40.12, -57.14) |
| CIE-LCH | lch(17.10, 69.82, 305.07°) |
| OKLab | oklab(30.32% 0.0135 -0.1652) |
| OKLCH | oklch(30.32% 0.166 274.7) |
| XYZ | xyz(4.6447, 2.3235, 20.2782) |
| Luminance | 0.0232 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.02
Royal
#0C1793
ΔE00 3.09
Navy
#000080
ΔE00 3.60
Darkblue
#00008B
ΔE00 3.69
Dark Royal Blue
#02066F
ΔE00 3.85
Deep Blue
#040273
ΔE00 3.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F147F #747F14
analogous
#143F7F #1F147F #55147F
triadic
#1F147F #7F1F14 #147F1F
tetradic
#1F147F #7F143F #747F14 #147F55
square
#1F147F #7F143F #747F14 #147F55
split-complementary
#1F147F #7F5514 #3F7F14
monochromatic
#06041A #120C4A #1F147F #2C1CB4 #412FDE
Accessibility & contrast
On white
14.34
#1F147F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#1F147F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F147F
14.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F147F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F147F | 1.00 | 14.34 | 1.46 | 14.34 |
| #FFFFFF | 14.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00257D
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #1f147f; /* rgb */ color: rgb(31, 20, 127); /* oklch */ color: oklch(30.3% 0.166 274.7);
Tailwind
colors: {
custom: {
50: '#6c55a5',
500: '#1f147f',
950: '#000000',
},
}SCSS
$custom: #1f147f; $custom-light: #6c55a5; $custom-dark: #000000;
JSON
{
"hex": "#1f147f",
"rgb": {
"r": 31,
"g": 20,
"b": 127
},
"hsl": {
"h": 246.168,
"s": 72.789,
"l": 28.824
},
"oklch": {
"l": 0.30317,
"c": 0.16579,
"h": 274.7
},
"luminance": 0.02324
}Semantic roles & 50–950 ramp
primary
#1F147F
secondary
#A8B43B
accent
#EF38DD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F