#5151BB#5151BB
#5151BB is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.5% C 0.163 H 278.6°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).
Color values
| HEX | #5151BB |
|---|---|
| RGB | rgb(81, 81, 187) |
| HSL | hsl(240, 44%, 53%) |
| HSV | hsv(240, 57%, 73%) |
| CMYK | cmyk(56.7%, 56.7%, 0%, 26.7%) |
| CIE-LAB | lab(39.95, 30.84, -56.13) |
| CIE-LCH | lch(39.95, 64.05, 298.79°) |
| OKLab | oklab(49.47% 0.0245 -0.1609) |
| OKLCH | oklch(49.47% 0.163 278.6) |
| XYZ | xyz(15.3026, 11.2210, 48.3636) |
| Luminance | 0.1122 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 3.58
Ocean Blue
#4F42B5
ΔE00 4.52
Warm Blue
#4B57DB
ΔE00 4.81
Slate Blue
#6A5ACD
ΔE00 5.45
Bluey Purple
#6241C7
ΔE00 5.96
Light Indigo
#6D5ACF
ΔE00 6.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5151BB #BBBB51
analogous
#5186BB #5151BB #8651BB
triadic
#5151BB #BB5151 #51BB51
tetradic
#5151BB #BB5186 #BBBB51 #51BB86
square
#5151BB #BB5186 #BBBB51 #51BB86
split-complementary
#5151BB #BB8651 #86BB51
monochromatic
#292969 #3A3A95 #5151BB #7D7DCC #A9A9DD
Accessibility & contrast
On white
6.47
#5151BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.24
#5151BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5151BB
6.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5151BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5151BB | 1.00 | 6.47 | 3.24 | 6.47 |
| #FFFFFF | 6.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062BF
Deuteranopia (green-blind)
#005AB9
Tritanopia (blue-blind)
#166A7E
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #5151bb; /* rgb */ color: rgb(81, 81, 187); /* oklch */ color: oklch(49.5% 0.163 278.6);
Tailwind
colors: {
custom: {
50: '#8b82d0',
500: '#5151bb',
950: '#000000',
},
}SCSS
$custom: #5151bb; $custom-light: #8b82d0; $custom-dark: #000000;
JSON
{
"hex": "#5151bb",
"rgb": {
"r": 81,
"g": 81,
"b": 187
},
"hsl": {
"h": 240,
"s": 43.802,
"l": 52.549
},
"oklch": {
"l": 0.49472,
"c": 0.16276,
"h": 278.6
},
"luminance": 0.11222
}Semantic roles & 50–950 ramp
primary
#5151BB
secondary
#CBCB9D
accent
#D454D4
background
#F9F7FC
surface
#F1EEF9
border
#CBC9D2
text
#0D0A14
muted
#7E7C82