#5152BF#5152BF
#5152BF is a mid, vivid blue. Relative luminance 0.115; OKLCH L 50.0% C 0.167 H 278.1°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).
Color values
| HEX | #5152BF |
|---|---|
| RGB | rgb(81, 82, 191) |
| HSL | hsl(239, 46%, 53%) |
| HSV | hsv(239, 58%, 75%) |
| CMYK | cmyk(57.6%, 57.1%, 0%, 25.1%) |
| CIE-LAB | lab(40.48, 31.53, -57.61) |
| CIE-LCH | lch(40.48, 65.67, 298.69°) |
| OKLab | oklab(49.96% 0.0235 -0.1652) |
| OKLCH | oklch(49.96% 0.167 278.1) |
| XYZ | xyz(15.8116, 11.5444, 50.6752) |
| Luminance | 0.1155 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 3.29
Warm Blue
#4B57DB
ΔE00 4.17
Ocean Blue
#4F42B5
ΔE00 4.92
Slate Blue
#6A5ACD
ΔE00 5.08
Dark Periwinkle
#665FD1
ΔE00 5.59
Light Indigo
#6D5ACF
ΔE00 5.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5152BF #BFBE51
analogous
#5189BF #5152BF #8751BF
triadic
#5152BF #BF5152 #52BF51
tetradic
#5152BF #BF5189 #BFBE51 #51BF87
square
#5152BF #BF5189 #BFBE51 #51BF87
split-complementary
#5152BF #BF8751 #89BF51
monochromatic
#28296D #393A9A #5152BF #7E7ECF #AAABE0
Accessibility & contrast
On white
6.35
#5152BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.31
#5152BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5152BF
6.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5152BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5152BF | 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)
#0064C3
Deuteranopia (green-blind)
#005BBD
Tritanopia (blue-blind)
#0C6C80
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #5152bf; /* rgb */ color: rgb(81, 82, 191); /* oklch */ color: oklch(50.0% 0.167 278.1);
Tailwind
colors: {
custom: {
50: '#8c82d3',
500: '#5152bf',
950: '#000000',
},
}SCSS
$custom: #5152bf; $custom-light: #8c82d3; $custom-dark: #000000;
JSON
{
"hex": "#5152bf",
"rgb": {
"r": 81,
"g": 82,
"b": 191
},
"hsl": {
"h": 239.455,
"s": 46.218,
"l": 53.333
},
"oklch": {
"l": 0.49958,
"c": 0.16691,
"h": 278.1
},
"luminance": 0.11546
}Semantic roles & 50–950 ramp
primary
#5152BF
secondary
#CECD9E
accent
#D552D6
background
#F9F8FD
surface
#F1EFFA
border
#CBCAD3
text
#0D0A14
muted
#7E7C83