#5165CE#5165CE
#5165CE is a mid, vivid blue. Relative luminance 0.155; OKLCH L 54.7% C 0.163 H 271.9°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).
Color values
| HEX | #5165CE |
|---|---|
| RGB | rgb(81, 101, 206) |
| HSL | hsl(230, 56%, 56%) |
| HSV | hsv(230, 61%, 81%) |
| CMYK | cmyk(60.7%, 51%, 0%, 19.2%) |
| CIE-LAB | lab(46.33, 24.64, -56.84) |
| CIE-LCH | lch(46.33, 61.95, 293.44°) |
| OKLab | oklab(54.66% 0.0053 -0.1628) |
| OKLCH | oklch(54.66% 0.163 271.9) |
| XYZ | xyz(19.1839, 15.5114, 60.3636) |
| Luminance | 0.1551 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal Blue
#4169E1
ΔE00 3.39
Cornflower Blue
#5170D7
ΔE00 4.10
Dark Periwinkle
#665FD1
ΔE00 4.69
Warm Blue
#4B57DB
ΔE00 4.82
Azul
#1D5DEC
ΔE00 5.21
Iris
#6258C4
ΔE00 6.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5165CE #CEBA51
analogous
#51A4CE #5165CE #7C51CE
triadic
#5165CE #CE5165 #65CE51
tetradic
#5165CE #CE51A4 #CEBA51 #51CE7C
square
#5165CE #CE51A4 #CEBA51 #51CE7C
split-complementary
#5165CE #CE7C51 #A4CE51
monochromatic
#243380 #3246B0 #5165CE #818FDB #B1BAE9
Accessibility & contrast
On white
5.12
#5165CE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.10
#5165CE on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5165CE
5.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5165CE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5165CE | 1.00 | 5.12 | 4.10 | 5.12 |
| #FFFFFF | 5.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2A73D2
Deuteranopia (green-blind)
#0568CC
Tritanopia (blue-blind)
#007D90
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #5165ce; /* rgb */ color: rgb(81, 101, 206); /* oklch */ color: oklch(54.7% 0.163 271.9);
Tailwind
colors: {
custom: {
50: '#8d90de',
500: '#5165ce',
950: '#000000',
},
}SCSS
$custom: #5165ce; $custom-light: #8d90de; $custom-dark: #000000;
JSON
{
"hex": "#5165ce",
"rgb": {
"r": 81,
"g": 101,
"b": 206
},
"hsl": {
"h": 230.4,
"s": 56.054,
"l": 56.275
},
"oklch": {
"l": 0.54662,
"c": 0.16288,
"h": 271.9
},
"luminance": 0.15513
}Semantic roles & 50–950 ramp
primary
#5165CE
secondary
#D7CFA4
accent
#C748DF
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83