#5251AF#5251AF
#5251AF is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.7% C 0.146 H 280.0°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).
Color values
| HEX | #5251AF |
|---|---|
| RGB | rgb(82, 81, 175) |
| HSL | hsl(241, 37%, 50%) |
| HSV | hsv(241, 54%, 69%) |
| CMYK | cmyk(53.1%, 53.7%, 0%, 31.4%) |
| CIE-LAB | lab(39.20, 27.13, -50.29) |
| CIE-LCH | lch(39.20, 57.14, 298.35°) |
| OKLab | oklab(48.66% 0.0253 -0.1437) |
| OKLCH | oklch(48.66% 0.146 280) |
| XYZ | xyz(14.1576, 10.7730, 41.8825) |
| Luminance | 0.1077 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 4.44
Ocean Blue
#4F42B5
ΔE00 4.71
Blueberry
#464196
ΔE00 5.91
Slate Blue
#6A5ACD
ΔE00 6.41
Twilight
#4E518B
ΔE00 6.45
Warm Blue
#4B57DB
ΔE00 6.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5251AF #AEAF51
analogous
#517FAF #5251AF #8151AF
triadic
#5251AF #AF5251 #51AF52
tetradic
#5251AF #AF517F #AEAF51 #51AF81
square
#5251AF #AF517F #AEAF51 #51AF81
split-complementary
#5251AF #AF8151 #7FAF51
monochromatic
#2B2A5C #3E3D85 #5251AF #7C7BC2 #A5A5D6
Accessibility & contrast
On white
6.66
#5251AF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.15
#5251AF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5251AF
6.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5251AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5251AF | 1.00 | 6.66 | 3.15 | 6.66 |
| #FFFFFF | 6.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1C60B2
Deuteranopia (green-blind)
#0D59AD
Tritanopia (blue-blind)
#2A6678
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #5251af; /* rgb */ color: rgb(82, 81, 175); /* oklch */ color: oklch(48.7% 0.146 280.0);
Tailwind
colors: {
custom: {
50: '#8a82c7',
500: '#5251af',
950: '#000000',
},
}SCSS
$custom: #5251af; $custom-light: #8a82c7; $custom-dark: #000000;
JSON
{
"hex": "#5251af",
"rgb": {
"r": 82,
"g": 81,
"b": 175
},
"hsl": {
"h": 240.638,
"s": 37.008,
"l": 50.196
},
"oklch": {
"l": 0.48664,
"c": 0.1459,
"h": 280
},
"luminance": 0.10774
}Semantic roles & 50–950 ramp
primary
#5251AF
secondary
#C2C399
accent
#CD5BCC
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82