#1F2B82#1F2B82
#1F2B82 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.2% C 0.145 H 270.4°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2B82 |
|---|---|
| RGB | rgb(31, 43, 130) |
| HSL | hsl(233, 61%, 32%) |
| HSV | hsv(233, 76%, 51%) |
| CMYK | cmyk(76.2%, 66.9%, 0%, 49%) |
| CIE-LAB | lab(22.41, 27.33, -50.29) |
| CIE-LCH | lch(22.41, 57.24, 298.52°) |
| OKLab | oklab(34.2% 0.001 -0.1454) |
| OKLCH | oklch(34.2% 0.145 270.4) |
| XYZ | xyz(5.4568, 3.6302, 21.5279) |
| Luminance | 0.0363 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.30
Royal
#0C1793
ΔE00 6.04
Sapphire (survey)
#2138AB
ΔE00 6.60
Darkslateblue
#483D8B
ΔE00 7.28
Marine
#042E60
ΔE00 7.64
Blueberry
#464196
ΔE00 7.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2B82 #82761F
analogous
#1F5D82 #1F2B82 #451F82
triadic
#1F2B82 #821F2B #2B821F
tetradic
#1F2B82 #821F5D #82761F #1F8245
square
#1F2B82 #821F5D #82761F #1F8245
split-complementary
#1F2B82 #82451F #5D821F
monochromatic
#070A1F #131B51 #1F2B82 #2B3BB3 #4859D3
Accessibility & contrast
On white
12.17
#1F2B82 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#1F2B82 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2B82
12.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2B82 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2B82 | 1.00 | 12.17 | 1.73 | 12.17 |
| #FFFFFF | 12.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A85
Deuteranopia (green-blind)
#003180
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #1f2b82; /* rgb */ color: rgb(31, 43, 130); /* oklch */ color: oklch(34.2% 0.145 270.4);
Tailwind
colors: {
custom: {
50: '#6b64a7',
500: '#1f2b82',
950: '#000000',
},
}SCSS
$custom: #1f2b82; $custom-light: #6b64a7; $custom-dark: #000000;
JSON
{
"hex": "#1f2b82",
"rgb": {
"r": 31,
"g": 43,
"b": 130
},
"hsl": {
"h": 232.727,
"s": 61.491,
"l": 31.569
},
"oklch": {
"l": 0.34203,
"c": 0.1454,
"h": 270.4
},
"luminance": 0.03631
}Semantic roles & 50–950 ramp
primary
#1F2B82
secondary
#B5A848
accent
#D143E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080510
muted
#7A7A7F