#5F5EF5#5F5EF5
#5F5EF5 is a mid, highly saturated blue. Relative luminance 0.170; OKLCH L 57.2% C 0.220 H 277.2°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).
Color values
| HEX | #5F5EF5 |
|---|---|
| RGB | rgb(95, 94, 245) |
| HSL | hsl(240, 88%, 66%) |
| HSV | hsv(240, 62%, 96%) |
| CMYK | cmyk(61.2%, 61.6%, 0%, 3.9%) |
| CIE-LAB | lab(48.30, 44.06, -75.67) |
| CIE-LCH | lch(48.30, 87.57, 300.21°) |
| OKLab | oklab(57.23% 0.0275 -0.2179) |
| OKLCH | oklch(57.23% 0.22 277.2) |
| XYZ | xyz(25.1981, 17.0289, 88.3275) |
| Luminance | 0.1703 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 4.79
Mediumslateblue
#7B68EE
ΔE00 5.03
Warm Blue
#4B57DB
ΔE00 5.18
Light Indigo
#6D5ACF
ΔE00 5.72
Slate Blue
#6A5ACD
ΔE00 5.82
Electric Blue
#0652FF
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F5EF5 #F4F55E
analogous
#5EA9F5 #5F5EF5 #AB5EF5
triadic
#5F5EF5 #F55F5E #5EF55F
tetradic
#5F5EF5 #F55EA9 #F4F55E #5EF5AB
square
#5F5EF5 #F55EA9 #F4F55E #5EF5AB
split-complementary
#5F5EF5 #F5AB5E #A9F55E
monochromatic
#0E0DCC #2624F1 #5F5EF5 #9898F9 #D2D1FC
Accessibility & contrast
On white
4.77
#5F5EF5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.41
#5F5EF5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5F5EF5
4.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F5EF5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F5EF5 | 1.00 | 4.77 | 4.41 | 4.77 |
| #FFFFFF | 4.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0079FA
Deuteranopia (green-blind)
#006CF2
Tritanopia (blue-blind)
#0084A1
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #5f5ef5; /* rgb */ color: rgb(95, 94, 245); /* oklch */ color: oklch(57.2% 0.220 277.2);
Tailwind
colors: {
custom: {
50: '#9b8cfa',
500: '#5f5ef5',
950: '#000000',
},
}SCSS
$custom: #5f5ef5; $custom-light: #9b8cfa; $custom-dark: #000000;
JSON
{
"hex": "#5f5ef5",
"rgb": {
"r": 95,
"g": 94,
"b": 245
},
"hsl": {
"h": 240.397,
"s": 88.304,
"l": 66.471
},
"oklch": {
"l": 0.57234,
"c": 0.21961,
"h": 277.2
},
"luminance": 0.17031
}Semantic roles & 50–950 ramp
primary
#5F5EF5
secondary
#F0F0BF
accent
#E501E3
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C17
muted
#7F7D85