#5165D7#5165D7
#5165D7 is a mid, vivid blue. Relative luminance 0.160; OKLCH L 55.3% C 0.175 H 272.0°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).
Color values
| HEX | #5165D7 |
|---|---|
| RGB | rgb(81, 101, 215) |
| HSL | hsl(231, 63%, 58%) |
| HSV | hsv(231, 62%, 84%) |
| CMYK | cmyk(62.3%, 53%, 0%, 15.7%) |
| CIE-LAB | lab(46.92, 27.69, -61.02) |
| CIE-LCH | lch(46.92, 67.01, 294.41°) |
| OKLab | oklab(55.3% 0.006 -0.1751) |
| OKLCH | oklch(55.3% 0.175 272) |
| XYZ | xyz(20.3087, 15.9613, 66.2874) |
| Luminance | 0.1596 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal Blue
#4169E1
ΔE00 2.86
Cornflower Blue
#5170D7
ΔE00 3.93
Warm Blue
#4B57DB
ΔE00 4.50
Dark Periwinkle
#665FD1
ΔE00 4.50
Azul
#1D5DEC
ΔE00 4.71
Bright Blue
#0165FC
ΔE00 5.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5165D7 #D7C351
analogous
#51A8D7 #5165D7 #8051D7
triadic
#5165D7 #D75165 #65D751
tetradic
#5165D7 #D751A8 #D7C351 #51D780
square
#5165D7 #D751A8 #D7C351 #51D780
split-complementary
#5165D7 #D78051 #A8D751
monochromatic
#20318D #2C42BF #5165D7 #8391E2 #B5BDEE
Accessibility & contrast
On white
5.01
#5165D7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.19
#5165D7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5165D7
5.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5165D7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5165D7 | 1.00 | 5.01 | 4.19 | 5.01 |
| #FFFFFF | 5.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1A75DB
Deuteranopia (green-blind)
#006AD5
Tritanopia (blue-blind)
#008094
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #5165d7; /* rgb */ color: rgb(81, 101, 215); /* oklch */ color: oklch(55.3% 0.175 272.0);
Tailwind
colors: {
custom: {
50: '#8f90e4',
500: '#5165d7',
950: '#000000',
},
}SCSS
$custom: #5165d7; $custom-light: #8f90e4; $custom-dark: #000000;
JSON
{
"hex": "#5165d7",
"rgb": {
"r": 81,
"g": 101,
"b": 215
},
"hsl": {
"h": 231.045,
"s": 62.617,
"l": 58.039
},
"oklch": {
"l": 0.55302,
"c": 0.17519,
"h": 272
},
"luminance": 0.15963
}Semantic roles & 50–950 ramp
primary
#5165D7
secondary
#DDD5A7
accent
#CD42E6
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C16
muted
#7E7D84