#5179F2#5179F2
#5179F2 is a mid, vivid blue. Relative luminance 0.218; OKLCH L 61.1% C 0.187 H 267.0°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).
Color values
| HEX | #5179F2 |
|---|---|
| RGB | rgb(81, 121, 242) |
| HSL | hsl(225, 86%, 63%) |
| HSV | hsv(225, 67%, 95%) |
| CMYK | cmyk(66.5%, 50%, 0%, 5.1%) |
| CIE-LAB | lab(53.85, 24.55, -65.03) |
| CIE-LCH | lch(53.85, 69.51, 290.68°) |
| OKLab | oklab(61.1% -0.0098 -0.1866) |
| OKLCH | oklch(61.1% 0.187 267) |
| XYZ | xyz(26.2522, 21.8323, 86.8178) |
| Luminance | 0.2183 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Lightish Blue
#3D7AFD
ΔE00 2.13
Clear Blue
#247AFD
ΔE00 3.77
Cornflower
#6A79F7
ΔE00 3.95
Dodger Blue
#3E82FC
ΔE00 4.19
Deep Sky Blue
#0D75F8
ΔE00 4.54
Cornflower Blue
#5170D7
ΔE00 4.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5179F2 #F2CA51
analogous
#51C9F2 #5179F2 #7951F2
triadic
#5179F2 #F25179 #79F251
tetradic
#5179F2 #F251C9 #F2CA51 #51F279
square
#5179F2 #F251C9 #F2CA51 #51F279
split-complementary
#5179F2 #F27951 #C9F251
monochromatic
#0E39BB #184DEE #5179F2 #8AA5F6 #C3D1FB
Accessibility & contrast
On white
3.91
#5179F2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.37
#5179F2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5179F2
5.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5179F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5179F2 | 1.00 | 3.91 | 5.37 | 5.37 |
| #FFFFFF | 3.91 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.37 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.37 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3288F6
Deuteranopia (green-blind)
#007AF0
Tritanopia (blue-blind)
#0095AA
Achromatopsia (no color)
#818181
Design tokens & code
CSS
--color: #5179f2; /* rgb */ color: rgb(81, 121, 242); /* oklch */ color: oklch(61.1% 0.187 267.0);
Tailwind
colors: {
custom: {
50: '#929ff7',
500: '#5179f2',
950: '#000000',
},
}SCSS
$custom: #5179f2; $custom-light: #929ff7; $custom-dark: #000000;
JSON
{
"hex": "#5179f2",
"rgb": {
"r": 81,
"g": 121,
"b": 242
},
"hsl": {
"h": 225.093,
"s": 86.096,
"l": 63.333
},
"oklch": {
"l": 0.61103,
"c": 0.18689,
"h": 267
},
"luminance": 0.21835
}Semantic roles & 50–950 ramp
primary
#5179F2
secondary
#ECDEB3
accent
#AB03E3
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0E0E17
muted
#7E7E85