#5165C8#5165C8
#5165C8 is a mid, vivid blue. Relative luminance 0.152; OKLCH L 54.2% C 0.155 H 271.7°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).
Color values
| HEX | #5165C8 |
|---|---|
| RGB | rgb(81, 101, 200) |
| HSL | hsl(230, 52%, 55%) |
| HSV | hsv(230, 60%, 78%) |
| CMYK | cmyk(59.5%, 49.5%, 0%, 21.6%) |
| CIE-LAB | lab(45.94, 22.62, -54.01) |
| CIE-LCH | lch(45.94, 58.56, 292.72°) |
| OKLab | oklab(54.25% 0.0047 -0.1545) |
| OKLCH | oklch(54.25% 0.155 271.7) |
| XYZ | xyz(18.4689, 15.2254, 56.5979) |
| Luminance | 0.1523 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal Blue
#4169E1
ΔE00 3.92
Cornflower Blue
#5170D7
ΔE00 4.39
Dark Periwinkle
#665FD1
ΔE00 5.00
Warm Blue
#4B57DB
ΔE00 5.20
Azul
#1D5DEC
ΔE00 5.68
French Blue
#436BAD
ΔE00 5.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5165C8 #C8B451
analogous
#51A0C8 #5165C8 #7851C8
triadic
#5165C8 #C85165 #65C851
tetradic
#5165C8 #C851A0 #C8B451 #51C878
square
#5165C8 #C851A0 #C8B451 #51C878
split-complementary
#5165C8 #C87851 #A0C851
monochromatic
#263479 #3548A7 #5165C8 #808ED7 #AEB7E5
Accessibility & contrast
On white
5.19
#5165C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.05
#5165C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5165C8
5.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5165C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5165C8 | 1.00 | 5.19 | 4.05 | 5.19 |
| #FFFFFF | 5.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3172CC
Deuteranopia (green-blind)
#1A68C6
Tritanopia (blue-blind)
#007C8D
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #5165c8; /* rgb */ color: rgb(81, 101, 200); /* oklch */ color: oklch(54.2% 0.155 271.7);
Tailwind
colors: {
custom: {
50: '#8c90d9',
500: '#5165c8',
950: '#000000',
},
}SCSS
$custom: #5165c8; $custom-light: #8c90d9; $custom-dark: #000000;
JSON
{
"hex": "#5165c8",
"rgb": {
"r": 81,
"g": 101,
"b": 200
},
"hsl": {
"h": 229.916,
"s": 51.965,
"l": 55.098
},
"oklch": {
"l": 0.54247,
"c": 0.15455,
"h": 271.7
},
"luminance": 0.15227
}Semantic roles & 50–950 ramp
primary
#5165C8
secondary
#D3CBA1
accent
#C34CDB
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83