#5151BC#5151BC
#5151BC is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.5% C 0.164 H 278.6°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).
Color values
| HEX | #5151BC |
|---|---|
| RGB | rgb(81, 81, 188) |
| HSL | hsl(240, 44%, 53%) |
| HSV | hsv(240, 57%, 74%) |
| CMYK | cmyk(56.9%, 56.9%, 0%, 26.3%) |
| CIE-LAB | lab(40.02, 31.17, -56.60) |
| CIE-LCH | lch(40.02, 64.62, 298.84°) |
| OKLab | oklab(49.55% 0.0245 -0.1623) |
| OKLCH | oklch(49.55% 0.164 278.6) |
| XYZ | xyz(15.4100, 11.2640, 48.9293) |
| Luminance | 0.1127 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 3.53
Ocean Blue
#4F42B5
ΔE00 4.54
Warm Blue
#4B57DB
ΔE00 4.68
Slate Blue
#6A5ACD
ΔE00 5.38
Bluey Purple
#6241C7
ΔE00 5.90
Light Indigo
#6D5ACF
ΔE00 5.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5151BC #BCBC51
analogous
#5186BC #5151BC #8651BC
triadic
#5151BC #BC5151 #51BC51
tetradic
#5151BC #BC5186 #BCBC51 #51BC86
square
#5151BC #BC5186 #BCBC51 #51BC86
split-complementary
#5151BC #BC8651 #86BC51
monochromatic
#29296A #3A3A96 #5151BC #7D7DCD #A9A9DE
Accessibility & contrast
On white
6.46
#5151BC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.25
#5151BC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5151BC
6.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5151BC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5151BC | 1.00 | 6.46 | 3.25 | 6.46 |
| #FFFFFF | 6.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063C0
Deuteranopia (green-blind)
#005ABA
Tritanopia (blue-blind)
#146A7E
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #5151bc; /* rgb */ color: rgb(81, 81, 188); /* oklch */ color: oklch(49.5% 0.164 278.6);
Tailwind
colors: {
custom: {
50: '#8b82d1',
500: '#5151bc',
950: '#000000',
},
}SCSS
$custom: #5151bc; $custom-light: #8b82d1; $custom-dark: #000000;
JSON
{
"hex": "#5151bc",
"rgb": {
"r": 81,
"g": 81,
"b": 188
},
"hsl": {
"h": 240,
"s": 44.398,
"l": 52.745
},
"oklch": {
"l": 0.49547,
"c": 0.16412,
"h": 278.6
},
"luminance": 0.11265
}Semantic roles & 50–950 ramp
primary
#5151BC
secondary
#CCCC9D
accent
#D454D4
background
#F9F7FC
surface
#F1EEF9
border
#CBC9D2
text
#0D0A14
muted
#7E7C82