#5251CF#5251CF
#5251CF is a mid, vivid blue. Relative luminance 0.122; OKLCH L 51.1% C 0.189 H 277.7°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).
Color values
| HEX | #5251CF |
|---|---|
| RGB | rgb(82, 81, 207) |
| HSL | hsl(240, 57%, 56%) |
| HSV | hsv(240, 61%, 81%) |
| CMYK | cmyk(60.4%, 60.9%, 0%, 18.8%) |
| CIE-LAB | lab(41.50, 37.56, -65.22) |
| CIE-LCH | lch(41.50, 75.26, 299.94°) |
| OKLab | oklab(51.11% 0.0253 -0.1876) |
| OKLCH | oklch(51.11% 0.189 277.7) |
| XYZ | xyz(17.6810, 12.1824, 60.4391) |
| Luminance | 0.1218 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 2.67
Iris
#6258C4
ΔE00 3.46
Slate Blue
#6A5ACD
ΔE00 4.50
Light Indigo
#6D5ACF
ΔE00 4.94
Dark Periwinkle
#665FD1
ΔE00 4.99
Bluey Purple
#6241C7
ΔE00 5.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5251CF #CECF51
analogous
#518FCF #5251CF #9151CF
triadic
#5251CF #CF5251 #51CF52
tetradic
#5251CF #CF518F #CECF51 #51CF91
square
#5251CF #CF518F #CECF51 #51CF91
split-complementary
#5251CF #CF9151 #8FCF51
monochromatic
#252482 #3231B2 #5251CF #8281DC #B1B1E9
Accessibility & contrast
On white
6.11
#5251CF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.44
#5251CF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5251CF
6.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5251CF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5251CF | 1.00 | 6.11 | 3.44 | 6.11 |
| #FFFFFF | 6.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0067D3
Deuteranopia (green-blind)
#005DCC
Tritanopia (blue-blind)
#007088
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #5251cf; /* rgb */ color: rgb(82, 81, 207); /* oklch */ color: oklch(51.1% 0.189 277.7);
Tailwind
colors: {
custom: {
50: '#8f82df',
500: '#5251cf',
950: '#000000',
},
}SCSS
$custom: #5251cf; $custom-light: #8f82df; $custom-dark: #000000;
JSON
{
"hex": "#5251cf",
"rgb": {
"r": 82,
"g": 81,
"b": 207
},
"hsl": {
"h": 240.476,
"s": 56.757,
"l": 56.471
},
"oklch": {
"l": 0.51106,
"c": 0.18931,
"h": 277.7
},
"luminance": 0.12184
}Semantic roles & 50–950 ramp
primary
#5251CF
secondary
#D7D8A4
accent
#E048DF
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83