#5F5EF2#5F5EF2
#5F5EF2 is a mid, highly saturated blue. Relative luminance 0.168; OKLCH L 57.0% C 0.216 H 277.4°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).
Color values
| HEX | #5F5EF2 |
|---|---|
| RGB | rgb(95, 94, 242) |
| HSL | hsl(240, 85%, 66%) |
| HSV | hsv(240, 61%, 95%) |
| CMYK | cmyk(60.7%, 61.2%, 0%, 5.1%) |
| CIE-LAB | lab(48.07, 43.11, -74.37) |
| CIE-LCH | lch(48.07, 85.96, 300.10°) |
| OKLab | oklab(56.99% 0.0277 -0.214) |
| OKLCH | oklch(56.99% 0.216 277.4) |
| XYZ | xyz(24.7439, 16.8472, 85.9351) |
| Luminance | 0.1685 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 4.43
Warm Blue
#4B57DB
ΔE00 4.88
Mediumslateblue
#7B68EE
ΔE00 5.09
Light Indigo
#6D5ACF
ΔE00 5.41
Slate Blue
#6A5ACD
ΔE00 5.48
Electric Blue
#0652FF
ΔE00 6.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F5EF2 #F1F25E
analogous
#5EA7F2 #5F5EF2 #A95EF2
triadic
#5F5EF2 #F25F5E #5EF25F
tetradic
#5F5EF2 #F25EA7 #F1F25E #5EF2A9
square
#5F5EF2 #F25EA7 #F1F25E #5EF2A9
split-complementary
#5F5EF2 #F2A95E #A7F25E
monochromatic
#1110C6 #2725ED #5F5EF2 #9797F7 #D0CFFB
Accessibility & contrast
On white
4.81
#5F5EF2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.37
#5F5EF2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5F5EF2
4.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F5EF2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F5EF2 | 1.00 | 4.81 | 4.37 | 4.81 |
| #FFFFFF | 4.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0078F7
Deuteranopia (green-blind)
#006CEF
Tritanopia (blue-blind)
#00839F
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #5f5ef2; /* rgb */ color: rgb(95, 94, 242); /* oklch */ color: oklch(57.0% 0.216 277.4);
Tailwind
colors: {
custom: {
50: '#9a8cf7',
500: '#5f5ef2',
950: '#000000',
},
}SCSS
$custom: #5f5ef2; $custom-light: #9a8cf7; $custom-dark: #000000;
JSON
{
"hex": "#5f5ef2",
"rgb": {
"r": 95,
"g": 94,
"b": 242
},
"hsl": {
"h": 240.405,
"s": 85.057,
"l": 65.882
},
"oklch": {
"l": 0.56994,
"c": 0.21583,
"h": 277.4
},
"luminance": 0.16849
}Semantic roles & 50–950 ramp
primary
#5F5EF2
secondary
#EEEEBD
accent
#E204E0
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C17
muted
#7F7D85