#5948C2#5948C2
#5948C2 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 49.1% C 0.182 H 283.7°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).
Color values
| HEX | #5948C2 |
|---|---|
| RGB | rgb(89, 72, 194) |
| HSL | hsl(248, 50%, 52%) |
| HSV | hsv(248, 63%, 76%) |
| CMYK | cmyk(54.1%, 62.9%, 0%, 23.9%) |
| CIE-LAB | lab(38.99, 40.04, -61.75) |
| CIE-LCH | lch(38.99, 73.60, 302.96°) |
| OKLab | oklab(49.09% 0.0434 -0.1773) |
| OKLCH | oklch(49.09% 0.182 283.7) |
| XYZ | xyz(16.1718, 10.6527, 52.2325) |
| Luminance | 0.1065 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Bluey Purple
#6241C7
ΔE00 2.52
Ocean Blue
#4F42B5
ΔE00 2.83
Blue With A Hint Of Purple
#533CC6
ΔE00 3.17
Blurple
#5539CC
ΔE00 3.89
Iris
#6258C4
ΔE00 4.77
Slate Blue
#6A5ACD
ΔE00 5.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5948C2 #B1C248
analogous
#4874C2 #5948C2 #9648C2
triadic
#5948C2 #C25948 #48C259
tetradic
#5948C2 #C24874 #B1C248 #48C296
square
#5948C2 #C24874 #B1C248 #48C296
split-complementary
#5948C2 #C29648 #74C248
monochromatic
#2E246C #41339A #5948C2 #8376D1 #ACA4E1
Accessibility & contrast
On white
6.71
#5948C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.13
#5948C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5948C2
6.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5948C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5948C2 | 1.00 | 6.71 | 3.13 | 6.71 |
| #FFFFFF | 6.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060C6
Deuteranopia (green-blind)
#0058C0
Tritanopia (blue-blind)
#2B667E
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #5948c2; /* rgb */ color: rgb(89, 72, 194); /* oklch */ color: oklch(49.1% 0.182 283.7);
Tailwind
colors: {
custom: {
50: '#917cd5',
500: '#5948c2',
950: '#000000',
},
}SCSS
$custom: #5948c2; $custom-light: #917cd5; $custom-dark: #000000;
JSON
{
"hex": "#5948c2",
"rgb": {
"r": 89,
"g": 72,
"b": 194
},
"hsl": {
"h": 248.361,
"s": 50,
"l": 52.157
},
"oklch": {
"l": 0.49087,
"c": 0.18248,
"h": 283.7
},
"luminance": 0.10654
}Semantic roles & 50–950 ramp
primary
#5948C2
secondary
#C6CE98
accent
#DA4EC6
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0914
muted
#7E7B83