#5152CF#5152CF
#5152CF is a mid, vivid blue. Relative luminance 0.123; OKLCH L 51.2% C 0.188 H 277.1°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).
Color values
| HEX | #5152CF |
|---|---|
| RGB | rgb(81, 82, 207) |
| HSL | hsl(240, 57%, 56%) |
| HSV | hsv(240, 61%, 81%) |
| CMYK | cmyk(60.9%, 60.4%, 0%, 18.8%) |
| CIE-LAB | lab(41.67, 36.79, -64.96) |
| CIE-LCH | lch(41.67, 74.65, 299.53°) |
| OKLab | oklab(51.21% 0.0233 -0.1868) |
| OKLCH | oklch(51.21% 0.188 277.1) |
| XYZ | xyz(17.6695, 12.2875, 60.4600) |
| Luminance | 0.1229 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 2.39
Iris
#6258C4
ΔE00 3.43
Slate Blue
#6A5ACD
ΔE00 4.50
Dark Periwinkle
#665FD1
ΔE00 4.86
Light Indigo
#6D5ACF
ΔE00 4.97
Bluey Purple
#6241C7
ΔE00 5.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5152CF #CFCE51
analogous
#5191CF #5152CF #8F51CF
triadic
#5152CF #CF5152 #52CF51
tetradic
#5152CF #CF5191 #CFCE51 #51CF8F
square
#5152CF #CF5191 #CFCE51 #51CF8F
split-complementary
#5152CF #CF8F51 #91CF51
monochromatic
#242582 #3132B2 #5152CF #8182DC #B1B1E9
Accessibility & contrast
On white
6.07
#5152CF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.46
#5152CF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5152CF
6.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5152CF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5152CF | 1.00 | 6.07 | 3.46 | 6.07 |
| #FFFFFF | 6.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0068D3
Deuteranopia (green-blind)
#005DCD
Tritanopia (blue-blind)
#007189
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #5152cf; /* rgb */ color: rgb(81, 82, 207); /* oklch */ color: oklch(51.2% 0.188 277.1);
Tailwind
colors: {
custom: {
50: '#8e83df',
500: '#5152cf',
950: '#000000',
},
}SCSS
$custom: #5152cf; $custom-light: #8e83df; $custom-dark: #000000;
JSON
{
"hex": "#5152cf",
"rgb": {
"r": 81,
"g": 82,
"b": 207
},
"hsl": {
"h": 239.524,
"s": 56.757,
"l": 56.471
},
"oklch": {
"l": 0.51209,
"c": 0.18829,
"h": 277.1
},
"luminance": 0.12289
}Semantic roles & 50–950 ramp
primary
#5152CF
secondary
#D8D7A4
accent
#DF48E0
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83