#5F5FE8#5F5FE8
#5F5FE8 is a mid, highly saturated blue. Relative luminance 0.164; OKLCH L 56.4% C 0.202 H 277.7°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).
Color values
| HEX | #5F5FE8 |
|---|---|
| RGB | rgb(95, 95, 232) |
| HSL | hsl(240, 75%, 64%) |
| HSV | hsv(240, 59%, 91%) |
| CMYK | cmyk(59.1%, 59.1%, 0%, 9%) |
| CIE-LAB | lab(47.55, 39.33, -69.59) |
| CIE-LCH | lch(47.55, 79.94, 299.47°) |
| OKLab | oklab(56.38% 0.0272 -0.2) |
| OKLCH | oklch(56.38% 0.202 277.7) |
| XYZ | xyz(23.3723, 16.4418, 78.2702) |
| Luminance | 0.1644 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 3.27
Warm Blue
#4B57DB
ΔE00 4.13
Slate Blue
#6A5ACD
ΔE00 4.54
Light Indigo
#6D5ACF
ΔE00 4.56
Mediumslateblue
#7B68EE
ΔE00 5.30
Iris
#6258C4
ΔE00 5.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F5FE8 #E8E85F
analogous
#5FA4E8 #5F5FE8 #A45FE8
triadic
#5F5FE8 #E85F5F #5FE85F
tetradic
#5F5FE8 #E85FA4 #E8E85F #5FE8A4
square
#5F5FE8 #E85FA4 #E8E85F #5FE8A4
split-complementary
#5F5FE8 #E8A45F #A4E85F
monochromatic
#1A1AB3 #2929E0 #5F5FE8 #9595F0 #CACAF7
Accessibility & contrast
On white
4.90
#5F5FE8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.29
#5F5FE8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5F5FE8
4.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F5FE8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F5FE8 | 1.00 | 4.90 | 4.29 | 4.90 |
| #FFFFFF | 4.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0077ED
Deuteranopia (green-blind)
#006BE5
Tritanopia (blue-blind)
#00809A
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #5f5fe8; /* rgb */ color: rgb(95, 95, 232); /* oklch */ color: oklch(56.4% 0.202 277.7);
Tailwind
colors: {
custom: {
50: '#998cf0',
500: '#5f5fe8',
950: '#000000',
},
}SCSS
$custom: #5f5fe8; $custom-light: #998cf0; $custom-dark: #000000;
JSON
{
"hex": "#5f5fe8",
"rgb": {
"r": 95,
"g": 95,
"b": 232
},
"hsl": {
"h": 240,
"s": 74.863,
"l": 64.118
},
"oklch": {
"l": 0.56379,
"c": 0.20186,
"h": 277.7
},
"luminance": 0.16444
}Semantic roles & 50–950 ramp
primary
#5F5FE8
secondary
#E9E9BA
accent
#D70ED7
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0C17
muted
#7F7D85