#5152CB#5152CB
#5152CB is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.9% C 0.183 H 277.3°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).
Color values
| HEX | #5152CB |
|---|---|
| RGB | rgb(81, 82, 203) |
| HSL | hsl(240, 54%, 56%) |
| HSV | hsv(240, 60%, 80%) |
| CMYK | cmyk(60.1%, 59.6%, 0%, 20.4%) |
| CIE-LAB | lab(41.37, 35.47, -63.14) |
| CIE-LCH | lch(41.37, 72.42, 299.33°) |
| OKLab | oklab(50.89% 0.0234 -0.1815) |
| OKLCH | oklch(50.89% 0.183 277.3) |
| XYZ | xyz(17.1867, 12.0944, 57.9171) |
| Luminance | 0.1210 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 2.77
Iris
#6258C4
ΔE00 3.27
Slate Blue
#6A5ACD
ΔE00 4.56
Dark Periwinkle
#665FD1
ΔE00 4.97
Light Indigo
#6D5ACF
ΔE00 5.06
Ocean Blue
#4F42B5
ΔE00 5.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5152CB #CBCA51
analogous
#518FCB #5152CB #8D51CB
triadic
#5152CB #CB5152 #52CB51
tetradic
#5152CB #CB518F #CBCA51 #51CB8D
square
#5152CB #CB518F #CBCA51 #51CB8D
split-complementary
#5152CB #CB8D51 #8FCB51
monochromatic
#25267C #3334AC #5152CB #8081D9 #AFB0E7
Accessibility & contrast
On white
6.14
#5152CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.42
#5152CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5152CB
6.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5152CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5152CB | 1.00 | 6.14 | 3.42 | 6.14 |
| #FFFFFF | 6.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0067CF
Deuteranopia (green-blind)
#005CC9
Tritanopia (blue-blind)
#006F86
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #5152cb; /* rgb */ color: rgb(81, 82, 203); /* oklch */ color: oklch(50.9% 0.183 277.3);
Tailwind
colors: {
custom: {
50: '#8e83dc',
500: '#5152cb',
950: '#000000',
},
}SCSS
$custom: #5152cb; $custom-light: #8e83dc; $custom-dark: #000000;
JSON
{
"hex": "#5152cb",
"rgb": {
"r": 81,
"g": 82,
"b": 203
},
"hsl": {
"h": 239.508,
"s": 53.982,
"l": 55.686
},
"oklch": {
"l": 0.5089,
"c": 0.18302,
"h": 277.3
},
"luminance": 0.12096
}Semantic roles & 50–950 ramp
primary
#5152CB
secondary
#D5D5A3
accent
#DC4ADD
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0A15
muted
#7E7C83