#5151BA#5151BA
#5151BA is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.4% C 0.161 H 278.7°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).
Color values
| HEX | #5151BA |
|---|---|
| RGB | rgb(81, 81, 186) |
| HSL | hsl(240, 43%, 52%) |
| HSV | hsv(240, 56%, 73%) |
| CMYK | cmyk(56.5%, 56.5%, 0%, 27.1%) |
| CIE-LAB | lab(39.88, 30.51, -55.66) |
| CIE-LCH | lch(39.88, 63.48, 298.73°) |
| OKLab | oklab(49.4% 0.0245 -0.1595) |
| OKLCH | oklch(49.4% 0.161 278.7) |
| XYZ | xyz(15.1959, 11.1783, 47.8017) |
| Luminance | 0.1118 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 3.64
Ocean Blue
#4F42B5
ΔE00 4.51
Warm Blue
#4B57DB
ΔE00 4.95
Slate Blue
#6A5ACD
ΔE00 5.52
Bluey Purple
#6241C7
ΔE00 6.02
Light Indigo
#6D5ACF
ΔE00 6.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5151BA #BABA51
analogous
#5186BA #5151BA #8651BA
triadic
#5151BA #BA5151 #51BA51
tetradic
#5151BA #BA5186 #BABA51 #51BA86
square
#5151BA #BA5186 #BABA51 #51BA86
split-complementary
#5151BA #BA8651 #86BA51
monochromatic
#292968 #3A3A93 #5151BA #7D7DCB #A9A9DD
Accessibility & contrast
On white
6.49
#5151BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.24
#5151BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5151BA
6.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5151BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5151BA | 1.00 | 6.49 | 3.24 | 6.49 |
| #FFFFFF | 6.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062BE
Deuteranopia (green-blind)
#005AB8
Tritanopia (blue-blind)
#18697D
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #5151ba; /* rgb */ color: rgb(81, 81, 186); /* oklch */ color: oklch(49.4% 0.161 278.7);
Tailwind
colors: {
custom: {
50: '#8b82cf',
500: '#5151ba',
950: '#000000',
},
}SCSS
$custom: #5151ba; $custom-light: #8b82cf; $custom-dark: #000000;
JSON
{
"hex": "#5151ba",
"rgb": {
"r": 81,
"g": 81,
"b": 186
},
"hsl": {
"h": 240,
"s": 43.21,
"l": 52.353
},
"oklch": {
"l": 0.49396,
"c": 0.16139,
"h": 278.7
},
"luminance": 0.11179
}Semantic roles & 50–950 ramp
primary
#5151BA
secondary
#CACA9D
accent
#D355D3
background
#F9F7FC
surface
#F1EEF9
border
#CBC9D2
text
#0D0A14
muted
#7E7C82