#5152BC#5152BC
#5152BC is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.7% C 0.163 H 278.3°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).
Color values
| HEX | #5152BC |
|---|---|
| RGB | rgb(81, 82, 188) |
| HSL | hsl(239, 44%, 53%) |
| HSV | hsv(239, 57%, 74%) |
| CMYK | cmyk(56.9%, 56.4%, 0%, 26.3%) |
| CIE-LAB | lab(40.27, 30.54, -56.20) |
| CIE-LCH | lch(40.27, 63.97, 298.52°) |
| OKLab | oklab(49.73% 0.0235 -0.1611) |
| OKLCH | oklch(49.73% 0.163 278.3) |
| XYZ | xyz(15.4849, 11.4137, 48.9543) |
| Luminance | 0.1142 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 3.42
Warm Blue
#4B57DB
ΔE00 4.56
Ocean Blue
#4F42B5
ΔE00 4.85
Slate Blue
#6A5ACD
ΔE00 5.29
Dark Periwinkle
#665FD1
ΔE00 5.81
Light Indigo
#6D5ACF
ΔE00 5.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5152BC #BCBB51
analogous
#5188BC #5152BC #8551BC
triadic
#5152BC #BC5152 #52BC51
tetradic
#5152BC #BC5188 #BCBB51 #51BC85
square
#5152BC #BC5188 #BCBB51 #51BC85
split-complementary
#5152BC #BC8551 #88BC51
monochromatic
#29296A #3A3B96 #5152BC #7D7ECD #A9AADE
Accessibility & contrast
On white
6.40
#5152BC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.28
#5152BC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5152BC
6.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5152BC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5152BC | 1.00 | 6.40 | 3.28 | 6.40 |
| #FFFFFF | 6.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063C0
Deuteranopia (green-blind)
#005BBA
Tritanopia (blue-blind)
#146B7F
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #5152bc; /* rgb */ color: rgb(81, 82, 188); /* oklch */ color: oklch(49.7% 0.163 278.3);
Tailwind
colors: {
custom: {
50: '#8b82d1',
500: '#5152bc',
950: '#000000',
},
}SCSS
$custom: #5152bc; $custom-light: #8b82d1; $custom-dark: #000000;
JSON
{
"hex": "#5152bc",
"rgb": {
"r": 81,
"g": 82,
"b": 188
},
"hsl": {
"h": 239.439,
"s": 44.398,
"l": 52.745
},
"oklch": {
"l": 0.49731,
"c": 0.16281,
"h": 278.3
},
"luminance": 0.11415
}Semantic roles & 50–950 ramp
primary
#5152BC
secondary
#CCCB9D
accent
#D354D4
background
#F9F8FC
surface
#F1EFF9
border
#CBCAD2
text
#0D0A14
muted
#7E7C82