#1F2973#1F2973
#1F2973 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.4% C 0.127 H 271.4°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2973 |
|---|---|
| RGB | rgb(31, 41, 115) |
| HSL | hsl(233, 58%, 29%) |
| HSV | hsv(233, 73%, 45%) |
| CMYK | cmyk(73%, 64.3%, 0%, 54.9%) |
| CIE-LAB | lab(20.50, 22.91, -43.88) |
| CIE-LCH | lch(20.50, 49.50, 297.57°) |
| OKLab | oklab(32.37% 0.0032 -0.1266) |
| OKLCH | oklch(32.37% 0.127 271.4) |
| XYZ | xyz(4.4515, 3.1146, 16.5829) |
| Luminance | 0.0312 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.72
Marine
#042E60
ΔE00 6.35
Royal
#0C1793
ΔE00 7.50
Darkslateblue
#483D8B
ΔE00 8.07
Navy Blue
#1B2A4A
ΔE00 8.42
Marine Blue
#01386A
ΔE00 8.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2973 #73691F
analogous
#1F5373 #1F2973 #3F1F73
triadic
#1F2973 #731F29 #29731F
tetradic
#1F2973 #731F53 #73691F #1F733F
square
#1F2973 #731F53 #73691F #1F733F
split-complementary
#1F2973 #733F1F #53731F
monochromatic
#060918 #121843 #1F2973 #2C3AA3 #4151CC
Accessibility & contrast
On white
12.94
#1F2973 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#1F2973 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2973
12.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2973 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2973 | 1.00 | 12.94 | 1.62 | 12.94 |
| #FFFFFF | 12.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003575
Deuteranopia (green-blind)
#002E72
Tritanopia (blue-blind)
#003C49
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #1f2973; /* rgb */ color: rgb(31, 41, 115); /* oklch */ color: oklch(32.4% 0.127 271.4);
Tailwind
colors: {
custom: {
50: '#67629c',
500: '#1f2973',
950: '#000000',
},
}SCSS
$custom: #1f2973; $custom-light: #67629c; $custom-dark: #000000;
JSON
{
"hex": "#1f2973",
"rgb": {
"r": 31,
"g": 41,
"b": 115
},
"hsl": {
"h": 232.857,
"s": 57.534,
"l": 28.627
},
"oklch": {
"l": 0.32369,
"c": 0.12667,
"h": 271.4
},
"luminance": 0.03115
}Semantic roles & 50–950 ramp
primary
#1F2973
secondary
#A79B47
accent
#CE47E1
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E