#5151B3#5151B3
#5151B3 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.9% C 0.152 H 279.2°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).
Color values
| HEX | #5151B3 |
|---|---|
| RGB | rgb(81, 81, 179) |
| HSL | hsl(240, 39%, 51%) |
| HSV | hsv(240, 55%, 70%) |
| CMYK | cmyk(54.7%, 54.7%, 0%, 29.8%) |
| CIE-LAB | lab(39.39, 28.23, -52.34) |
| CIE-LCH | lch(39.39, 59.46, 298.34°) |
| OKLab | oklab(48.88% 0.0243 -0.1497) |
| OKLCH | oklch(48.88% 0.152 279.2) |
| XYZ | xyz(14.4699, 10.8879, 43.9782) |
| Luminance | 0.1089 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 4.16
Ocean Blue
#4F42B5
ΔE00 4.58
Warm Blue
#4B57DB
ΔE00 5.90
Slate Blue
#6A5ACD
ΔE00 6.12
Blueberry
#464196
ΔE00 6.27
Bluey Purple
#6241C7
ΔE00 6.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5151B3 #B3B351
analogous
#5182B3 #5151B3 #8251B3
triadic
#5151B3 #B35151 #51B351
tetradic
#5151B3 #B35182 #B3B351 #51B382
square
#5151B3 #B35182 #B3B351 #51B382
split-complementary
#5151B3 #B38251 #82B351
monochromatic
#2A2A60 #3C3C8A #5151B3 #7C7CC6 #A6A6D8
Accessibility & contrast
On white
6.61
#5151B3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.18
#5151B3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5151B3
6.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5151B3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5151B3 | 1.00 | 6.61 | 3.18 | 6.61 |
| #FFFFFF | 6.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1461B6
Deuteranopia (green-blind)
#0059B1
Tritanopia (blue-blind)
#23677A
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #5151b3; /* rgb */ color: rgb(81, 81, 179); /* oklch */ color: oklch(48.9% 0.152 279.2);
Tailwind
colors: {
custom: {
50: '#8a82ca',
500: '#5151b3',
950: '#000000',
},
}SCSS
$custom: #5151b3; $custom-light: #8a82ca; $custom-dark: #000000;
JSON
{
"hex": "#5151b3",
"rgb": {
"r": 81,
"g": 81,
"b": 179
},
"hsl": {
"h": 240,
"s": 39.2,
"l": 50.98
},
"oklch": {
"l": 0.48877,
"c": 0.1517,
"h": 279.2
},
"luminance": 0.10889
}Semantic roles & 50–950 ramp
primary
#5151B3
secondary
#C6C69A
accent
#CF59CF
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82