#5151B5#5151B5
#5151B5 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 49.0% C 0.154 H 279.1°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).
Color values
| HEX | #5151B5 |
|---|---|
| RGB | rgb(81, 81, 181) |
| HSL | hsl(240, 40%, 51%) |
| HSV | hsv(240, 55%, 71%) |
| CMYK | cmyk(55.2%, 55.2%, 0%, 29%) |
| CIE-LAB | lab(39.53, 28.88, -53.29) |
| CIE-LCH | lch(39.53, 60.61, 298.45°) |
| OKLab | oklab(49.02% 0.0243 -0.1526) |
| OKLCH | oklch(49.02% 0.154 279.1) |
| XYZ | xyz(14.6736, 10.9694, 45.0512) |
| Luminance | 0.1097 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 3.99
Ocean Blue
#4F42B5
ΔE00 4.53
Warm Blue
#4B57DB
ΔE00 5.62
Slate Blue
#6A5ACD
ΔE00 5.94
Bluey Purple
#6241C7
ΔE00 6.37
Blueberry
#464196
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5151B5 #B5B551
analogous
#5183B5 #5151B5 #8351B5
triadic
#5151B5 #B55151 #51B551
tetradic
#5151B5 #B55183 #B5B551 #51B583
square
#5151B5 #B55183 #B5B551 #51B583
split-complementary
#5151B5 #B58351 #83B551
monochromatic
#2A2A62 #3C3C8D #5151B5 #7C7CC7 #A7A7DA
Accessibility & contrast
On white
6.57
#5151B5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.19
#5151B5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5151B5
6.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5151B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5151B5 | 1.00 | 6.57 | 3.19 | 6.57 |
| #FFFFFF | 6.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0E61B8
Deuteranopia (green-blind)
#0059B3
Tritanopia (blue-blind)
#20687B
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #5151b5; /* rgb */ color: rgb(81, 81, 181); /* oklch */ color: oklch(49.0% 0.154 279.1);
Tailwind
colors: {
custom: {
50: '#8a82cc',
500: '#5151b5',
950: '#000000',
},
}SCSS
$custom: #5151b5; $custom-light: #8a82cc; $custom-dark: #000000;
JSON
{
"hex": "#5151b5",
"rgb": {
"r": 81,
"g": 81,
"b": 181
},
"hsl": {
"h": 240,
"s": 40.323,
"l": 51.373
},
"oklch": {
"l": 0.49024,
"c": 0.15449,
"h": 279.1
},
"luminance": 0.1097
}Semantic roles & 50–950 ramp
primary
#5151B5
secondary
#C7C79B
accent
#D058D0
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A13
muted
#7D7C82