#5151B4#5151B4
#5151B4 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 49.0% C 0.153 H 279.1°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).
Color values
| HEX | #5151B4 |
|---|---|
| RGB | rgb(81, 81, 180) |
| HSL | hsl(240, 40%, 51%) |
| HSV | hsv(240, 55%, 71%) |
| CMYK | cmyk(55%, 55%, 0%, 29.4%) |
| CIE-LAB | lab(39.46, 28.55, -52.82) |
| CIE-LCH | lch(39.46, 60.04, 298.40°) |
| OKLab | oklab(48.95% 0.0243 -0.1511) |
| OKLCH | oklch(48.95% 0.153 279.1) |
| XYZ | xyz(14.5714, 10.9285, 44.5128) |
| Luminance | 0.1093 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 4.07
Ocean Blue
#4F42B5
ΔE00 4.55
Warm Blue
#4B57DB
ΔE00 5.76
Slate Blue
#6A5ACD
ΔE00 6.03
Blueberry
#464196
ΔE00 6.37
Bluey Purple
#6241C7
ΔE00 6.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5151B4 #B4B451
analogous
#5182B4 #5151B4 #8251B4
triadic
#5151B4 #B45151 #51B451
tetradic
#5151B4 #B45182 #B4B451 #51B482
square
#5151B4 #B45182 #B4B451 #51B482
split-complementary
#5151B4 #B48251 #82B451
monochromatic
#2A2A61 #3C3C8C #5151B4 #7C7CC6 #A7A7D9
Accessibility & contrast
On white
6.59
#5151B4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.19
#5151B4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5151B4
6.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5151B4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5151B4 | 1.00 | 6.59 | 3.19 | 6.59 |
| #FFFFFF | 6.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1161B7
Deuteranopia (green-blind)
#0059B2
Tritanopia (blue-blind)
#21687A
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #5151b4; /* rgb */ color: rgb(81, 81, 180); /* oklch */ color: oklch(49.0% 0.153 279.1);
Tailwind
colors: {
custom: {
50: '#8a82cb',
500: '#5151b4',
950: '#000000',
},
}SCSS
$custom: #5151b4; $custom-light: #8a82cb; $custom-dark: #000000;
JSON
{
"hex": "#5151b4",
"rgb": {
"r": 81,
"g": 81,
"b": 180
},
"hsl": {
"h": 240,
"s": 39.759,
"l": 51.176
},
"oklch": {
"l": 0.48951,
"c": 0.15309,
"h": 279.1
},
"luminance": 0.10929
}Semantic roles & 50–950 ramp
primary
#5151B4
secondary
#C6C69B
accent
#D058D0
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A13
muted
#7D7C82