#5159E3#5159E3
#5159E3 is a mid, highly saturated blue. Relative luminance 0.144; OKLCH L 54.0% C 0.206 H 274.6°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).
Color values
| HEX | #5159E3 |
|---|---|
| RGB | rgb(81, 89, 227) |
| HSL | hsl(237, 72%, 60%) |
| HSV | hsv(237, 64%, 89%) |
| CMYK | cmyk(64.3%, 60.8%, 0%, 11%) |
| CIE-LAB | lab(44.86, 39.13, -71.19) |
| CIE-LCH | lch(44.86, 81.24, 298.79°) |
| OKLab | oklab(54.04% 0.0166 -0.2051) |
| OKLCH | oklch(54.04% 0.206 274.6) |
| XYZ | xyz(20.8263, 14.4383, 74.3475) |
| Luminance | 0.1444 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 1.54
Dark Periwinkle
#665FD1
ΔE00 4.00
Electric Blue
#0652FF
ΔE00 4.64
Slate Blue
#6A5ACD
ΔE00 4.75
Azul
#1D5DEC
ΔE00 4.79
Iris
#6258C4
ΔE00 4.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5159E3 #E3DB51
analogous
#51A2E3 #5159E3 #9251E3
triadic
#5159E3 #E35159 #59E351
tetradic
#5159E3 #E351A2 #E3DB51 #51E392
square
#5159E3 #E351A2 #E3DB51 #51E392
split-complementary
#5159E3 #E39251 #A2E351
monochromatic
#1A21A0 #222CD5 #5159E3 #868BEB #BABEF4
Accessibility & contrast
On white
5.40
#5159E3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.89
#5159E3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5159E3
5.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5159E3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5159E3 | 1.00 | 5.40 | 3.89 | 5.40 |
| #FFFFFF | 5.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0071E7
Deuteranopia (green-blind)
#0064E0
Tritanopia (blue-blind)
#007C96
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #5159e3; /* rgb */ color: rgb(81, 89, 227); /* oklch */ color: oklch(54.0% 0.206 274.6);
Tailwind
colors: {
custom: {
50: '#9188ed',
500: '#5159e3',
950: '#000000',
},
}SCSS
$custom: #5159e3; $custom-light: #9188ed; $custom-dark: #000000;
JSON
{
"hex": "#5159e3",
"rgb": {
"r": 81,
"g": 89,
"b": 227
},
"hsl": {
"h": 236.712,
"s": 72.277,
"l": 60.392
},
"oklch": {
"l": 0.54037,
"c": 0.2058,
"h": 274.6
},
"luminance": 0.1444
}Semantic roles & 50–950 ramp
primary
#5159E3
secondary
#E4E1AC
accent
#CA11D4
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84