#1F2779#1F2779
#1F2779 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.6% C 0.138 H 271.8°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2779 |
|---|---|
| RGB | rgb(31, 39, 121) |
| HSL | hsl(235, 59%, 30%) |
| HSV | hsv(235, 74%, 47%) |
| CMYK | cmyk(74.4%, 67.8%, 0%, 52.5%) |
| CIE-LAB | lab(20.53, 26.60, -47.67) |
| CIE-LCH | lch(20.53, 54.59, 299.17°) |
| OKLab | oklab(32.56% 0.0044 -0.1378) |
| OKLCH | oklch(32.56% 0.138 271.8) |
| XYZ | xyz(4.7406, 3.1223, 18.4383) |
| Luminance | 0.0312 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.92
Royal
#0C1793
ΔE00 6.11
Marine
#042E60
ΔE00 7.50
Dark Royal Blue
#02066F
ΔE00 7.89
Darkslateblue
#483D8B
ΔE00 8.04
Darkblue (survey)
#030764
ΔE00 8.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2779 #79711F
analogous
#1F5479 #1F2779 #441F79
triadic
#1F2779 #791F27 #27791F
tetradic
#1F2779 #791F54 #79711F #1F7944
square
#1F2779 #791F54 #79711F #1F7944
split-complementary
#1F2779 #79441F #54791F
monochromatic
#060818 #131748 #1F2779 #2B37AA #4350CF
Accessibility & contrast
On white
12.93
#1F2779 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#1F2779 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2779
12.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2779 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2779 | 1.00 | 12.93 | 1.62 | 12.93 |
| #FFFFFF | 12.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00367C
Deuteranopia (green-blind)
#002D77
Tritanopia (blue-blind)
#003D4C
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #1f2779; /* rgb */ color: rgb(31, 39, 121); /* oklch */ color: oklch(32.6% 0.138 271.8);
Tailwind
colors: {
custom: {
50: '#6961a1',
500: '#1f2779',
950: '#000000',
},
}SCSS
$custom: #1f2779; $custom-light: #6961a1; $custom-dark: #000000;
JSON
{
"hex": "#1f2779",
"rgb": {
"r": 31,
"g": 39,
"b": 121
},
"hsl": {
"h": 234.667,
"s": 59.211,
"l": 29.804
},
"oklch": {
"l": 0.32563,
"c": 0.13783,
"h": 271.8
},
"luminance": 0.03123
}Semantic roles & 50–950 ramp
primary
#1F2779
secondary
#ACA347
accent
#D445E2
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07050F
muted
#7A797F