#5F5AF1#5F5AF1
#5F5AF1 is a mid, highly saturated blue. Relative luminance 0.161; OKLCH L 56.3% C 0.219 H 278.1°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).
Color values
| HEX | #5F5AF1 |
|---|---|
| RGB | rgb(95, 90, 241) |
| HSL | hsl(242, 84%, 65%) |
| HSV | hsv(242, 63%, 95%) |
| CMYK | cmyk(60.6%, 62.7%, 0%, 5.5%) |
| CIE-LAB | lab(47.10, 45.14, -75.39) |
| CIE-LCH | lch(47.10, 87.87, 300.91°) |
| OKLab | oklab(56.26% 0.0311 -0.2171) |
| OKLCH | oklch(56.26% 0.219 278.1) |
| XYZ | xyz(24.2476, 16.0942, 85.0308) |
| Luminance | 0.1610 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 4.40
Dark Periwinkle
#665FD1
ΔE00 4.40
Light Indigo
#6D5ACF
ΔE00 4.98
Slate Blue
#6A5ACD
ΔE00 5.06
Mediumslateblue
#7B68EE
ΔE00 5.79
Electric Blue
#0652FF
ΔE00 5.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F5AF1 #ECF15A
analogous
#5AA0F1 #5F5AF1 #AB5AF1
triadic
#5F5AF1 #F15F5A #5AF15F
tetradic
#5F5AF1 #F15AA0 #ECF15A #5AF1AB
square
#5F5AF1 #F15AA0 #ECF15A #5AF1AB
split-complementary
#5F5AF1 #F1AB5A #A0F15A
monochromatic
#1610C0 #2822EC #5F5AF1 #9692F6 #CCCBFB
Accessibility & contrast
On white
4.98
#5F5AF1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.22
#5F5AF1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5F5AF1
4.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F5AF1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F5AF1 | 1.00 | 4.98 | 4.22 | 4.98 |
| #FFFFFF | 4.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.22 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0076F6
Deuteranopia (green-blind)
#0069EE
Tritanopia (blue-blind)
#00809D
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #5f5af1; /* rgb */ color: rgb(95, 90, 241); /* oklch */ color: oklch(56.3% 0.219 278.1);
Tailwind
colors: {
custom: {
50: '#9b89f7',
500: '#5f5af1',
950: '#000000',
},
}SCSS
$custom: #5f5af1; $custom-light: #9b89f7; $custom-dark: #000000;
JSON
{
"hex": "#5f5af1",
"rgb": {
"r": 95,
"g": 90,
"b": 241
},
"hsl": {
"h": 241.987,
"s": 84.358,
"l": 64.902
},
"oklch": {
"l": 0.5626,
"c": 0.21928,
"h": 278.1
},
"luminance": 0.16096
}Semantic roles & 50–950 ramp
primary
#5F5AF1
secondary
#EBEDBA
accent
#E105DA
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0B17
muted
#7F7C85