#1F147A#1F147A
#1F147A is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.160 H 275.4°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).
Color values
| HEX | #1F147A |
|---|---|
| RGB | rgb(31, 20, 122) |
| HSL | hsl(246, 72%, 28%) |
| HSV | hsv(246, 84%, 48%) |
| CMYK | cmyk(74.6%, 83.6%, 0%, 52.2%) |
| CIE-LAB | lab(16.49, 38.51, -54.97) |
| CIE-LCH | lch(16.49, 67.12, 305.01°) |
| OKLab | oklab(29.71% 0.015 -0.1589) |
| OKLCH | oklch(29.71% 0.16 275.4) |
| XYZ | xyz(4.3269, 2.1963, 18.6045) |
| Luminance | 0.0220 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.42
Dark Royal Blue
#02066F
ΔE00 3.47
Deep Blue
#040273
ΔE00 3.68
Navy
#000080
ΔE00 3.77
Royal
#0C1793
ΔE00 3.80
Darkblue
#00008B
ΔE00 4.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F147A #6F7A14
analogous
#143C7A #1F147A #52147A
triadic
#1F147A #7A1F14 #147A1F
tetradic
#1F147A #7A143C #6F7A14 #147A52
square
#1F147A #7A143C #6F7A14 #147A52
split-complementary
#1F147A #7A5214 #3C7A14
monochromatic
#07041A #120B45 #1F147A #2C1DAF #3F2CDC
Accessibility & contrast
On white
14.59
#1F147A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#1F147A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F147A
14.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F147A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F147A | 1.00 | 14.59 | 1.44 | 14.59 |
| #FFFFFF | 14.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D7D
Deuteranopia (green-blind)
#002478
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #1f147a; /* rgb */ color: rgb(31, 20, 122); /* oklch */ color: oklch(29.7% 0.160 275.4);
Tailwind
colors: {
custom: {
50: '#6b55a2',
500: '#1f147a',
950: '#000000',
},
}SCSS
$custom: #1f147a; $custom-light: #6b55a2; $custom-dark: #000000;
JSON
{
"hex": "#1f147a",
"rgb": {
"r": 31,
"g": 20,
"b": 122
},
"hsl": {
"h": 246.471,
"s": 71.831,
"l": 27.843
},
"oklch": {
"l": 0.29712,
"c": 0.15963,
"h": 275.4
},
"luminance": 0.02197
}Semantic roles & 50–950 ramp
primary
#1F147A
secondary
#A3B03A
accent
#EF39DB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F