#5165D6#5165D6
#5165D6 is a mid, vivid blue. Relative luminance 0.159; OKLCH L 55.2% C 0.174 H 271.9°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).
Color values
| HEX | #5165D6 |
|---|---|
| RGB | rgb(81, 101, 214) |
| HSL | hsl(231, 62%, 58%) |
| HSV | hsv(231, 62%, 84%) |
| CMYK | cmyk(62.1%, 52.8%, 0%, 16.1%) |
| CIE-LAB | lab(46.86, 27.36, -60.56) |
| CIE-LCH | lch(46.86, 66.45, 294.31°) |
| OKLab | oklab(55.23% 0.0059 -0.1737) |
| OKLCH | oklch(55.23% 0.174 271.9) |
| XYZ | xyz(20.1806, 15.9100, 65.6128) |
| Luminance | 0.1591 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal Blue
#4169E1
ΔE00 2.90
Cornflower Blue
#5170D7
ΔE00 3.94
Dark Periwinkle
#665FD1
ΔE00 4.50
Warm Blue
#4B57DB
ΔE00 4.52
Azul
#1D5DEC
ΔE00 4.75
Bright Blue
#0165FC
ΔE00 5.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5165D6 #D6C251
analogous
#51A8D6 #5165D6 #7F51D6
triadic
#5165D6 #D65165 #65D651
tetradic
#5165D6 #D651A8 #D6C251 #51D67F
square
#5165D6 #D651A8 #D6C251 #51D67F
split-complementary
#5165D6 #D67F51 #A8D651
monochromatic
#21318C #2D42BD #5165D6 #8391E2 #B4BDED
Accessibility & contrast
On white
5.02
#5165D6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.18
#5165D6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5165D6
5.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5165D6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5165D6 | 1.00 | 5.02 | 4.18 | 5.02 |
| #FFFFFF | 5.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1C75DA
Deuteranopia (green-blind)
#0069D4
Tritanopia (blue-blind)
#007F94
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #5165d6; /* rgb */ color: rgb(81, 101, 214); /* oklch */ color: oklch(55.2% 0.174 271.9);
Tailwind
colors: {
custom: {
50: '#8e90e3',
500: '#5165d6',
950: '#000000',
},
}SCSS
$custom: #5165d6; $custom-light: #8e90e3; $custom-dark: #000000;
JSON
{
"hex": "#5165d6",
"rgb": {
"r": 81,
"g": 101,
"b": 214
},
"hsl": {
"h": 230.977,
"s": 61.86,
"l": 57.843
},
"oklch": {
"l": 0.5523,
"c": 0.17383,
"h": 271.9
},
"luminance": 0.15912
}Semantic roles & 50–950 ramp
primary
#5165D6
secondary
#DCD4A7
accent
#CD43E5
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0D0C16
muted
#7E7D84