#5166F2#5166F2
#5166F2 is a mid, highly saturated blue. Relative luminance 0.177; OKLCH L 57.5% C 0.210 H 271.6°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).
Color values
| HEX | #5166F2 |
|---|---|
| RGB | rgb(81, 102, 242) |
| HSL | hsl(232, 86%, 63%) |
| HSV | hsv(232, 67%, 95%) |
| CMYK | cmyk(66.5%, 57.9%, 0%, 5.1%) |
| CIE-LAB | lab(49.08, 36.23, -72.75) |
| CIE-LCH | lch(49.08, 81.28, 296.47°) |
| OKLab | oklab(57.52% 0.006 -0.2096) |
| OKLCH | oklch(57.52% 0.21 271.6) |
| XYZ | xyz(24.1663, 17.6606, 86.1225) |
| Luminance | 0.1766 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal Blue
#4169E1
ΔE00 3.73
Bright Blue
#0165FC
ΔE00 4.55
Cornflower Blue
#5170D7
ΔE00 4.90
Azul
#1D5DEC
ΔE00 5.21
Warm Blue
#4B57DB
ΔE00 5.80
Dark Periwinkle
#665FD1
ΔE00 5.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5166F2 #F2DD51
analogous
#51B6F2 #5166F2 #8C51F2
triadic
#5166F2 #F25166 #66F251
tetradic
#5166F2 #F251B6 #F2DD51 #51F28C
square
#5166F2 #F251B6 #F2DD51 #51F28C
split-complementary
#5166F2 #F28C51 #B6F251
monochromatic
#0E24BB #1834EE #5166F2 #8A98F6 #C3CAFB
Accessibility & contrast
On white
4.63
#5166F2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.53
#5166F2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #5166F2
4.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5166F2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5166F2 | 1.00 | 4.63 | 4.53 | 4.63 |
| #FFFFFF | 4.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007CF7
Deuteranopia (green-blind)
#006EEF
Tritanopia (blue-blind)
#0089A2
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #5166f2; /* rgb */ color: rgb(81, 102, 242); /* oklch */ color: oklch(57.5% 0.210 271.6);
Tailwind
colors: {
custom: {
50: '#9391f7',
500: '#5166f2',
950: '#000000',
},
}SCSS
$custom: #5166f2; $custom-light: #9391f7; $custom-dark: #000000;
JSON
{
"hex": "#5166f2",
"rgb": {
"r": 81,
"g": 102,
"b": 242
},
"hsl": {
"h": 232.174,
"s": 86.096,
"l": 63.333
},
"oklch": {
"l": 0.57519,
"c": 0.20968,
"h": 271.6
},
"luminance": 0.17663
}Semantic roles & 50–950 ramp
primary
#5166F2
secondary
#ECE5B3
accent
#C503E3
background
#F9F8FF
surface
#F2F0FF
border
#CCCBD7
text
#0F0C17
muted
#7E7D85