#5251BB#5251BB
#5251BB is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.5% C 0.163 H 279.1°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).
Color values
| HEX | #5251BB |
|---|---|
| RGB | rgb(82, 81, 187) |
| HSL | hsl(241, 44%, 53%) |
| HSV | hsv(241, 57%, 73%) |
| CMYK | cmyk(56.1%, 56.7%, 0%, 26.7%) |
| CIE-LAB | lab(40.02, 31.03, -56.01) |
| CIE-LCH | lch(40.02, 64.03, 298.99°) |
| OKLab | oklab(49.55% 0.0257 -0.1605) |
| OKLCH | oklch(49.55% 0.163 279.1) |
| XYZ | xyz(15.3889, 11.2655, 48.3676) |
| Luminance | 0.1127 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 3.46
Ocean Blue
#4F42B5
ΔE00 4.49
Warm Blue
#4B57DB
ΔE00 4.85
Slate Blue
#6A5ACD
ΔE00 5.33
Bluey Purple
#6241C7
ΔE00 5.85
Light Indigo
#6D5ACF
ΔE00 5.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5251BB #BABB51
analogous
#5185BB #5251BB #8751BB
triadic
#5251BB #BB5251 #51BB52
tetradic
#5251BB #BB5185 #BABB51 #51BB87
square
#5251BB #BB5185 #BABB51 #51BB87
split-complementary
#5251BB #BB8751 #85BB51
monochromatic
#2A2969 #3B3A95 #5251BB #7E7DCC #AAA9DD
Accessibility & contrast
On white
6.45
#5251BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.25
#5251BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5251BB
6.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5251BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5251BB | 1.00 | 6.45 | 3.25 | 6.45 |
| #FFFFFF | 6.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063BF
Deuteranopia (green-blind)
#005AB9
Tritanopia (blue-blind)
#1B6A7E
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #5251bb; /* rgb */ color: rgb(82, 81, 187); /* oklch */ color: oklch(49.5% 0.163 279.1);
Tailwind
colors: {
custom: {
50: '#8c82d0',
500: '#5251bb',
950: '#000000',
},
}SCSS
$custom: #5251bb; $custom-light: #8c82d0; $custom-dark: #000000;
JSON
{
"hex": "#5251bb",
"rgb": {
"r": 82,
"g": 81,
"b": 187
},
"hsl": {
"h": 240.566,
"s": 43.802,
"l": 52.549
},
"oklch": {
"l": 0.49545,
"c": 0.16256,
"h": 279.1
},
"luminance": 0.11267
}Semantic roles & 50–950 ramp
primary
#5251BB
secondary
#CACB9D
accent
#D454D2
background
#F9F7FC
surface
#F1EEF9
border
#CBC9D2
text
#0D0A14
muted
#7E7C82