#1F51C2#1F51C2
#1F51C2 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.5% C 0.185 H 263.2°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).
Color values
| HEX | #1F51C2 |
|---|---|
| RGB | rgb(31, 81, 194) |
| HSL | hsl(222, 72%, 44%) |
| HSV | hsv(222, 84%, 76%) |
| CMYK | cmyk(84%, 58.2%, 0%, 23.9%) |
| CIE-LAB | lab(37.97, 26.58, -63.56) |
| CIE-LCH | lch(37.97, 68.89, 292.70°) |
| OKLab | oklab(47.48% -0.0221 -0.1838) |
| OKLCH | oklch(47.48% 0.185 263.2) |
| XYZ | xyz(13.2416, 10.0696, 52.2742) |
| Luminance | 0.1007 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 1.93
Cobalt
#0047AB
ΔE00 4.47
Blue Blue
#2242C7
ΔE00 5.07
Blue (survey)
#0343DF
ΔE00 5.70
Denim
#1560BD
ΔE00 5.95
Warm Blue
#4B57DB
ΔE00 6.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F51C2 #C2901F
analogous
#1FA3C2 #1F51C2 #3F1FC2
triadic
#1F51C2 #C21F51 #51C21F
tetradic
#1F51C2 #C21FA3 #C2901F #1FC23F
square
#1F51C2 #C21FA3 #C2901F #1FC23F
split-complementary
#1F51C2 #C23F1F #A3C21F
monochromatic
#0E2558 #173B8D #1F51C2 #3E70E0 #7397E9
Accessibility & contrast
On white
6.97
#1F51C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.01
#1F51C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #1F51C2
6.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F51C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F51C2 | 1.00 | 6.97 | 3.01 | 6.97 |
| #FFFFFF | 6.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061C6
Deuteranopia (green-blind)
#0052C0
Tritanopia (blue-blind)
#006E81
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #1f51c2; /* rgb */ color: rgb(31, 81, 194); /* oklch */ color: oklch(47.5% 0.185 263.2);
Tailwind
colors: {
custom: {
50: '#7881d5',
500: '#1f51c2',
950: '#000000',
},
}SCSS
$custom: #1f51c2; $custom-light: #7881d5; $custom-dark: #000000;
JSON
{
"hex": "#1f51c2",
"rgb": {
"r": 31,
"g": 81,
"b": 194
},
"hsl": {
"h": 221.595,
"s": 72.444,
"l": 44.118
},
"oklch": {
"l": 0.47482,
"c": 0.18511,
"h": 263.2
},
"luminance": 0.10071
}Semantic roles & 50–950 ramp
primary
#1F51C2
secondary
#CFB16D
accent
#B739EF
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83