#1F1480#1F1480
#1F1480 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.167 H 274.5°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1480 |
|---|---|
| RGB | rgb(31, 20, 128) |
| HSL | hsl(246, 73%, 29%) |
| HSV | hsv(246, 84%, 50%) |
| CMYK | cmyk(75.8%, 84.4%, 0%, 49.8%) |
| CIE-LAB | lab(17.22, 40.45, -57.57) |
| CIE-LCH | lch(17.22, 70.36, 305.09°) |
| OKLab | oklab(30.44% 0.0132 -0.1665) |
| OKLCH | oklch(30.44% 0.167 274.5) |
| XYZ | xyz(4.7102, 2.3497, 20.6232) |
| Luminance | 0.0235 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.96
Midnight Blue
#191970
ΔE00 3.15
Navy
#000080
ΔE00 3.58
Darkblue
#00008B
ΔE00 3.61
Dark Royal Blue
#02066F
ΔE00 3.94
Deep Blue
#040273
ΔE00 3.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1480 #758014
analogous
#143F80 #1F1480 #551480
triadic
#1F1480 #801F14 #14801F
tetradic
#1F1480 #80143F #758014 #148055
square
#1F1480 #80143F #758014 #148055
split-complementary
#1F1480 #805514 #3F8014
monochromatic
#06041A #120C4B #1F1480 #2C1CB5 #4230DF
Accessibility & contrast
On white
14.29
#1F1480 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#1F1480 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1480
14.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1480 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1480 | 1.00 | 14.29 | 1.47 | 14.29 |
| #FFFFFF | 14.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F83
Deuteranopia (green-blind)
#00257E
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #1f1480; /* rgb */ color: rgb(31, 20, 128); /* oklch */ color: oklch(30.4% 0.167 274.5);
Tailwind
colors: {
custom: {
50: '#6d55a6',
500: '#1f1480',
950: '#000000',
},
}SCSS
$custom: #1f1480; $custom-light: #6d55a6; $custom-dark: #000000;
JSON
{
"hex": "#1f1480",
"rgb": {
"r": 31,
"g": 20,
"b": 128
},
"hsl": {
"h": 246.111,
"s": 72.973,
"l": 29.02
},
"oklch": {
"l": 0.30439,
"c": 0.16701,
"h": 274.5
},
"luminance": 0.0235
}Semantic roles & 50–950 ramp
primary
#1F1480
secondary
#A9B53B
accent
#F038DD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F