#5151BE#5151BE
#5151BE is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.7% C 0.167 H 278.4°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).
Color values
| HEX | #5151BE |
|---|---|
| RGB | rgb(81, 81, 190) |
| HSL | hsl(240, 46%, 53%) |
| HSV | hsv(240, 57%, 75%) |
| CMYK | cmyk(57.4%, 57.4%, 0%, 25.5%) |
| CIE-LAB | lab(40.17, 31.82, -57.54) |
| CIE-LCH | lch(40.17, 65.75, 298.95°) |
| OKLab | oklab(49.7% 0.0245 -0.165) |
| OKLCH | oklch(49.7% 0.167 278.4) |
| XYZ | xyz(15.6271, 11.3508, 50.0727) |
| Luminance | 0.1135 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 3.44
Warm Blue
#4B57DB
ΔE00 4.43
Ocean Blue
#4F42B5
ΔE00 4.59
Slate Blue
#6A5ACD
ΔE00 5.24
Light Indigo
#6D5ACF
ΔE00 5.79
Bluey Purple
#6241C7
ΔE00 5.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5151BE #BEBE51
analogous
#5187BE #5151BE #8751BE
triadic
#5151BE #BE5151 #51BE51
tetradic
#5151BE #BE5187 #BEBE51 #51BE87
square
#5151BE #BE5187 #BEBE51 #51BE87
split-complementary
#5151BE #BE8751 #87BE51
monochromatic
#28286C #393999 #5151BE #7E7ECF #AAAADF
Accessibility & contrast
On white
6.42
#5151BE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.27
#5151BE on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5151BE
6.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5151BE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5151BE | 1.00 | 6.42 | 3.27 | 6.42 |
| #FFFFFF | 6.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063C2
Deuteranopia (green-blind)
#005ABC
Tritanopia (blue-blind)
#0F6B7F
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #5151be; /* rgb */ color: rgb(81, 81, 190); /* oklch */ color: oklch(49.7% 0.167 278.4);
Tailwind
colors: {
custom: {
50: '#8c82d2',
500: '#5151be',
950: '#000000',
},
}SCSS
$custom: #5151be; $custom-light: #8c82d2; $custom-dark: #000000;
JSON
{
"hex": "#5151be",
"rgb": {
"r": 81,
"g": 81,
"b": 190
},
"hsl": {
"h": 240,
"s": 45.607,
"l": 53.137
},
"oklch": {
"l": 0.49699,
"c": 0.16686,
"h": 278.4
},
"luminance": 0.11352
}Semantic roles & 50–950 ramp
primary
#5151BE
secondary
#CDCD9E
accent
#D553D5
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A14
muted
#7E7C83