#5151C0#5151C0
#5151C0 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.9% C 0.170 H 278.3°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).
Color values
| HEX | #5151C0 |
|---|---|
| RGB | rgb(81, 81, 192) |
| HSL | hsl(240, 47%, 54%) |
| HSV | hsv(240, 58%, 75%) |
| CMYK | cmyk(57.8%, 57.8%, 0%, 24.7%) |
| CIE-LAB | lab(40.31, 32.48, -58.47) |
| CIE-LCH | lch(40.31, 66.89, 299.05°) |
| OKLab | oklab(49.85% 0.0245 -0.1678) |
| OKLCH | oklch(49.85% 0.17 278.3) |
| XYZ | xyz(15.8472, 11.4388, 51.2318) |
| Luminance | 0.1144 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 3.38
Warm Blue
#4B57DB
ΔE00 4.18
Ocean Blue
#4F42B5
ΔE00 4.65
Slate Blue
#6A5ACD
ΔE00 5.12
Light Indigo
#6D5ACF
ΔE00 5.66
Bluey Purple
#6241C7
ΔE00 5.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5151C0 #C0C051
analogous
#5188C0 #5151C0 #8851C0
triadic
#5151C0 #C05151 #51C051
tetradic
#5151C0 #C05188 #C0C051 #51C088
square
#5151C0 #C05188 #C0C051 #51C088
split-complementary
#5151C0 #C08851 #88C051
monochromatic
#28286F #38389B #5151C0 #7E7ED0 #ABABE1
Accessibility & contrast
On white
6.39
#5151C0 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.29
#5151C0 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5151C0
6.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5151C0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5151C0 | 1.00 | 6.39 | 3.29 | 6.39 |
| #FFFFFF | 6.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0064C4
Deuteranopia (green-blind)
#005ABE
Tritanopia (blue-blind)
#096B80
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #5151c0; /* rgb */ color: rgb(81, 81, 192); /* oklch */ color: oklch(49.9% 0.170 278.3);
Tailwind
colors: {
custom: {
50: '#8c82d4',
500: '#5151c0',
950: '#000000',
},
}SCSS
$custom: #5151c0; $custom-light: #8c82d4; $custom-dark: #000000;
JSON
{
"hex": "#5151c0",
"rgb": {
"r": 81,
"g": 81,
"b": 192
},
"hsl": {
"h": 240,
"s": 46.835,
"l": 53.529
},
"oklch": {
"l": 0.49852,
"c": 0.16957,
"h": 278.3
},
"luminance": 0.1144
}Semantic roles & 50–950 ramp
primary
#5151C0
secondary
#CECE9F
accent
#D651D6
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A14
muted
#7E7C83