#1F2982#1F2982
#1F2982 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.8% C 0.148 H 270.9°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2982 |
|---|---|
| RGB | rgb(31, 41, 130) |
| HSL | hsl(234, 61%, 32%) |
| HSV | hsv(234, 76%, 51%) |
| CMYK | cmyk(76.2%, 68.5%, 0%, 49%) |
| CIE-LAB | lab(21.90, 28.68, -51.12) |
| CIE-LCH | lch(21.90, 58.62, 299.29°) |
| OKLab | oklab(33.83% 0.0023 -0.1478) |
| OKLCH | oklch(33.83% 0.148 270.9) |
| XYZ | xyz(5.3859, 3.4883, 21.5042) |
| Luminance | 0.0349 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.77
Royal
#0C1793
ΔE00 5.48
Sapphire (survey)
#2138AB
ΔE00 6.85
Darkslateblue
#483D8B
ΔE00 7.55
Marine
#042E60
ΔE00 8.05
Blueberry
#464196
ΔE00 8.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2982 #82781F
analogous
#1F5B82 #1F2982 #471F82
triadic
#1F2982 #821F29 #29821F
tetradic
#1F2982 #821F5B #82781F #1F8247
square
#1F2982 #821F5B #82781F #1F8247
split-complementary
#1F2982 #82471F #5B821F
monochromatic
#070A1F #131951 #1F2982 #2B39B3 #4856D3
Accessibility & contrast
On white
12.37
#1F2982 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#1F2982 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2982
12.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2982 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2982 | 1.00 | 12.37 | 1.70 | 12.37 |
| #FFFFFF | 12.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003985
Deuteranopia (green-blind)
#003080
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #1f2982; /* rgb */ color: rgb(31, 41, 130); /* oklch */ color: oklch(33.8% 0.148 270.9);
Tailwind
colors: {
custom: {
50: '#6b63a7',
500: '#1f2982',
950: '#000000',
},
}SCSS
$custom: #1f2982; $custom-light: #6b63a7; $custom-dark: #000000;
JSON
{
"hex": "#1f2982",
"rgb": {
"r": 31,
"g": 41,
"b": 130
},
"hsl": {
"h": 233.939,
"s": 61.491,
"l": 31.569
},
"oklch": {
"l": 0.33832,
"c": 0.14787,
"h": 270.9
},
"luminance": 0.03489
}Semantic roles & 50–950 ramp
primary
#1F2982
secondary
#B5AA48
accent
#D443E5
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#080510
muted
#7A797F