#1F3FA8#1F3FA8
#1F3FA8 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.6% C 0.173 H 265.9°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3FA8 |
|---|---|
| RGB | rgb(31, 63, 168) |
| HSL | hsl(226, 69%, 39%) |
| HSV | hsv(226, 82%, 66%) |
| CMYK | cmyk(81.5%, 62.5%, 0%, 34.1%) |
| CIE-LAB | lab(31.05, 28.49, -59.48) |
| CIE-LCH | lch(31.05, 65.95, 295.59°) |
| OKLab | oklab(41.64% -0.0124 -0.1721) |
| OKLCH | oklch(41.64% 0.173 265.9) |
| XYZ | xyz(9.4080, 6.6724, 37.8302) |
| Luminance | 0.0667 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.43
Cobalt
#0047AB
ΔE00 3.60
Blue Blue
#2242C7
ΔE00 4.36
Cobalt (survey)
#1E488F
ΔE00 5.61
Blueberry
#464196
ΔE00 5.78
Ocean Blue
#4F42B5
ΔE00 6.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3FA8 #A8881F
analogous
#1F84A8 #1F3FA8 #431FA8
triadic
#1F3FA8 #A81F3F #3FA81F
tetradic
#1F3FA8 #A81F84 #A8881F #1FA843
square
#1F3FA8 #A81F84 #A8881F #1FA843
split-complementary
#1F3FA8 #A8431F #84A81F
monochromatic
#0C1841 #152C74 #1F3FA8 #2C54D8 #607EE2
Accessibility & contrast
On white
9.00
#1F3FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.33
#1F3FA8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3FA8
9.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3FA8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3FA8 | 1.00 | 9.00 | 2.33 | 9.00 |
| #FFFFFF | 9.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050AB
Deuteranopia (green-blind)
#0043A6
Tritanopia (blue-blind)
#005A6D
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #1f3fa8; /* rgb */ color: rgb(31, 63, 168); /* oklch */ color: oklch(41.6% 0.173 265.9);
Tailwind
colors: {
custom: {
50: '#7373c3',
500: '#1f3fa8',
950: '#000000',
},
}SCSS
$custom: #1f3fa8; $custom-light: #7373c3; $custom-dark: #000000;
JSON
{
"hex": "#1f3fa8",
"rgb": {
"r": 31,
"g": 63,
"b": 168
},
"hsl": {
"h": 225.985,
"s": 68.844,
"l": 39.02
},
"oklch": {
"l": 0.4164,
"c": 0.17256,
"h": 265.9
},
"luminance": 0.06673
}Semantic roles & 50–950 ramp
primary
#1F3FA8
secondary
#C6AE5D
accent
#C33CEC
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82