#5152C8#5152C8
#5152C8 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.7% C 0.179 H 277.5°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).
Color values
| HEX | #5152C8 |
|---|---|
| RGB | rgb(81, 82, 200) |
| HSL | hsl(239, 52%, 55%) |
| HSV | hsv(239, 60%, 78%) |
| CMYK | cmyk(59.5%, 59%, 0%, 21.6%) |
| CIE-LAB | lab(41.14, 34.49, -61.77) |
| CIE-LCH | lch(41.14, 70.75, 299.18°) |
| OKLab | oklab(50.65% 0.0235 -0.1775) |
| OKLCH | oklch(50.65% 0.179 277.5) |
| XYZ | xyz(16.8326, 11.9528, 56.0525) |
| Luminance | 0.1195 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 3.08
Iris
#6258C4
ΔE00 3.20
Slate Blue
#6A5ACD
ΔE00 4.65
Dark Periwinkle
#665FD1
ΔE00 5.09
Light Indigo
#6D5ACF
ΔE00 5.17
Ocean Blue
#4F42B5
ΔE00 5.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5152C8 #C8C751
analogous
#518DC8 #5152C8 #8C51C8
triadic
#5152C8 #C85152 #52C851
tetradic
#5152C8 #C8518D #C8C751 #51C88C
square
#5152C8 #C8518D #C8C751 #51C88C
split-complementary
#5152C8 #C88C51 #8DC851
monochromatic
#262779 #3536A7 #5152C8 #8080D7 #AEAEE5
Accessibility & contrast
On white
6.19
#5152C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.39
#5152C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5152C8
6.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5152C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5152C8 | 1.00 | 6.19 | 3.39 | 6.19 |
| #FFFFFF | 6.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066CC
Deuteranopia (green-blind)
#005CC6
Tritanopia (blue-blind)
#006E85
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #5152c8; /* rgb */ color: rgb(81, 82, 200); /* oklch */ color: oklch(50.7% 0.179 277.5);
Tailwind
colors: {
custom: {
50: '#8d83da',
500: '#5152c8',
950: '#000000',
},
}SCSS
$custom: #5152c8; $custom-light: #8d83da; $custom-dark: #000000;
JSON
{
"hex": "#5152c8",
"rgb": {
"r": 81,
"g": 82,
"b": 200
},
"hsl": {
"h": 239.496,
"s": 51.965,
"l": 55.098
},
"oklch": {
"l": 0.50653,
"c": 0.17903,
"h": 277.5
},
"luminance": 0.11954
}Semantic roles & 50–950 ramp
primary
#5152C8
secondary
#D3D3A1
accent
#DA4CDB
background
#F9F8FD
surface
#F1EFFB
border
#CBCAD4
text
#0D0A15
muted
#7E7C83