#5F78E7#5F78E7
#5F78E7 is a mid, vivid blue. Relative luminance 0.216; OKLCH L 60.9% C 0.169 H 271.1°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).
Color values
| HEX | #5F78E7 |
|---|---|
| RGB | rgb(95, 120, 231) |
| HSL | hsl(229, 74%, 64%) |
| HSV | hsv(229, 59%, 91%) |
| CMYK | cmyk(58.9%, 48.1%, 0%, 9.4%) |
| CIE-LAB | lab(53.64, 23.82, -59.20) |
| CIE-LCH | lch(53.64, 63.81, 291.92°) |
| OKLab | oklab(60.92% 0.0031 -0.1692) |
| OKLCH | oklch(60.92% 0.169 271.1) |
| XYZ | xyz(25.8548, 21.6333, 78.3990) |
| Luminance | 0.2163 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cornflower
#6A79F7
ΔE00 2.91
Cornflower Blue
#5170D7
ΔE00 3.95
Lightish Blue
#3D7AFD
ΔE00 4.38
Soft Blue
#6488EA
ΔE00 5.29
Clear Blue
#247AFD
ΔE00 5.93
Royal Blue
#4169E1
ΔE00 6.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F78E7 #E7CE5F
analogous
#5FBCE7 #5F78E7 #8A5FE7
triadic
#5F78E7 #E75F78 #78E75F
tetradic
#5F78E7 #E75FBC #E7CE5F #5FE78A
square
#5F78E7 #E75FBC #E7CE5F #5FE78A
split-complementary
#5F78E7 #E78A5F #BCE75F
monochromatic
#1B36B1 #2A4BDF #5F78E7 #94A5EF #C9D2F7
Accessibility & contrast
On white
3.94
#5F78E7 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.33
#5F78E7 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5F78E7
5.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F78E7 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5F78E7 | 1.00 | 3.94 | 5.33 | 5.33 |
| #FFFFFF | 3.94 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.33 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.33 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4086EB
Deuteranopia (green-blind)
#287AE5
Tritanopia (blue-blind)
#0091A4
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #5f78e7; /* rgb */ color: rgb(95, 120, 231); /* oklch */ color: oklch(60.9% 0.169 271.1);
Tailwind
colors: {
custom: {
50: '#979eef',
500: '#5f78e7',
950: '#000000',
},
}SCSS
$custom: #5f78e7; $custom-light: #979eef; $custom-dark: #000000;
JSON
{
"hex": "#5f78e7",
"rgb": {
"r": 95,
"g": 120,
"b": 231
},
"hsl": {
"h": 228.971,
"s": 73.913,
"l": 63.922
},
"oklch": {
"l": 0.60917,
"c": 0.16922,
"h": 271.1
},
"luminance": 0.21635
}Semantic roles & 50–950 ramp
primary
#5F78E7
secondary
#E9E0B9
accent
#B20FD6
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0E16
muted
#7E7E84