#5151C8#5151C8
#5151C8 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.5% C 0.180 H 277.8°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).
Color values
| HEX | #5151C8 |
|---|---|
| RGB | rgb(81, 81, 200) |
| HSL | hsl(240, 52%, 55%) |
| HSV | hsv(240, 60%, 78%) |
| CMYK | cmyk(59.5%, 59.5%, 0%, 21.6%) |
| CIE-LAB | lab(40.90, 35.10, -62.16) |
| CIE-LCH | lch(40.90, 71.39, 299.45°) |
| OKLab | oklab(50.48% 0.0244 -0.1786) |
| OKLCH | oklch(50.48% 0.18 277.8) |
| XYZ | xyz(16.7578, 11.8031, 56.0275) |
| Luminance | 0.1180 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 3.27
Iris
#6258C4
ΔE00 3.33
Slate Blue
#6A5ACD
ΔE00 4.76
Ocean Blue
#4F42B5
ΔE00 5.10
Light Indigo
#6D5ACF
ΔE00 5.26
Dark Periwinkle
#665FD1
ΔE00 5.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5151C8 #C8C851
analogous
#518CC8 #5151C8 #8C51C8
triadic
#5151C8 #C85151 #51C851
tetradic
#5151C8 #C8518C #C8C851 #51C88C
square
#5151C8 #C8518C #C8C851 #51C88C
split-complementary
#5151C8 #C88C51 #8CC851
monochromatic
#262679 #3535A7 #5151C8 #8080D7 #AEAEE5
Accessibility & contrast
On white
6.25
#5151C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.36
#5151C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5151C8
6.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5151C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5151C8 | 1.00 | 6.25 | 3.36 | 6.25 |
| #FFFFFF | 6.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0065CC
Deuteranopia (green-blind)
#005BC6
Tritanopia (blue-blind)
#006E85
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #5151c8; /* rgb */ color: rgb(81, 81, 200); /* oklch */ color: oklch(50.5% 0.180 277.8);
Tailwind
colors: {
custom: {
50: '#8d82da',
500: '#5151c8',
950: '#000000',
},
}SCSS
$custom: #5151c8; $custom-light: #8d82da; $custom-dark: #000000;
JSON
{
"hex": "#5151c8",
"rgb": {
"r": 81,
"g": 81,
"b": 200
},
"hsl": {
"h": 240,
"s": 51.965,
"l": 55.098
},
"oklch": {
"l": 0.50476,
"c": 0.1803,
"h": 277.8
},
"luminance": 0.11804
}Semantic roles & 50–950 ramp
primary
#5151C8
secondary
#D3D3A1
accent
#DB4CDB
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83