#1F2A82#1F2A82
#1F2A82 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.147 H 270.6°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2A82 |
|---|---|
| RGB | rgb(31, 42, 130) |
| HSL | hsl(233, 61%, 32%) |
| HSV | hsv(233, 76%, 51%) |
| CMYK | cmyk(76.2%, 67.7%, 0%, 49%) |
| CIE-LAB | lab(22.15, 28.01, -50.71) |
| CIE-LCH | lch(22.15, 57.93, 298.91°) |
| OKLab | oklab(34.02% 0.0016 -0.1466) |
| OKLCH | oklch(34.02% 0.147 270.6) |
| XYZ | xyz(5.4209, 3.5584, 21.5159) |
| Luminance | 0.0356 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.03
Royal
#0C1793
ΔE00 5.76
Sapphire (survey)
#2138AB
ΔE00 6.72
Darkslateblue
#483D8B
ΔE00 7.41
Marine
#042E60
ΔE00 7.84
Blueberry
#464196
ΔE00 7.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2A82 #82771F
analogous
#1F5C82 #1F2A82 #461F82
triadic
#1F2A82 #821F2A #2A821F
tetradic
#1F2A82 #821F5C #82771F #1F8246
square
#1F2A82 #821F5C #82771F #1F8246
split-complementary
#1F2A82 #82461F #5C821F
monochromatic
#070A1F #131A51 #1F2A82 #2B3AB3 #4858D3
Accessibility & contrast
On white
12.27
#1F2A82 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#1F2A82 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2A82
12.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2A82 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2A82 | 1.00 | 12.27 | 1.71 | 12.27 |
| #FFFFFF | 12.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A85
Deuteranopia (green-blind)
#003080
Tritanopia (blue-blind)
#004152
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #1f2a82; /* rgb */ color: rgb(31, 42, 130); /* oklch */ color: oklch(34.0% 0.147 270.6);
Tailwind
colors: {
custom: {
50: '#6b63a7',
500: '#1f2a82',
950: '#000000',
},
}SCSS
$custom: #1f2a82; $custom-light: #6b63a7; $custom-dark: #000000;
JSON
{
"hex": "#1f2a82",
"rgb": {
"r": 31,
"g": 42,
"b": 130
},
"hsl": {
"h": 233.333,
"s": 61.491,
"l": 31.569
},
"oklch": {
"l": 0.34016,
"c": 0.14664,
"h": 270.6
},
"luminance": 0.03559
}Semantic roles & 50–950 ramp
primary
#1F2A82
secondary
#B5A948
accent
#D343E5
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#080510
muted
#7A797F