#1F3AA6#1F3AA6
#1F3AA6 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.5% C 0.176 H 266.9°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3AA6 |
|---|---|
| RGB | rgb(31, 58, 166) |
| HSL | hsl(228, 69%, 39%) |
| HSV | hsv(228, 81%, 65%) |
| CMYK | cmyk(81.3%, 65.1%, 0%, 34.9%) |
| CIE-LAB | lab(29.59, 31.05, -60.67) |
| CIE-LCH | lch(29.59, 68.16, 297.10°) |
| OKLab | oklab(40.51% -0.0096 -0.1757) |
| OKLCH | oklch(40.51% 0.176 266.9) |
| XYZ | xyz(8.9587, 6.0695, 36.7684) |
| Luminance | 0.0607 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 1.13
Blue Blue
#2242C7
ΔE00 4.92
Cobalt
#0047AB
ΔE00 5.07
Blueberry
#464196
ΔE00 5.69
Ocean Blue
#4F42B5
ΔE00 6.51
Cobalt (survey)
#1E488F
ΔE00 6.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3AA6 #A68B1F
analogous
#1F7DA6 #1F3AA6 #471FA6
triadic
#1F3AA6 #A61F3A #3AA61F
tetradic
#1F3AA6 #A61F7D #A68B1F #1FA647
square
#1F3AA6 #A61F7D #A68B1F #1FA647
split-complementary
#1F3AA6 #A6471F #7DA61F
monochromatic
#0C163F #152872 #1F3AA6 #2B4DD7 #5E79E1
Accessibility & contrast
On white
9.48
#1F3AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.21
#1F3AA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3AA6
9.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3AA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3AA6 | 1.00 | 9.48 | 2.21 | 9.48 |
| #FFFFFF | 9.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004CA9
Deuteranopia (green-blind)
#003FA4
Tritanopia (blue-blind)
#00576A
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #1f3aa6; /* rgb */ color: rgb(31, 58, 166); /* oklch */ color: oklch(40.5% 0.176 266.9);
Tailwind
colors: {
custom: {
50: '#7370c1',
500: '#1f3aa6',
950: '#000000',
},
}SCSS
$custom: #1f3aa6; $custom-light: #7370c1; $custom-dark: #000000;
JSON
{
"hex": "#1f3aa6",
"rgb": {
"r": 31,
"g": 58,
"b": 166
},
"hsl": {
"h": 228,
"s": 68.528,
"l": 38.627
},
"oklch": {
"l": 0.40505,
"c": 0.17592,
"h": 266.9
},
"luminance": 0.06071
}Semantic roles & 50–950 ramp
primary
#1F3AA6
secondary
#C5B05B
accent
#C83CEB
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81