#1F147E#1F147E
#1F147E is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.165 H 274.8°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).
Color values
| HEX | #1F147E |
|---|---|
| RGB | rgb(31, 20, 126) |
| HSL | hsl(246, 73%, 29%) |
| HSV | hsv(246, 84%, 49%) |
| CMYK | cmyk(75.4%, 84.1%, 0%, 50.6%) |
| CIE-LAB | lab(16.98, 39.80, -56.71) |
| CIE-LCH | lch(16.98, 69.29, 305.06°) |
| OKLab | oklab(30.2% 0.0138 -0.164) |
| OKLCH | oklch(30.2% 0.165 274.8) |
| XYZ | xyz(4.5799, 2.2975, 19.9367) |
| Luminance | 0.0230 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.90
Royal
#0C1793
ΔE00 3.23
Navy
#000080
ΔE00 3.62
Dark Royal Blue
#02066F
ΔE00 3.76
Darkblue
#00008B
ΔE00 3.77
Deep Blue
#040273
ΔE00 3.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F147E #737E14
analogous
#143E7E #1F147E #54147E
triadic
#1F147E #7E1F14 #147E1F
tetradic
#1F147E #7E143E #737E14 #147E54
square
#1F147E #7E143E #737E14 #147E54
split-complementary
#1F147E #7E5414 #3E7E14
monochromatic
#06041A #120C49 #1F147E #2C1CB3 #412EDE
Accessibility & contrast
On white
14.39
#1F147E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#1F147E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F147E
14.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F147E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F147E | 1.00 | 14.39 | 1.46 | 14.39 |
| #FFFFFF | 14.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00257C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #1f147e; /* rgb */ color: rgb(31, 20, 126); /* oklch */ color: oklch(30.2% 0.165 274.8);
Tailwind
colors: {
custom: {
50: '#6c55a5',
500: '#1f147e',
950: '#000000',
},
}SCSS
$custom: #1f147e; $custom-light: #6c55a5; $custom-dark: #000000;
JSON
{
"hex": "#1f147e",
"rgb": {
"r": 31,
"g": 20,
"b": 126
},
"hsl": {
"h": 246.226,
"s": 72.603,
"l": 28.627
},
"oklch": {
"l": 0.30196,
"c": 0.16457,
"h": 274.8
},
"luminance": 0.02298
}Semantic roles & 50–950 ramp
primary
#1F147E
secondary
#A7B33A
accent
#EF38DC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F