#5F5CE2#5F5CE2
#5F5CE2 is a mid, vivid blue. Relative luminance 0.156; OKLCH L 55.4% C 0.198 H 278.8°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).
Color values
| HEX | #5F5CE2 |
|---|---|
| RGB | rgb(95, 92, 226) |
| HSL | hsl(241, 70%, 62%) |
| HSV | hsv(241, 59%, 89%) |
| CMYK | cmyk(58%, 59.3%, 0%, 11.4%) |
| CIE-LAB | lab(46.41, 39.22, -68.05) |
| CIE-LCH | lch(46.41, 78.54, 299.96°) |
| OKLab | oklab(55.4% 0.0301 -0.1955) |
| OKLCH | oklch(55.4% 0.198 278.8) |
| XYZ | xyz(22.2696, 15.5766, 73.7698) |
| Luminance | 0.1558 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 2.62
Warm Blue
#4B57DB
ΔE00 3.31
Slate Blue
#6A5ACD
ΔE00 3.56
Light Indigo
#6D5ACF
ΔE00 3.65
Iris
#6258C4
ΔE00 4.48
Mediumslateblue
#7B68EE
ΔE00 6.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F5CE2 #DFE25C
analogous
#5C9CE2 #5F5CE2 #A25CE2
triadic
#5F5CE2 #E25F5C #5CE25F
tetradic
#5F5CE2 #E25C9C #DFE25C #5CE2A2
square
#5F5CE2 #E25C9C #DFE25C #5CE2A2
split-complementary
#5F5CE2 #E2A25C #9CE25C
monochromatic
#211EA6 #2C28D9 #5F5CE2 #9290EB #C5C4F4
Accessibility & contrast
On white
5.10
#5F5CE2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.12
#5F5CE2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5F5CE2
5.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F5CE2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F5CE2 | 1.00 | 5.10 | 4.12 | 5.10 |
| #FFFFFF | 5.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0073E6
Deuteranopia (green-blind)
#0069DF
Tritanopia (blue-blind)
#007C96
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #5f5ce2; /* rgb */ color: rgb(95, 92, 226); /* oklch */ color: oklch(55.4% 0.198 278.8);
Tailwind
colors: {
custom: {
50: '#988aec',
500: '#5f5ce2',
950: '#000000',
},
}SCSS
$custom: #5f5ce2; $custom-light: #988aec; $custom-dark: #000000;
JSON
{
"hex": "#5f5ce2",
"rgb": {
"r": 95,
"g": 92,
"b": 226
},
"hsl": {
"h": 241.343,
"s": 69.792,
"l": 62.353
},
"oklch": {
"l": 0.55404,
"c": 0.1978,
"h": 278.8
},
"luminance": 0.15578
}Semantic roles & 50–950 ramp
primary
#5F5CE2
secondary
#E4E5B4
accent
#D214CE
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0C16
muted
#7F7D84