#1F2FA6#1F2FA6
#1F2FA6 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.6% C 0.188 H 268.7°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2FA6 |
|---|---|
| RGB | rgb(31, 47, 166) |
| HSL | hsl(233, 69%, 39%) |
| HSV | hsv(233, 81%, 65%) |
| CMYK | cmyk(81.3%, 71.7%, 0%, 34.9%) |
| CIE-LAB | lab(26.95, 38.13, -65.01) |
| CIE-LCH | lch(26.95, 75.37, 300.39°) |
| OKLab | oklab(38.59% -0.0044 -0.1883) |
| OKLCH | oklch(38.59% 0.188 268.7) |
| XYZ | xyz(8.4621, 5.0765, 36.6029) |
| Luminance | 0.0508 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.57
Indigo Blue
#3A18B1
ΔE00 5.93
Royal
#0C1793
ΔE00 6.16
Blue Blue
#2242C7
ΔE00 6.69
Blueberry
#464196
ΔE00 6.97
True Blue
#010FCC
ΔE00 6.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2FA6 #A6961F
analogous
#1F72A6 #1F2FA6 #521FA6
triadic
#1F2FA6 #A61F2F #2FA61F
tetradic
#1F2FA6 #A61F72 #A6961F #1FA652
square
#1F2FA6 #A61F72 #A6961F #1FA652
split-complementary
#1F2FA6 #A6521F #72A61F
monochromatic
#0C123F #152072 #1F2FA6 #2B3FD7 #5E6EE1
Accessibility & contrast
On white
10.42
#1F2FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.02
#1F2FA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2FA6
10.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2FA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2FA6 | 1.00 | 10.42 | 2.02 | 10.42 |
| #FFFFFF | 10.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046AA
Deuteranopia (green-blind)
#0039A4
Tritanopia (blue-blind)
#005167
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #1f2fa6; /* rgb */ color: rgb(31, 47, 166); /* oklch */ color: oklch(38.6% 0.188 268.7);
Tailwind
colors: {
custom: {
50: '#7468c2',
500: '#1f2fa6',
950: '#000000',
},
}SCSS
$custom: #1f2fa6; $custom-light: #7468c2; $custom-dark: #000000;
JSON
{
"hex": "#1f2fa6",
"rgb": {
"r": 31,
"g": 47,
"b": 166
},
"hsl": {
"h": 232.889,
"s": 68.528,
"l": 38.627
},
"oklch": {
"l": 0.38585,
"c": 0.1884,
"h": 268.7
},
"luminance": 0.05078
}Semantic roles & 50–950 ramp
primary
#1F2FA6
secondary
#C5B95B
accent
#D73CEB
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81