#1F2FA8#1F2FA8
#1F2FA8 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.8% C 0.191 H 268.6°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2FA8 |
|---|---|
| RGB | rgb(31, 47, 168) |
| HSL | hsl(233, 69%, 39%) |
| HSV | hsv(233, 82%, 66%) |
| CMYK | cmyk(81.5%, 72%, 0%, 34.1%) |
| CIE-LAB | lab(27.16, 38.85, -65.87) |
| CIE-LCH | lch(27.16, 76.47, 300.53°) |
| OKLab | oklab(38.8% -0.0046 -0.1909) |
| OKLCH | oklch(38.8% 0.191 268.6) |
| XYZ | xyz(8.6470, 5.1505, 37.5766) |
| Luminance | 0.0515 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.54
Indigo Blue
#3A18B1
ΔE00 5.80
Royal
#0C1793
ΔE00 6.26
Blue Blue
#2242C7
ΔE00 6.53
True Blue
#010FCC
ΔE00 6.78
Blueberry
#464196
ΔE00 7.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2FA8 #A8981F
analogous
#1F74A8 #1F2FA8 #541FA8
triadic
#1F2FA8 #A81F2F #2FA81F
tetradic
#1F2FA8 #A81F74 #A8981F #1FA854
square
#1F2FA8 #A81F74 #A8981F #1FA854
split-complementary
#1F2FA8 #A8541F #74A81F
monochromatic
#0C1241 #152174 #1F2FA8 #2C40D8 #606FE2
Accessibility & contrast
On white
10.34
#1F2FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.03
#1F2FA8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2FA8
10.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2FA8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2FA8 | 1.00 | 10.34 | 2.03 | 10.34 |
| #FFFFFF | 10.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0047AC
Deuteranopia (green-blind)
#0039A6
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #1f2fa8; /* rgb */ color: rgb(31, 47, 168); /* oklch */ color: oklch(38.8% 0.191 268.6);
Tailwind
colors: {
custom: {
50: '#7568c3',
500: '#1f2fa8',
950: '#000000',
},
}SCSS
$custom: #1f2fa8; $custom-light: #7568c3; $custom-dark: #000000;
JSON
{
"hex": "#1f2fa8",
"rgb": {
"r": 31,
"g": 47,
"b": 168
},
"hsl": {
"h": 232.993,
"s": 68.844,
"l": 39.02
},
"oklch": {
"l": 0.38796,
"c": 0.19093,
"h": 268.6
},
"luminance": 0.05151
}Semantic roles & 50–950 ramp
primary
#1F2FA8
secondary
#C6BA5D
accent
#D73CEC
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82