#5245C3#5245C3
#5245C3 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 48.1% C 0.189 H 281.3°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).
Color values
| HEX | #5245C3 |
|---|---|
| RGB | rgb(82, 69, 195) |
| HSL | hsl(246, 51%, 52%) |
| HSV | hsv(246, 65%, 76%) |
| CMYK | cmyk(57.9%, 64.6%, 0%, 23.5%) |
| CIE-LAB | lab(37.82, 40.91, -64.26) |
| CIE-LCH | lch(37.82, 76.18, 302.48°) |
| OKLab | oklab(48.12% 0.0369 -0.1848) |
| OKLCH | oklch(48.12% 0.189 281.3) |
| XYZ | xyz(15.4550, 9.9892, 52.7329) |
| Luminance | 0.0999 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Ocean Blue
#4F42B5
ΔE00 2.18
Blue With A Hint Of Purple
#533CC6
ΔE00 2.36
Bluey Purple
#6241C7
ΔE00 2.87
Blurple
#5539CC
ΔE00 3.21
Blue Blue
#2242C7
ΔE00 5.12
Iris
#6258C4
ΔE00 5.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5245C3 #B6C345
analogous
#4577C3 #5245C3 #9145C3
triadic
#5245C3 #C35245 #45C352
tetradic
#5245C3 #C34577 #B6C345 #45C391
square
#5245C3 #C34577 #B6C345 #45C391
split-complementary
#5245C3 #C39145 #77C345
monochromatic
#2A236B #3C3199 #5245C3 #7D73D2 #A8A2E1
Accessibility & contrast
On white
7.00
#5245C3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
3.00
#5245C3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5245C3
7.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5245C3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5245C3 | 1.00 | 7.00 | 3.00 | 7.00 |
| #FFFFFF | 7.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.00 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DC7
Deuteranopia (green-blind)
#0054C1
Tritanopia (blue-blind)
#0C657E
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #5245c3; /* rgb */ color: rgb(82, 69, 195); /* oklch */ color: oklch(48.1% 0.189 281.3);
Tailwind
colors: {
custom: {
50: '#8e7ad6',
500: '#5245c3',
950: '#000000',
},
}SCSS
$custom: #5245c3; $custom-light: #8e7ad6; $custom-dark: #000000;
JSON
{
"hex": "#5245c3",
"rgb": {
"r": 82,
"g": 69,
"b": 195
},
"hsl": {
"h": 246.19,
"s": 51.22,
"l": 51.765
},
"oklch": {
"l": 0.48119,
"c": 0.1885,
"h": 281.3
},
"luminance": 0.0999
}Semantic roles & 50–950 ramp
primary
#5245C3
secondary
#C8CE96
accent
#DB4DCC
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0D0914
muted
#7E7B83