#5251AA#5251AA
#5251AA is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.3% C 0.139 H 280.4°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).
Color values
| HEX | #5251AA |
|---|---|
| RGB | rgb(82, 81, 170) |
| HSL | hsl(241, 35%, 49%) |
| HSV | hsv(241, 52%, 67%) |
| CMYK | cmyk(51.8%, 52.4%, 0%, 33.3%) |
| CIE-LAB | lab(38.86, 25.52, -47.86) |
| CIE-LCH | lch(38.86, 54.24, 298.07°) |
| OKLab | oklab(48.31% 0.025 -0.1365) |
| OKLCH | oklch(48.31% 0.139 280.4) |
| XYZ | xyz(13.6756, 10.5802, 39.3440) |
| Luminance | 0.1058 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 5.01
Ocean Blue
#4F42B5
ΔE00 5.05
Blueberry
#464196
ΔE00 5.51
Twilight
#4E518B
ΔE00 5.66
Slate Blue
#6A5ACD
ΔE00 6.96
Warm Blue
#4B57DB
ΔE00 7.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5251AA #A9AA51
analogous
#517DAA #5251AA #7F51AA
triadic
#5251AA #AA5251 #51AA52
tetradic
#5251AA #AA517D #A9AA51 #51AA7F
square
#5251AA #AA517D #A9AA51 #51AA7F
split-complementary
#5251AA #AA7F51 #7DAA51
monochromatic
#2A2A57 #3E3D81 #5251AA #7A79BF #A3A2D3
Accessibility & contrast
On white
6.74
#5251AA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.12
#5251AA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5251AA
6.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5251AA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5251AA | 1.00 | 6.74 | 3.12 | 6.74 |
| #FFFFFF | 6.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#235FAD
Deuteranopia (green-blind)
#1A58A8
Tritanopia (blue-blind)
#2E6575
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #5251aa; /* rgb */ color: rgb(82, 81, 170); /* oklch */ color: oklch(48.3% 0.139 280.4);
Tailwind
colors: {
custom: {
50: '#8982c4',
500: '#5251aa',
950: '#000000',
},
}SCSS
$custom: #5251aa; $custom-light: #8982c4; $custom-dark: #000000;
JSON
{
"hex": "#5251aa",
"rgb": {
"r": 82,
"g": 81,
"b": 170
},
"hsl": {
"h": 240.674,
"s": 35.458,
"l": 49.216
},
"oklch": {
"l": 0.4831,
"c": 0.13881,
"h": 280.4
},
"luminance": 0.10581
}Semantic roles & 50–950 ramp
primary
#5251AA
secondary
#C0C097
accent
#CB5CCA
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82