#5149B2#5149B2
#5149B2 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 47.3% C 0.161 H 281.7°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).
Color values
| HEX | #5149B2 |
|---|---|
| RGB | rgb(81, 73, 178) |
| HSL | hsl(245, 42%, 49%) |
| HSV | hsv(245, 59%, 70%) |
| CMYK | cmyk(54.5%, 59%, 0%, 30.2%) |
| CIE-LAB | lab(37.35, 32.90, -55.05) |
| CIE-LCH | lch(37.35, 64.13, 300.86°) |
| OKLab | oklab(47.34% 0.0328 -0.1578) |
| OKLCH | oklch(47.34% 0.161 281.7) |
| XYZ | xyz(13.8093, 9.7279, 43.2609) |
| Luminance | 0.0973 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Ocean Blue
#4F42B5
ΔE00 2.10
Blue With A Hint Of Purple
#533CC6
ΔE00 4.62
Bluey Purple
#6241C7
ΔE00 4.84
Blueberry
#464196
ΔE00 4.90
Iris
#6258C4
ΔE00 5.54
Blurple
#5539CC
ΔE00 5.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5149B2 #AAB249
analogous
#4976B2 #5149B2 #8649B2
triadic
#5149B2 #B25149 #49B251
tetradic
#5149B2 #B24976 #AAB249 #49B286
square
#5149B2 #B24976 #AAB249 #49B286
split-complementary
#5149B2 #B28649 #76B249
monochromatic
#2A255B #3D3787 #5149B2 #7973C5 #A29ED7
Accessibility & contrast
On white
7.13
#5149B2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.95
#5149B2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5149B2
7.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5149B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5149B2 | 1.00 | 7.13 | 2.95 | 7.13 |
| #FFFFFF | 7.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CB5
Deuteranopia (green-blind)
#0054B0
Tritanopia (blue-blind)
#256276
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #5149b2; /* rgb */ color: rgb(81, 73, 178); /* oklch */ color: oklch(47.3% 0.161 281.7);
Tailwind
colors: {
custom: {
50: '#8a7cca',
500: '#5149b2',
950: '#000000',
},
}SCSS
$custom: #5149b2; $custom-light: #8a7cca; $custom-dark: #000000;
JSON
{
"hex": "#5149b2",
"rgb": {
"r": 81,
"g": 73,
"b": 178
},
"hsl": {
"h": 244.571,
"s": 41.833,
"l": 49.216
},
"oklch": {
"l": 0.4734,
"c": 0.16115,
"h": 281.7
},
"luminance": 0.09729
}Semantic roles & 50–950 ramp
primary
#5149B2
secondary
#C0C493
accent
#D256C8
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0D0913
muted
#7D7B82