#5151C2#5151C2
#5151C2 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 50.0% C 0.172 H 278.2°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).
Color values
| HEX | #5151C2 |
|---|---|
| RGB | rgb(81, 81, 194) |
| HSL | hsl(240, 48%, 54%) |
| HSV | hsv(240, 58%, 76%) |
| CMYK | cmyk(58.2%, 58.2%, 0%, 23.9%) |
| CIE-LAB | lab(40.46, 33.14, -59.40) |
| CIE-LCH | lch(40.46, 68.02, 299.15°) |
| OKLab | oklab(50.01% 0.0245 -0.1705) |
| OKLCH | oklch(50.01% 0.172 278.2) |
| XYZ | xyz(16.0703, 11.5281, 52.4068) |
| Luminance | 0.1153 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 3.33
Warm Blue
#4B57DB
ΔE00 3.94
Ocean Blue
#4F42B5
ΔE00 4.74
Slate Blue
#6A5ACD
ΔE00 5.01
Light Indigo
#6D5ACF
ΔE00 5.55
Dark Periwinkle
#665FD1
ΔE00 5.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5151C2 #C2C251
analogous
#518AC2 #5151C2 #8A51C2
triadic
#5151C2 #C25151 #51C251
tetradic
#5151C2 #C2518A #C2C251 #51C28A
square
#5151C2 #C2518A #C2C251 #51C28A
split-complementary
#5151C2 #C28A51 #8AC251
monochromatic
#282871 #37379E #5151C2 #7E7ED2 #ACACE2
Accessibility & contrast
On white
6.35
#5151C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.31
#5151C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5151C2
6.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5151C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5151C2 | 1.00 | 6.35 | 3.31 | 6.35 |
| #FFFFFF | 6.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0064C6
Deuteranopia (green-blind)
#005BC0
Tritanopia (blue-blind)
#026C81
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #5151c2; /* rgb */ color: rgb(81, 81, 194); /* oklch */ color: oklch(50.0% 0.172 278.2);
Tailwind
colors: {
custom: {
50: '#8c82d5',
500: '#5151c2',
950: '#000000',
},
}SCSS
$custom: #5151c2; $custom-light: #8c82d5; $custom-dark: #000000;
JSON
{
"hex": "#5151c2",
"rgb": {
"r": 81,
"g": 81,
"b": 194
},
"hsl": {
"h": 240,
"s": 48.085,
"l": 53.922
},
"oklch": {
"l": 0.50007,
"c": 0.17227,
"h": 278.2
},
"luminance": 0.11529
}Semantic roles & 50–950 ramp
primary
#5151C2
secondary
#D0D09F
accent
#D850D8
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A14
muted
#7E7C83