#5151CF#5151CF
#5151CF is a mid, vivid blue. Relative luminance 0.121; OKLCH L 51.0% C 0.190 H 277.3°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).
Color values
| HEX | #5151CF |
|---|---|
| RGB | rgb(81, 81, 207) |
| HSL | hsl(240, 57%, 56%) |
| HSV | hsv(240, 61%, 81%) |
| CMYK | cmyk(60.9%, 60.9%, 0%, 18.8%) |
| CIE-LAB | lab(41.43, 37.40, -65.34) |
| CIE-LCH | lch(41.43, 75.28, 299.79°) |
| OKLab | oklab(51.04% 0.0241 -0.188) |
| OKLCH | oklch(51.04% 0.19 277.3) |
| XYZ | xyz(17.5946, 12.1378, 60.4350) |
| Luminance | 0.1214 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 2.61
Iris
#6258C4
ΔE00 3.55
Slate Blue
#6A5ACD
ΔE00 4.62
Light Indigo
#6D5ACF
ΔE00 5.07
Dark Periwinkle
#665FD1
ΔE00 5.07
Bluey Purple
#6241C7
ΔE00 5.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5151CF #CFCF51
analogous
#5190CF #5151CF #9051CF
triadic
#5151CF #CF5151 #51CF51
tetradic
#5151CF #CF5190 #CFCF51 #51CF90
square
#5151CF #CF5190 #CFCF51 #51CF90
split-complementary
#5151CF #CF9051 #90CF51
monochromatic
#242482 #3131B2 #5151CF #8181DC #B1B1E9
Accessibility & contrast
On white
6.13
#5151CF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.43
#5151CF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5151CF
6.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5151CF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5151CF | 1.00 | 6.13 | 3.43 | 6.13 |
| #FFFFFF | 6.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0067D3
Deuteranopia (green-blind)
#005CCC
Tritanopia (blue-blind)
#007088
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #5151cf; /* rgb */ color: rgb(81, 81, 207); /* oklch */ color: oklch(51.0% 0.190 277.3);
Tailwind
colors: {
custom: {
50: '#8e82df',
500: '#5151cf',
950: '#000000',
},
}SCSS
$custom: #5151cf; $custom-light: #8e82df; $custom-dark: #000000;
JSON
{
"hex": "#5151cf",
"rgb": {
"r": 81,
"g": 81,
"b": 207
},
"hsl": {
"h": 240,
"s": 56.757,
"l": 56.471
},
"oklch": {
"l": 0.51036,
"c": 0.18952,
"h": 277.3
},
"luminance": 0.12139
}Semantic roles & 50–950 ramp
primary
#5151CF
secondary
#D8D8A4
accent
#E048E0
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83