#5251B2#5251B2
#5251B2 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.9% C 0.150 H 279.7°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).
Color values
| HEX | #5251B2 |
|---|---|
| RGB | rgb(82, 81, 178) |
| HSL | hsl(241, 39%, 51%) |
| HSV | hsv(241, 54%, 70%) |
| CMYK | cmyk(53.9%, 54.5%, 0%, 30.2%) |
| CIE-LAB | lab(39.40, 28.11, -51.73) |
| CIE-LCH | lch(39.40, 58.87, 298.51°) |
| OKLab | oklab(48.88% 0.0254 -0.1479) |
| OKLCH | oklch(48.88% 0.15 279.7) |
| XYZ | xyz(14.4555, 10.8922, 43.4515) |
| Luminance | 0.1089 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 4.14
Ocean Blue
#4F42B5
ΔE00 4.58
Warm Blue
#4B57DB
ΔE00 6.08
Slate Blue
#6A5ACD
ΔE00 6.10
Blueberry
#464196
ΔE00 6.18
Bluey Purple
#6241C7
ΔE00 6.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5251B2 #B1B251
analogous
#5180B2 #5251B2 #8251B2
triadic
#5251B2 #B25251 #51B252
tetradic
#5251B2 #B25180 #B1B251 #51B282
square
#5251B2 #B25180 #B1B251 #51B282
split-complementary
#5251B2 #B28251 #80B251
monochromatic
#2A2A5F #3D3D89 #5251B2 #7C7BC5 #A6A6D8
Accessibility & contrast
On white
6.61
#5251B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.18
#5251B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5251B2
6.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5251B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5251B2 | 1.00 | 6.61 | 3.18 | 6.61 |
| #FFFFFF | 6.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1661B5
Deuteranopia (green-blind)
#0159B0
Tritanopia (blue-blind)
#276779
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #5251b2; /* rgb */ color: rgb(82, 81, 178); /* oklch */ color: oklch(48.9% 0.150 279.7);
Tailwind
colors: {
custom: {
50: '#8a82ca',
500: '#5251b2',
950: '#000000',
},
}SCSS
$custom: #5251b2; $custom-light: #8a82ca; $custom-dark: #000000;
JSON
{
"hex": "#5251b2",
"rgb": {
"r": 82,
"g": 81,
"b": 178
},
"hsl": {
"h": 240.619,
"s": 38.645,
"l": 50.784
},
"oklch": {
"l": 0.4888,
"c": 0.15011,
"h": 279.7
},
"luminance": 0.10893
}Semantic roles & 50–950 ramp
primary
#5251B2
secondary
#C4C59A
accent
#CF59CD
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82