#5169E1#5169E1
#5169E1 is a mid, vivid blue. Relative luminance 0.173; OKLCH L 56.8% C 0.184 H 270.9°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).
Color values
| HEX | #5169E1 |
|---|---|
| RGB | rgb(81, 105, 225) |
| HSL | hsl(230, 71%, 60%) |
| HSV | hsv(230, 64%, 88%) |
| CMYK | cmyk(64%, 53.3%, 0%, 11.8%) |
| CIE-LAB | lab(48.62, 28.61, -63.95) |
| CIE-LCH | lch(48.62, 70.06, 294.10°) |
| OKLab | oklab(56.79% 0.0029 -0.1837) |
| OKLCH | oklch(56.79% 0.184 270.9) |
| XYZ | xyz(22.0309, 17.2868, 73.3952) |
| Luminance | 0.1729 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal Blue
#4169E1
ΔE00 2.11
Cornflower Blue
#5170D7
ΔE00 2.85
Bright Blue
#0165FC
ΔE00 4.70
Azul
#1D5DEC
ΔE00 5.14
Dark Periwinkle
#665FD1
ΔE00 5.62
Warm Blue
#4B57DB
ΔE00 5.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5169E1 #E1C951
analogous
#51B1E1 #5169E1 #8151E1
triadic
#5169E1 #E15169 #69E151
tetradic
#5169E1 #E151B1 #E1C951 #51E181
square
#5169E1 #E151B1 #E1C951 #51E181
split-complementary
#5169E1 #E18151 #B1E151
monochromatic
#1B319D #2441D1 #5169E1 #8596EA #B9C3F3
Accessibility & contrast
On white
4.71
#5169E1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.46
#5169E1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5169E1
4.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5169E1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5169E1 | 1.00 | 4.71 | 4.46 | 4.71 |
| #FFFFFF | 4.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#147AE5
Deuteranopia (green-blind)
#006DDF
Tritanopia (blue-blind)
#00859B
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #5169e1; /* rgb */ color: rgb(81, 105, 225); /* oklch */ color: oklch(56.8% 0.184 270.9);
Tailwind
colors: {
custom: {
50: '#9093eb',
500: '#5169e1',
950: '#000000',
},
}SCSS
$custom: #5169e1; $custom-light: #9093eb; $custom-dark: #000000;
JSON
{
"hex": "#5169e1",
"rgb": {
"r": 81,
"g": 105,
"b": 225
},
"hsl": {
"h": 230,
"s": 70.588,
"l": 60
},
"oklch": {
"l": 0.56793,
"c": 0.18368,
"h": 270.9
},
"luminance": 0.17289
}Semantic roles & 50–950 ramp
primary
#5169E1
secondary
#E3D9AB
accent
#D03AED
background
#F9F9FE
surface
#F2F1FD
border
#CCCBD5
text
#0E0D16
muted
#7E7E84