#5164CD#5164CD
#5164CD is a mid, vivid blue. Relative luminance 0.153; OKLCH L 54.4% C 0.163 H 272.2°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).
Color values
| HEX | #5164CD |
|---|---|
| RGB | rgb(81, 100, 205) |
| HSL | hsl(231, 55%, 56%) |
| HSV | hsv(231, 60%, 80%) |
| CMYK | cmyk(60.5%, 51.2%, 0%, 19.6%) |
| CIE-LAB | lab(46.00, 24.93, -56.79) |
| CIE-LCH | lch(46.00, 62.02, 293.70°) |
| OKLab | oklab(54.4% 0.0062 -0.1627) |
| OKLCH | oklch(54.4% 0.163 272.2) |
| XYZ | xyz(18.9663, 15.2699, 59.6937) |
| Luminance | 0.1527 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal Blue
#4169E1
ΔE00 3.68
Cornflower Blue
#5170D7
ΔE00 4.47
Dark Periwinkle
#665FD1
ΔE00 4.51
Warm Blue
#4B57DB
ΔE00 4.55
Azul
#1D5DEC
ΔE00 5.20
Iris
#6258C4
ΔE00 5.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5164CD #CDBA51
analogous
#51A2CD #5164CD #7C51CD
triadic
#5164CD #CD5164 #64CD51
tetradic
#5164CD #CD51A2 #CDBA51 #51CD7C
square
#5164CD #CD51A2 #CDBA51 #51CD7C
split-complementary
#5164CD #CD7C51 #A2CD51
monochromatic
#25327F #3245AF #5164CD #818EDB #B0B9E8
Accessibility & contrast
On white
5.18
#5164CD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.05
#5164CD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5164CD
5.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5164CD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5164CD | 1.00 | 5.18 | 4.05 | 5.18 |
| #FFFFFF | 5.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2873D1
Deuteranopia (green-blind)
#0268CB
Tritanopia (blue-blind)
#007C8F
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #5164cd; /* rgb */ color: rgb(81, 100, 205); /* oklch */ color: oklch(54.4% 0.163 272.2);
Tailwind
colors: {
custom: {
50: '#8d8fdd',
500: '#5164cd',
950: '#000000',
},
}SCSS
$custom: #5164cd; $custom-light: #8d8fdd; $custom-dark: #000000;
JSON
{
"hex": "#5164cd",
"rgb": {
"r": 81,
"g": 100,
"b": 205
},
"hsl": {
"h": 230.806,
"s": 55.357,
"l": 56.078
},
"oklch": {
"l": 0.54396,
"c": 0.16278,
"h": 272.2
},
"luminance": 0.15271
}Semantic roles & 50–950 ramp
primary
#5164CD
secondary
#D7CFA3
accent
#C849DF
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83