#1F3FA6#1F3FA6
#1F3FA6 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.5% C 0.170 H 265.8°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3FA6 |
|---|---|
| RGB | rgb(31, 63, 166) |
| HSL | hsl(226, 69%, 39%) |
| HSV | hsv(226, 81%, 65%) |
| CMYK | cmyk(81.3%, 62%, 0%, 34.9%) |
| CIE-LAB | lab(30.87, 27.72, -58.57) |
| CIE-LCH | lch(30.87, 64.79, 295.33°) |
| OKLab | oklab(41.46% -0.0124 -0.1694) |
| OKLCH | oklch(41.46% 0.17 265.8) |
| XYZ | xyz(9.2231, 6.5984, 36.8565) |
| Luminance | 0.0660 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.57
Cobalt
#0047AB
ΔE00 3.55
Blue Blue
#2242C7
ΔE00 4.65
Cobalt (survey)
#1E488F
ΔE00 5.39
Blueberry
#464196
ΔE00 5.72
Ocean Blue
#4F42B5
ΔE00 6.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3FA6 #A6861F
analogous
#1F82A6 #1F3FA6 #421FA6
triadic
#1F3FA6 #A61F3F #3FA61F
tetradic
#1F3FA6 #A61F82 #A6861F #1FA642
square
#1F3FA6 #A61F82 #A6861F #1FA642
split-complementary
#1F3FA6 #A6421F #82A61F
monochromatic
#0C183F #152B72 #1F3FA6 #2B54D7 #5E7DE1
Accessibility & contrast
On white
9.05
#1F3FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.32
#1F3FA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3FA6
9.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3FA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3FA6 | 1.00 | 9.05 | 2.32 | 9.05 |
| #FFFFFF | 9.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FA9
Deuteranopia (green-blind)
#0043A4
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #1f3fa6; /* rgb */ color: rgb(31, 63, 166); /* oklch */ color: oklch(41.5% 0.170 265.8);
Tailwind
colors: {
custom: {
50: '#7373c1',
500: '#1f3fa6',
950: '#000000',
},
}SCSS
$custom: #1f3fa6; $custom-light: #7373c1; $custom-dark: #000000;
JSON
{
"hex": "#1f3fa6",
"rgb": {
"r": 31,
"g": 63,
"b": 166
},
"hsl": {
"h": 225.778,
"s": 68.528,
"l": 38.627
},
"oklch": {
"l": 0.41457,
"c": 0.16989,
"h": 265.8
},
"luminance": 0.06599
}Semantic roles & 50–950 ramp
primary
#1F3FA6
secondary
#C5AC5B
accent
#C23CEB
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090812
muted
#7B7B81