#1F2580#1F2580
#1F2580 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.9% C 0.150 H 271.9°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2580 |
|---|---|
| RGB | rgb(31, 37, 128) |
| HSL | hsl(236, 61%, 31%) |
| HSV | hsv(236, 76%, 50%) |
| CMYK | cmyk(75.8%, 71.1%, 0%, 49.8%) |
| CIE-LAB | lab(20.72, 30.57, -51.80) |
| CIE-LCH | lch(20.72, 60.15, 300.55°) |
| OKLab | oklab(32.92% 0.005 -0.1498) |
| OKLCH | oklch(32.92% 0.15 271.9) |
| XYZ | xyz(5.1216, 3.1724, 20.7603) |
| Luminance | 0.0317 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.69
Royal
#0C1793
ΔE00 4.69
Dark Royal Blue
#02066F
ΔE00 7.27
Darkblue
#00008B
ΔE00 7.51
Cobalt Blue
#030AA7
ΔE00 7.59
Navy
#000080
ΔE00 7.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2580 #807A1F
analogous
#1F5580 #1F2580 #491F80
triadic
#1F2580 #801F25 #25801F
tetradic
#1F2580 #801F55 #807A1F #1F8049
square
#1F2580 #801F55 #807A1F #1F8049
split-complementary
#1F2580 #80491F #55801F
monochromatic
#07091D #13174F #1F2580 #2B33B1 #4750D2
Accessibility & contrast
On white
12.85
#1F2580 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#1F2580 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2580
12.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2580 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2580 | 1.00 | 12.85 | 1.63 | 12.85 |
| #FFFFFF | 12.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003683
Deuteranopia (green-blind)
#002D7E
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #1f2580; /* rgb */ color: rgb(31, 37, 128); /* oklch */ color: oklch(32.9% 0.150 271.9);
Tailwind
colors: {
custom: {
50: '#6b60a6',
500: '#1f2580',
950: '#000000',
},
}SCSS
$custom: #1f2580; $custom-light: #6b60a6; $custom-dark: #000000;
JSON
{
"hex": "#1f2580",
"rgb": {
"r": 31,
"g": 37,
"b": 128
},
"hsl": {
"h": 236.289,
"s": 61.006,
"l": 31.176
},
"oklch": {
"l": 0.32915,
"c": 0.14991,
"h": 271.9
},
"luminance": 0.03173
}Semantic roles & 50–950 ramp
primary
#1F2580
secondary
#B3AC48
accent
#DA44E4
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08050F
muted
#7A797F