#5251C8#5251C8
#5251C8 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.5% C 0.180 H 278.2°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).
Color values
| HEX | #5251C8 |
|---|---|
| RGB | rgb(82, 81, 200) |
| HSL | hsl(241, 52%, 55%) |
| HSV | hsv(241, 60%, 78%) |
| CMYK | cmyk(59%, 59.5%, 0%, 21.6%) |
| CIE-LAB | lab(40.97, 35.28, -62.04) |
| CIE-LCH | lch(40.97, 71.37, 299.62°) |
| OKLab | oklab(50.55% 0.0256 -0.1783) |
| OKLCH | oklch(50.55% 0.18 278.2) |
| XYZ | xyz(16.8441, 11.8476, 56.0316) |
| Luminance | 0.1185 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 3.22
Warm Blue
#4B57DB
ΔE00 3.31
Slate Blue
#6A5ACD
ΔE00 4.63
Ocean Blue
#4F42B5
ΔE00 5.08
Light Indigo
#6D5ACF
ΔE00 5.13
Dark Periwinkle
#665FD1
ΔE00 5.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5251C8 #C7C851
analogous
#518CC8 #5251C8 #8D51C8
triadic
#5251C8 #C85251 #51C852
tetradic
#5251C8 #C8518C #C7C851 #51C88D
square
#5251C8 #C8518C #C7C851 #51C88D
split-complementary
#5251C8 #C88D51 #8CC851
monochromatic
#272679 #3635A7 #5251C8 #8080D7 #AEAEE5
Accessibility & contrast
On white
6.23
#5251C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.37
#5251C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5251C8
6.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5251C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5251C8 | 1.00 | 6.23 | 3.37 | 6.23 |
| #FFFFFF | 6.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066CC
Deuteranopia (green-blind)
#005CC6
Tritanopia (blue-blind)
#006E85
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #5251c8; /* rgb */ color: rgb(82, 81, 200); /* oklch */ color: oklch(50.5% 0.180 278.2);
Tailwind
colors: {
custom: {
50: '#8e82da',
500: '#5251c8',
950: '#000000',
},
}SCSS
$custom: #5251c8; $custom-light: #8e82da; $custom-dark: #000000;
JSON
{
"hex": "#5251c8",
"rgb": {
"r": 82,
"g": 81,
"b": 200
},
"hsl": {
"h": 240.504,
"s": 51.965,
"l": 55.098
},
"oklch": {
"l": 0.50547,
"c": 0.1801,
"h": 278.2
},
"luminance": 0.11849
}Semantic roles & 50–950 ramp
primary
#5251C8
secondary
#D3D3A1
accent
#DB4CDA
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0D0A15
muted
#7E7C83