#1F2FA5#1F2FA5
#1F2FA5 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.5% C 0.187 H 268.7°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2FA5 |
|---|---|
| RGB | rgb(31, 47, 165) |
| HSL | hsl(233, 68%, 38%) |
| HSV | hsv(233, 81%, 65%) |
| CMYK | cmyk(81.2%, 71.5%, 0%, 35.3%) |
| CIE-LAB | lab(26.85, 37.77, -64.58) |
| CIE-LCH | lch(26.85, 74.81, 300.32°) |
| OKLab | oklab(38.48% -0.0043 -0.1871) |
| OKLCH | oklch(38.48% 0.187 268.7) |
| XYZ | xyz(8.3708, 5.0400, 36.1217) |
| Luminance | 0.0504 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.60
Indigo Blue
#3A18B1
ΔE00 6.00
Royal
#0C1793
ΔE00 6.12
Blue Blue
#2242C7
ΔE00 6.78
Blueberry
#464196
ΔE00 6.93
True Blue
#010FCC
ΔE00 7.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2FA5 #A5951F
analogous
#1F72A5 #1F2FA5 #521FA5
triadic
#1F2FA5 #A51F2F #2FA51F
tetradic
#1F2FA5 #A51F72 #A5951F #1FA552
square
#1F2FA5 #A51F72 #A5951F #1FA552
split-complementary
#1F2FA5 #A5521F #72A51F
monochromatic
#0C123E #152071 #1F2FA5 #2A3FD7 #5E6DE1
Accessibility & contrast
On white
10.46
#1F2FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.01
#1F2FA5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2FA5
10.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2FA5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2FA5 | 1.00 | 10.46 | 2.01 | 10.46 |
| #FFFFFF | 10.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046A9
Deuteranopia (green-blind)
#0039A3
Tritanopia (blue-blind)
#005066
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #1f2fa5; /* rgb */ color: rgb(31, 47, 165); /* oklch */ color: oklch(38.5% 0.187 268.7);
Tailwind
colors: {
custom: {
50: '#7468c1',
500: '#1f2fa5',
950: '#000000',
},
}SCSS
$custom: #1f2fa5; $custom-light: #7468c1; $custom-dark: #000000;
JSON
{
"hex": "#1f2fa5",
"rgb": {
"r": 31,
"g": 47,
"b": 165
},
"hsl": {
"h": 232.836,
"s": 68.367,
"l": 38.431
},
"oklch": {
"l": 0.38479,
"c": 0.18714,
"h": 268.7
},
"luminance": 0.05041
}Semantic roles & 50–950 ramp
primary
#1F2FA5
secondary
#C5B85B
accent
#D63DEB
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81